Modifying the objects in a document using code inside an inline frame.

cpalacios used Ask the Experts™
I have a page with some text fields.  Below them I have an inline frame with an xml tree that contains links with values attached to them.  I want to be able to click on a link from the inline frame and insert them into the text fields above the inline frame.  I've tried document.form.textfield1.value = "whatever", but it doesn't work.  How can I do it?

Please help and ask questions if not sure about my question.

Thank you in advance!
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
1.can you get the value of what you have clicked on in an alert?

2.can you default a textbox with some text and return that in an alert when you click something in the tree?

try to put them together...
is the code you are executing in the frame or in the main page?  If it is in the frame, then do this:

parent.document.forms[0].textfield1.value = "whatever";


parent.document.NameOfTheForm.textfield1.value = "whatever";

(but don't name the form "form" -- it is a keyword.  name it "myform" or "theform" or anything but "form").
cpalacios, let us know if this worked for you.


Thank you it works great.  Now my only problem is that Netscape won't accept Inline Frame!!! >:{


Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial