Skip navigation

when you have function like this and if it process rapidly (says like using timeout or timer) and if it the engine on the back-end query to database, sometimes the result of the cache for classpath got errors, so you must adjust how you call to the server using ajax!.

function ajaxReload(action,targetID) {
logEvent(‘===>AJAX:Reload’+targetID);
$.ajax({
type: “POST”,
url: “webroot);?>boards/”+action,
data: “name=John&location=Boston”,
success: function(msg){
$(targetID).html(msg);
}
});
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: