Any chance you can post a test page somewhere? It's a little hard to
picture what's going on.
-- Josh
----- Original Message -----
From: "Trans" <[EMAIL PROTECTED]>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Tuesday, January 08, 2008 2:13 PM
Subject: [jQuery] Re: Progress image swap
On Jan 8, 4:46 pm, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
This is untested but something like:
var ajaxCalles = 16;
$("#meter").attr("src","img/meter_on.gif") // change the src tag to the
animate gif
$.ajax({
url: 'myurl',
success : function(){//do processing},
error: function(){/process error},
complete : function(){
ajaxCalles--;
if(ajaxCalles == 0){
$("#meter").attr("src","img/meter_off.gif")
}
} // this gets called after success and error callbacks are executed
});
Make your group of ajax call like above and that should get you going.
Thanks again. I implemented exactly what you suggested and
unfortunately it does the exact same thing. All rendering of the page
seems to occur only after all the javascript completes execution. It's
like one made flurry of page rendering just at the end. Why would that
be? Do I have to "flush" a change queue or something?
T.