Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Get form values from iframe (1) to iframe (2) inside a layer in iframe (1)

Reply
Thread Tools

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

 
 
Daedalous
Guest
Posts: n/a
 
      01-15-2004
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
 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      01-15-2004
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

 
Reply With Quote
 
 
 
 
Lasse Reichstein Nielsen
Guest
Posts: n/a
 
      01-15-2004
(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 -
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
 
Reply With Quote
 
Daedalous
Guest
Posts: n/a
 
      01-16-2004
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
business layer, data access layer , presentation layer for asp.net using C#.net Dhananjay ASP .Net 1 12-18-2006 11:35 PM
how to get layer 2 trough layer 3 ? C Cant Cisco 11 04-19-2005 05:07 PM
Need to get offsetLeft of an iframe or div inside another iframe Nathan Carr Javascript 0 09-17-2004 01:27 PM
difference b/w layer 2 switch and layer 3 switch praveen Cisco 1 10-22-2003 07:19 AM
**HELP: layer as form target and refresh layer with an external file ** Federico Bari HTML 2 08-31-2003 05:56 PM



Advertisments