View Single Post

  #3 (permalink)  
Old 30-06-2008, 07:19 PM
jason jason is offline
Coder
 
Join Date: Apr 2008
Posts: 31
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
jason will become famous soon enough
Default

Ah-HA!, I'm not an idiot, but I am talking to myself in here a lot (hmmmm...)

NEway, my "solution" didn't get me completely there, because I've learned a lesson today about the DOM, and using Ajax calls to update the contents of page containers. From my understanding (always open to correction), if you re-init the contents of a div, using an ajax call then the new content is not reachable from javascript code expressed on the host document.

If I use PHP to fill a div with content, then later use ajax on that document to update the div, beyond that point in time the javascript (jQuery) code on that document will not be able to access the contents of of the updated div.

Please help because I'm going out of my mind. (...clearly).
Reply With Quote