Hi everyone,
I have a HTML page and I'm replacing a div by some HTML code using Ajax.
The problem is that I cannot access the newly added HTML tags as their IDs are not part of the original page DOM, so getElementById etc won't work.
How can I add the loaded HTML (or XML) to the current page DOM? Note that I'm also using prototype, does pt offer a way to resolve this kind of problem?
Best regards
Haderach
I have a HTML page and I'm replacing a div by some HTML code using Ajax.
The problem is that I cannot access the newly added HTML tags as their IDs are not part of the original page DOM, so getElementById etc won't work.
How can I add the loaded HTML (or XML) to the current page DOM? Note that I'm also using prototype, does pt offer a way to resolve this kind of problem?
Best regards
Haderach
Comment