Click to See Complete Forum and Search --> : writing in a frame, from a popup


ftrudeau
11-06-2003, 03:32 PM
Hello. Im already using this javascript trick in order to write to an input form, from one frame to another.

top.input.document.forms['inputForm'].text2.value +="/m "+user+" ";

user is passed in arg to the function itself ...

Now im trying to figure out how to do something a little trickier, that is doing the same thing, put from a popup window called from frame #1, but that will update the form in frame #2.

Is this possible ? If so, how ?? ;)

Thanks for any pointers.

Khalid Ali
11-06-2003, 03:44 PM
top.opner
will give you the reference to the frame that opened the popup from that point its same as yo already have

top.opener.parent.secondFramesName.formName.fieldName.value="from popup";

ftrudeau
11-07-2003, 01:25 PM
Working like a charm. Thanks for your most welcome help.