469,271 Members | 1,000 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Get form values from iframe (1) to iframe (2) inside a layer in iframe (1)

This is what I currently have:

parent.frames['iframe1'].document.getElementById['layer'].frames['iframe2'].document.forms['form2']['field2'].value
= parent.frames['iframe1'].document.forms['form1']['field1'].value
Jul 20 '05 #1
3 2286
Daedalous wrote:
This is what I currently have:

parent.frames['iframe1'].document.getElementById['layer'].frames['iframe2'].document.forms['form2']['field2'].value
= parent.frames['iframe1'].document.forms['form1']['field1'].value


And where are you trying to get to?

--
Randy

Jul 20 '05 #2
da*******@netmadeira.com (Daedalous) writes:
This is what I currently have:

parent.frames['iframe1'].document.getElementById['layer'].frames['iframe2'].document.forms['form2']['field2'].value
= parent.frames['iframe1'].document.forms['form1']['field1'].value


Try
parent.frames['iframe1'].frames['iframe2'].document.forms['form2'].
elements['field2'].value =
...
I.e., drop the getElementById. That just gives you an element on the page,
which has no frames attriute (only in Netscape 4 did layers contains
documents, in later browsers there was no such thing as a <layer>, and
only the name stuck (to much confuzion)).

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #3
I'm now able to get values into the iframe2 by using:

document.frames['iframe2'].document.getElementById('value2').value =
somevaluejusttotest;

But I am still unnable to get the values from the first iframe into
the the one in the second iframe.

Thank you in advance and to those that already did or tried.
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Federico Bari | last post: by
5 posts views Thread by Lupus | last post: by
2 posts views Thread by cybervigilante | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.