I seem to have a problem with my code. I won't post all of it here,
but when use this:
Ajax.Responders.register(
{
onCreate: function()
{
if($('loading') && Ajax.activeRequestCount>0)
{
Effect.Appear('loading',{duration: .5, queue: 'end'});
$('loading').update('Loading ('+Ajax.activeRequestCount
+')...');
}
},
onComplete: function()
{
if($('loading') && Ajax.activeRequestCount==0)
{
Effect.Fade('loading',{duration: .5, queue: 'end'});
$('loading').update('Loading ('+Ajax.activeRequestCount
+')...');
}
}
}
);
after the first set of Ajax calls it seems to get stuck and only
increments, does not deduct. (So my loading screen doesn't go away.)
Any ideas what I could be doing wrong? I have many Ajax calls, but
the site seems to be working as expected so I know the data did load.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---