Hi,

I have a HTML page which contains an iframe. In the iframe is a
textbox that I would like to change the value of from the parent
window. In script I have tried...

<!-- Parent window -->
window.iframeName.document.formName.txtboxName.value = "new words"

but this doesn't work. I can't seem to reference the form but I know
I can get to the document because the following code works

<!-- Parent window -->
window.iframeName.document.bgcolor = "red"

Any suggestions?

Thanks,
JP

Re: update textbox from parent window by Bernhard

Bernhard
Mon Mar 01 21:07:44 CST 2004

I found some links that may help you:

http://www.faqts.com/knowledge_base/view.phtml/aid/14825/fid/127
http://www.faqts.com/knowledge_base/index.phtml/fid/127

The first one may help. Or some more ...

http://www.faqts.com/knowledge_base/view.phtml/aid/2353/fid/127
http://www.faqts.com/knowledge_base/view.phtml/aid/7442/fid/127

BL


"JP" <jpee95-vbs@yahoo.com> wrote in message
news:5552208f.0403011129.6426bff9@posting.google.com...
> Hi,
>
> I have a HTML page which contains an iframe. In the iframe is a
> textbox that I would like to change the value of from the parent
> window. In script I have tried...
>
> <!-- Parent window -->
> window.iframeName.document.formName.txtboxName.value = "new words"
>
> but this doesn't work. I can't seem to reference the form but I know
> I can get to the document because the following code works
>
> <!-- Parent window -->
> window.iframeName.document.bgcolor = "red"
>
> Any suggestions?
>
> Thanks,
> JP



Re: update textbox from parent window by jpee95-vbs

jpee95-vbs
Tue Mar 02 15:31:11 CST 2004

"Bernhard Luedi" <Bernhard_Luedi@swissinfo.org> wrote in message news:<#w3MOOAAEHA.1608@TK2MSFTNGP11.phx.gbl>...
> I found some links that may help you:
>
> http://www.faqts.com/knowledge_base/view.phtml/aid/14825/fid/127
> http://www.faqts.com/knowledge_base/index.phtml/fid/127
>
> The first one may help. Or some more ...
>
> http://www.faqts.com/knowledge_base/view.phtml/aid/2353/fid/127
> http://www.faqts.com/knowledge_base/view.phtml/aid/7442/fid/127
>
> BL

Bernhard,

The links you suggested helped point me in the right direction. Here
is what I actually used:

<-- script in Parent Window -->
window.frameName.document.forms("formName",0).elements("txtboxName").value
= "new words"

Thanks
JP