Professional Web Applications Themes

Submit form from modal dialog - ASP

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 ...

  1. #1

    Default 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.


    martin de vroom Guest

  2. #2

    Default Re: Submit form from modal dialog

    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" <martindevroomhotmail.com> wrote in message
    news:eRpMWG1SDHA.2256TK2MSFTNGP11.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.
    >
    >

    Ray at Guest

  3. #3

    Default Re: Submit form from modal dialog

    It is, modals have always had this by design I believe.

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

    "Ray at <%=sLocation%>" <rayajf8jalskdfna.sefrhja7yasdf.com> wrote in
    message news:ufYSha1SDHA.2460TK2MSFTNGP10.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" <martindevroomhotmail.com> wrote in message
    > news:eRpMWG1SDHA.2256TK2MSFTNGP11.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.
    > >
    > >
    >
    >

    Curt_C [MVP] Guest

Similar Threads

  1. Parent window for modal dialog
    By Mark_Cleveland@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 2
    Last Post: July 31st, 07:04 PM
  2. problem with non modal ADM dialog
    By SeanWang@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 1
    Last Post: April 9th, 09:43 AM
  3. Modal Dialog
    By Vidar Petursson in forum ASP.NET Building Controls
    Replies: 0
    Last Post: April 14th, 12:51 PM
  4. Modal dialog Filters under X?
    By Mike H. in forum Mac Programming
    Replies: 3
    Last Post: September 25th, 06:19 PM
  5. Modal Dialog Popup from WebControl - What is wrong with this...
    By Bob Lehmann in forum ASP.NET Data Grid Control
    Replies: 4
    Last Post: August 23rd, 03:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139