I have a submit button when i click on that button i am having jQuery function which sends the Request to server side script
$('#submit_button').click(function(){
$('#MYdialog').dialog('open');
alert("Request Submitting");
$.getJSON("test.php?stcode=<?php echo $this->stcode;?>",
$("#myform").serialize(),
function(data){
$.ajaxSetup ({ cache: false});
$('#MYdialog').dialog('close');
alert(data);
if ( data.num != null ) {
window.open('print_test.php?stcode=01&no=' + data.num );
window.location = self.location;
}
});
}
});
When i submit the request the mysubmit
Dialog opened and running in loop. How do debug what is happening at server side script?