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!

ifrmae form

Status
Not open for further replies.

lonelydragon

Programmer
Aug 5, 2004
75
0
0
US
hello,
i am tring to submit a iframe form from JS in the parent. but it works in IE, and not in fireforx. anyoen can help?
the code i use isone of the following:
window.frames['groupFile'].document.groupForm.submit();
//window.frames['groupFile'].document.getElementById('groupForm').submit();
 
i just found if i add aler("something") in the JS code before the submit(), it works, but if i remove the alert, nothing happen again.

Maybe that's to do with what I said in my post a few back:

You are running the script inline - so you could well be trying to submit the form before it has even loaded. Try moving the code to a function which is called onload

Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top