Code: Select all
var lpOnComplete = function(response) {
alert(response);
// do more processing
lpStart();
};
var lpStart = function() {
$.post('/path/to/script', {}, lpOnComplete, 'json');
};
$(document).ready(lpStart);
Code: Select all
var lpOnComplete = function(response) {
alert(response);
// do more processing
lpStart();
};
var lpStart = function() {
$.post('/path/to/script', {}, lpOnComplete, 'json');
};
$(document).ready(lpStart);