I am in the middle of developing something that is causing problems, most likely because it may be trying to stand on a shakey design (which I assumed would work, until now).
Basically I have an XHTML (Strict) document, which is using a combination of JQuery + Ajax to load content in to certain div's based on some event handling I'm processing with JQuery. My problem is that the markup that is being loaded in to certain div's with Ajax calls contains elements which I need to do further event handling, and can't because it's out of scope of the document. The browser can see the markup (after the ajax call), but the document doesn't see it and therefore jQuery can't perform event handling on elements it cannot see unless they are in the same document.
So far my page is constructed as follows:
PHP document, generating XHTML (Strict) markup with document content. Amongst document content there are 2 div's, both of those div's are populated after ajax calls have been made to seperate php scripts for respective content. In the content that is returned to both divs, I want to be able to for example manipulate using jQuery an element in div(A) by clicking on an element in div(B).
Is this possible? Is the architecture wrong?
any help greatly appreciated :)