Submit form from modal dialog

M

martin de vroom

Hi,

I have a web page that opens a modal dialog (client side) in the
following manner

onclick="window.showModalDialog('/dialog.asp',null,'dialogHeight: 200px;
dialogWidth: 400px; dialogTop: 300px; dialogLeft: 150px; edge: Sunken;
center: Yes; help: No; resizable: No; status: No;');">

and the page loads in the modal dialog no problem.

Now, the asp page is a form that submits to itself and so the modal dialog
contains a form that submits to itself.

This is fine except that submitting the form opens a new window.

what I would like to happen is submit the form and it comes back to display
itself in the modal dialog again. if the form processing detects an error I
will leave the form displayed, if no error is detected then I will close the
window using some client side javascript.

however I am having trouble getting the modal dialog form to submit back to
itself and redisplay again within the modal dialog.

can anybody offer any advice on how to do this.

cheers

martin.
 
R

Ray at

I'm not sure about this, but I believe that is just the nature of the modal
and non-modal dialogs that IE creates. Try posting to an IE group - I'm
sure they'll know there.

Ray at home
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,049
Members
48,769
Latest member
Clifft

Latest Threads

Top