aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes multiple iframe submit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "multiple iframe submit" Watch "multiple iframe submit" New topic
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: 15376
    
    6
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: 15376
    
    6
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: 15376
    
    6
also look at this
http://www.quirksmode.org/js/iframe.html
 
jQuery in Action, 2nd edition
 
subject: multiple iframe submit