On 08/24/09 23:53, jheddings wrote: > .. Is there an easy way to detect when an Ajax request completes? .. What I'm ultimately trying to do is change the format of each transaction on the page..
What you'll probably want is the DOMNodeInserted event [1]. This is how I, for example, insert favicon into Google Reader entries [2]. If your page has some transactions "in" the page, and some added later by AJAX, it should be a simple matter to handle each, individually, by a helper function: grab each element in the page, when the script runs, for processing, and then handle each new one as it is added. [1] http://www.w3.org/TR/DOM-Level-3-Events/events.html#event-DOMNodeInserted [2] http://arantius.com/misc/greasemonkey/google-reader-entry-faviconizer.user.js --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "greasemonkey-users" 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/greasemonkey-users?hl=en -~----------~----~----~----~------~----~------~--~---
