This code
$("#loading").ajaxStart(function() {
alert("start");
$(this).show();
});
in my mark-up
<div style="text-align:center;"><img id="loading" src="../images/common/loading.gif" alt="" /></div>
Here is the full ajax request:
$.ajax({
type: "POST",
url: "http://localhost/WebServices/S...
I am developing a small plugin which appears in the post page and it has a touch of Ajax.
$("#some-div").ajaxStart(function(){
$(this).html('Loading...');
});
$.post(
AjaxHandler.ajaxurl,
{ action : 'wt4-cats', },
function(response) {
//do some stuff
});
thing is that W...
hi,
in my page i have two places i want to use ajax request but when i pressed one of them the second's loading starts too... my codes like this, i want to work them when the related form submited.
jQuery(document).ready(function(){
jQuery('form#comment').submit( ajaxProcess2 )
jQuery('div#alert').ajaxStart(function (){
...
If you click on the click here to order button here: http://www.game onglove.com/ gog/ test3.html, and then click the same button on the lightboxed window that pops up, an ajax request will run using $.post().
You can hit "continue shopping" to return to the previous lightboxed window to quickly start over.
If I execute the jquery code...