473,416 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Submit form from modal dialog

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
2 12217
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Joel | last post by:
Hi there, My original window (A) opens a modal dialog window (B). In B, you fill out a form and submit it to itself for processing. When B reloads, it knows that is successfully processed the...
2
by: Matt | last post by:
I reposted this question because I really want to accomplish this task. Please advise!! I want to post the form data (http://server/page1.asp) to a modal dialog window...
3
by: jeff | last post by:
Hello, I have a form that submits it's values to a pop-up window. I've simplied the code: <form name="formname" action="action.php" target="windowName" method="post" onsubmit="window.open('',...
2
by: Matt | last post by:
I want to know how to submit the form data to a modal dialog window? The following is page1.asp, and when the user clicks submit button, it will post the form data to page2.asp by opening a new...
4
by: Paul Aspinall | last post by:
Can anyone advise how to display a form on top, and modal, without using ShowDialog?? Thanks
8
by: Stephen Rice | last post by:
Hi, I have a periodic problem which I am having a real time trying to sort. Background: An MDI VB app with a DB on SQL 2000. I have wrapped all the DB access into an object which spawns a...
5
by: Miro | last post by:
I will try my best to ask this question correctly. I think in the end the code will make more sence of what I am trying to accomplish. I am just not sure of what to search for on the net. I...
11
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
1
by: mikeh3275 | last post by:
I'm new to developing in jQuery, so I'm probably doing this wrong. I'm loading a form into a modal dialog box and I'm trying to assign a click event to the button in the form, but I can't seem to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.