[TriLUG] DOM Hell(p)

Brian McCullough bdmc at bdmcc-us.com
Thu Mar 27 13:13:25 EDT 2008


Folks,

As some of you know, I don't have much hair to lose, so would rather not
lose any more over JS and, in particular, DOM manipulation.

I'm almost at the state of offering lunch or more for anyone who can
help me get past an issue that I have been fighting for too long.  This
is a completely different project than the last one that I asked for
help with.

I'm pretty sure it has to do with scope but I could easily be wrong.

To be specific, I am working with a pair of iframes ( one the child of
the other ), both of which are nested within other iframes, and the YUI
library.  I _think_ that I know ( I suppose that I should take a
side-trip and confirm ) how to add data to an element in a YUI TreeView,
so that isn't the problem.  What I am trying to do is get a selected
string from the innermost iframe into a variable.  I found an
informative section in the O'Reilly book on JavaScript which shows a
function to capture a selection, but I strongly suspect that somehow it
can't "see" the selection because of scope issues.  I also get
completely lost when I try and navigate through the DOM using FireBug,
because it just seems to go in circles.


Help?


Thanks,
Brian





More information about the TriLUG mailing list