Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

submit iframe

Status
Not open for further replies.

lonelydragon

Programmer
Aug 5, 2004
75
0
0
US
anyone knows how to submit an iframe form via/from the parent?
thank you.
waiting online.
 
i have tried the following:
//window.frames['groupFile'].document.getElementById('groupForm').submit();
//window.frames['groupFile'].document.forms['groupForm'].submit();
//window.frames['groupFile'].document.forms[0].submit();
//window.frames.groupFile.document.forms['groupForm'].submit();
//document.frames.groupFile.document.forms[0].submit();

none of the above works.
 
Make sure your frame is really named 'groupFile' and that you are using the correct capitalization.

'good to see that you're making an effort to solve this problem yourself. I'm surprised that none of your attempts worked.

What did the error messages say?

Dave

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...east is east and west is west and if you take cranberries and stew them like applesauce
they taste much more like prunes than rhubarb does
[infinity]
 
i made some change and it works right now.
the change i made is:
originally, the form was created in a JS from the parent, and in the frame only has: <div id=ss></div>

and now i change frame to :<form name='groupForm'><div id=ss></div></form>

it works now :window.frames.groupFile.document.groupForm.submit();

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top