A "is it possible?" question from a novice...

I am using the tabs plugin to load a page via ajax mode.  In the newly
loaded content, I have some checkboxes, which I then process using
javascript/ajax/XMLHttpRequest.  When I return from the ajax
processing, I am trying to change an attribute (background color) of
an element which was loaded via tabs in ajax mode, by using its ID.
When trying to select the element to change the background color I get
a null for getElementById(idofnewelement).  It's entirely possible
that I have a coding error, but before I kill myself debugging, I
wanted to check to see if this is even possible. I am guessing that it
is NOT possible to do this since the DOM of the new tabs page does not
exist when the initial tabs page is loaded and therefore
getElementById can't see it.  Do I have the correct understanding of
the accessibility of the DOM of data loaded via tabs in ajax mode?  If
not, is there someway to "refresh" the DOM after a tabs/ajax load?

Thanks,

Mike

Reply via email to