form.submit() does not work in sub window in FireFox

Greetings Experts,
In my current window, I need to populate a form in a hidden IFRAME element, then I need to submit it.
I tried :
- iframe.contentWindow.document.getElementById('myForm').submit();
 or calling a function in that IFRAME that submits the form
 or the __doPostBack of ASP .NET of that window

None of these work in FireFox, and they do not even fire errors, so I do not know what to look for anymore.
Do any of you has an idea of how to bypass this?
Thank you experts.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If your Iframe is named "myFrame", do this:



ID3TECHAuthor Commented:
nah, this is not the problem, I have the form object int he new window, and when I do an alert of the form.submit, it is indeed a function, but when I call it, nothing happens
Is it possible to have some of your code? Both main page and iframe?
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Michel PlungjanIT ExpertCommented:
No errors in the javascript console?

1. make sure you have <form></form>
2. make sure you do NOT have anything name="submit" or id="submit"
3. use the form access:
will submit the first form in the iframe unless of course the content of the iframe is not from the same server (that also means portnumber and protocol)

ID3TECHAuthor Commented:
Thanks for the help, but I just figured out it was because the Frame's style.display was set to none, so the javascript could not execute.
PAQed with points refunded (500)

Community Support Moderator

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.