getting document element by id

Page: 1

Author Post
theprodigy
Guest
Hello,

I have a setup where I have one float box opening a second floatbox (both are called as iframes, not ajax). On completion of the form of the second float box, I need to update the information on the first float box (set the value of a couple drop downs). I tried:
parent.fb.document.getElementById()
parent.fb.getElementById()
document.getElementById()
parent.document.getElementById()

and none of them seem to work. The demo shows page to float box, but I'm trying to do float box to float box and their seems to be an issue with using the same code.

How can I access the elements of one floatbox from a child floatbox?

Thanks
Administrator
Registered: Aug 2008
Posts: 3382
Please see this post. In your case of running the code from the topmost iframe, the first code line in that example would be var node = parent.fb.fbParent.fbContent;

Let me know if that doesn't cover it for you...
theprodigy
Guest
dude, you rock! Thanks!!

Page: 1