Using jQuery to listen for an AJAX load that is not loaded using jQuery.AJAX
Posted
by rich
on Stack Overflow
See other posts from Stack Overflow
or by rich
Published on 2010-05-14T09:42:25Z
Indexed on
2010/05/14
9:44 UTC
Read the original article
Hit count: 479
Okay, have a bit of a tricky one (for me anyway, i'm pretty rubbish at jQuery/JavaScript).
I'm pulling in data using standard AJAX (ie, NOT using a framework like jQuery or whatnot... there is a reason for it)
However, I then need to load up a jQuery script as soon as the page has been loaded in. So, here is the question, how do I bind the script once the DOM has been updated? I have been using Ariel Fleser's listen plugin (http://flesler.blogspot.com/2007/10/jquerylisten.html) for picking up on events such as clicks which works a treat, but I can't see how this can be used to listen for a load event.
Any ideas? I'm pretty stumped on this one!!
© Stack Overflow or respective owner