File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple iframe submit

 
Ryan Crow
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Play with this:

Eric
[ February 19, 2004: Message edited by: Eric Pascarello ]
[ February 19, 2004: Message edited by: Eric Pascarello ]
 
Ryan Crow
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
also look at this
http://www.quirksmode.org/js/iframe.html
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic