| Author |
multiple iframe submit
|
Ryan Crow
Greenhorn
Joined: Aug 19, 2002
Posts: 18
|
|
hi guys, im working on a page which contains 2 iframe. from here i need to press the submit button on the parent page and having hte form content within those two iframe being submitted along. is there anyway i could do this in jsp/javascript?? would really appreciate any attention guys. thanks in advance. cheers, ryan.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
Play with this: Eric [ February 19, 2004: Message edited by: Eric Pascarello ] [ February 19, 2004: Message edited by: Eric Pascarello ]
|
 |
Ryan Crow
Greenhorn
Joined: Aug 19, 2002
Posts: 18
|
|
ahh. ive seen similiar codes at other reference as well, but it ended up faulty will null object error. my guess is i left out the "elementName" as mentioned in the sample u gave, what is it suppose to represent? will give this a try. many thanks man. [ February 19, 2004: Message edited by: Ryan Crow ]
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
AH, that was wrong.... play with this top.frames['frameName'].document.FormName.submit(); [ February 19, 2004: Message edited by: Eric Pascarello ]
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
also look at this http://www.quirksmode.org/js/iframe.html
|
 |
 |
|
|
subject: multiple iframe submit
|
|
|