Hello list, Is there a way I can refresh the jQuery object's DOM on command so that it can acknowledge content that's been brought in after the initial DOM ready event?
Ideally, I'd find something that looked a bit like this: $.get('wad_of_unknown_content.php', someVariableParameters, $.reloadPageDOM()) I've run into the situation where a load of AJAXed content is essentially dead to my jQuery object. I'm surprised at the variety of ways people have dealt with highly specific symptoms of the problem: there are plugins like livequery, which looks to me like an overhead- intensive method for modifying event bindings; then there are a variety of ways of writing functions your dynamic content may be sensitive to into large superfunctions which get called back whenever said dynamic content is loaded. In particular, everything out there seems to be concerned exclusively with event binding on objects within the dynamic content, and the solutions all seem to involve re-writing specific bindings or the functions calling the dynamic content themselves. Why not just get jQuery to read over the existing document as it stands and assimilate that into the jQuery worldview whenever a batch of new content is introduced? Or have insertion methods that edit the document in question and the jQuery DOM object at the same time? Would be very interested to hear alternatives as to how to deal with this.