By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,561 Members | 3,010 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,561 IT Pros & Developers. It's quick & easy.

Submit form from modal dialog

P: n/a
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.
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"martin de vroom" <ma***********@hotmail.com> wrote in message
news:eR**************@TK2MSFTNGP11.phx.gbl...
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.

Jul 19 '05 #2

P: n/a
It is, modals have always had this by design I believe.

--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Ray at <%=sLocation%>" <ra*@ajf8jalskdfna.sefrhja7yasdf.com> wrote in
message news:uf**************@TK2MSFTNGP10.phx.gbl...
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

"martin de vroom" <ma***********@hotmail.com> wrote in message
news:eR**************@TK2MSFTNGP11.phx.gbl...
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.


Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.