Hey all-
No doubt, I'm going to be redirected to various threads, but I've looked & I still haven't been able to find the proper solution to my problem.
Scenario: Fairly large site, most data is brought in via ajax...
Sometimes the data brought back might include a dropdown menu or slider that wants to use jQuery...and I simply cannot find a nice simple way to get jQuery to reevaluate the DOM only when it needs to...
I've looked at .live and .on and a bunch of other methods, but -- if I understand correctly -- this approach essentially requires an event listener, which I really don't want to use; if the user loads 100 pages, only a handful of them may contain a jQuery-oriented object...
So, all I really want to do is to load stuff via ajax, and IF there's a JQuery-using object somewhere in the return, I want to tell jQuery to reinitialize itself...but there seems to be no way to do that....
Little help?
Many thnx,
-Midgard