For the throbber div you mentioned, why not initialize it just before you make the call to load()? As the name suggests, all Ajax calls are asynchronous, so you could initialize the throbber div to start displaying 'Loading... Please Wait' just before you make the call and then hide this loading notification div in the success function attached to the Ajax call.
Hope this helps. - Gavin On Mar 6, 5:59 am, pixeline <[email protected]> wrote: > Hello, > > I'm trying to set a function that should be triggered on all ajax > start events. Therefore i thought i should use > > $.ajaxStart(myFunc); > > What my function should do is overlay the specific DOM element that > will receive the new content with a throbber, "please wait" div, > typically the element against which load() is called. yet i can't find > a way to get it from inside the function. > > Suggestion: shouldn't the target element be stored in the ajax > object ? > > I've posted on hte general jquery for answers before posting it here > :http://groups.google.com/group/jquery-en/browse_thread/thread/df7f42a... > > Feel free to reply there if you think my suggestion is not relevant. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" 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/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
