[javascript]showModalDialog in IE7 problem

Hi all,

I am maintaining  a web application.There is a function:
 User click the button,then pop up a modal dialog using javascript "showModalDialog" with a html page.The user will input something, then as the parameters of a function in the parent page. The function will generate a hidden form in the parent page, then submit finally!
Following is my problem:
When using the IE6 or IE8, the submit actually happen inside the modal dialog, so there is no problem(close the dialog, then return the result to the parent page).But using the IE7, the submit is look like blocked except the dialog closed, then there is a javascript error in status bar.

The implement of the function is not so good, but it works on IE6 and IE8.
Do anybody give me some suggestion about the problem?

Thanks in advance!
Who is Participating?
gman84Connect With a Mentor Commented:
You should be able to commit the parent form by making use of the "parent" object.

Open in new window

whbcnAuthor Commented:
BTW, rebuild the function is not my option!
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

What is the javascript error that is thrown?
kindly use this to debug your Js and see the error:-
whbcnAuthor Commented:
More Info:

After submit, the status bar of the parent page is displaying "waiting..." always except dialog closed.Then displays the javascript error,the meaning is "can not execute the script code that has released"
I've not use the "showModalDialog" functionality but putting together what I know about it and your error, I suspect that you are trying to make use of a function that exists in the modal dialog window after you have closed it. This isn't possible as all information on the dialog is lost after it has been closed.
whbcnAuthor Commented:
I think the problem is why the submit can not happen inside the modal dialog when using IE7.It is the different between IE6(IE8) and IE7.
All Courses

From novice to tech pro — start learning today.