<script>
$(document).ready(function(){
$.ajax({
type: "GET",
url: "data.xml",
dataType: "xml",
success: function(xmlData) {
$("POS", xmlData).each(function(){
var sr = $(this).find('SRNO').text(),
tname = $(this).find('TRANSACTIONNAME').text(),
rbasis = $(this).find('ROUTINGBASIS').text(),
lookup = $(this).find('LOOKUPRULE').text(),
rrule = $(this).find('ROUTINGRULE').text();
var output = '<tr>' ;
output += '<td class="sr">'+sr+'</td>';
output +='<td class="tname">'+tname+'</td>';
output += '<td class="rbasis">'+rbasis+'</td>';
output += '<td class="lookup">'+lookup+'</td>';
output += '<td class="rrule">'+rrlule+'</td>;
output += '</tr>';
$("#t3").append(output);
});
}
});
});
</script>
Instead of displaying the entries on page load, I want to show a blank page and then click a button to reveal the entries from node POS.