Forum Moderators: open

Message Too Old, No Replies

Submitting a form in a Showmodaldialog

Do not want to open a new window within the modal dialog

         

megh

4:44 am on Feb 10, 2004 (gmt 0)

10+ Year Member



Hi Guys,
Would anyone be able to help me out with this. I have opened a showmodaldialog and have a form which submits in that window. On submitting the form it opens another window , which i do not want it to happen. I tried the normal targeting stuff. But it still does open a new window. Is there a way around this folks?

Cheers,
Meghdutt

Purple Martin

4:55 am on Feb 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It sounds like a feature of that type of window. I'm guessing that because it's modal, by default it'll open a new modal window. I just had a look through the MSDN article and couldn't find an answer one way or the other.

One hack that might work could be to use a single-frame page or a page with an iframe. Then you could change the location of the frame or iframe.

megh

8:01 pm on Feb 10, 2004 (gmt 0)

10+ Year Member



That still means that i would have to send this data through querystrings. But i have searched everywhere too and could not find a solution to it. SO i guess you are right that i will haev to work around it.Thanks.

stcrim

2:58 am on Mar 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you considered putting your form in an IFrame?

-s-

megh

3:56 am on Mar 5, 2004 (gmt 0)

10+ Year Member



Yep.That is actually a very good way of doing it. I have named the Iframe and window as the same name. An that works perfectly mate. Thanks.