473,327 Members | 2,090 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,327 software developers and data experts.

How do I replace modal dialog?

I open a window with showModalDialog. From within this modal dialog I want
to redirect the dialog to another URL. I have tried all kinds of methods to
redirect the page from the server and directly from html script, but instead
of redirecting the current dialog, a whole new window always pops up. Does
anyone have a way to actually redirect the modal dialog without it being in a
separate window?
Mar 29 '07 #1
3 1377
just use a frameset inside the modal, so the redirect is in a subframe.

-- bruce (sqlworkcom)
Harry Keck wrote:
I open a window with showModalDialog. From within this modal dialog I want
to redirect the dialog to another URL. I have tried all kinds of methods to
redirect the page from the server and directly from html script, but instead
of redirecting the current dialog, a whole new window always pops up. Does
anyone have a way to actually redirect the modal dialog without it being in a
separate window?
Mar 29 '07 #2
Try setting
<base target="_self">
in the <headsection of the modal dialog.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Harry Keck" <Ha*******@discussions.microsoft.comwrote in message
news:9E**********************************@microsof t.com...
I open a window with showModalDialog. From within this modal dialog I
want
to redirect the dialog to another URL. I have tried all kinds of methods
to
redirect the page from the server and directly from html script, but
instead
of redirecting the current dialog, a whole new window always pops up.
Does
anyone have a way to actually redirect the modal dialog without it being
in a
separate window?

Mar 29 '07 #3
Try using the custom control in the following link.
http://codebetter.com/blogs/brendan....22/131048.aspx
I used it with considerable success so far.
--
Sashidhar Kokku
ikaSystems Corp
"Harry Keck" wrote:
I open a window with showModalDialog. From within this modal dialog I want
to redirect the dialog to another URL. I have tried all kinds of methods to
redirect the page from the server and directly from html script, but instead
of redirecting the current dialog, a whole new window always pops up. Does
anyone have a way to actually redirect the modal dialog without it being in a
separate window?
Mar 30 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Patrick Lim | last post by:
Here is the problem: I have written a non-modal frame class in Java for displaying help text when a user is using an application. It works as desired in that if the user selects "help" again,...
2
by: Gilles T. | last post by:
Hi, How I can refresh a modal dialog in asp.net? I open a modal dialog in first with a dropdownlist. To add a element in my dropdownlist (table), I open a second modal dialog to ask element and...
2
by: cassidyc | last post by:
Hi, I was wondering if anyone has come accross this issue? And if they have any solutions I have that can create new copies of itself Form1 as = new form1(); af.show(); This form can also...
10
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
0
by: ApexData | last post by:
I Want Access FIND&REPLACE to stay in FIND mode. Can I place the (Access FIND&REPLACE Dialog) in a popup/modal dialog form? I need to control this process to prevent the user from pressing keys...
2
by: sthrudel | last post by:
Hi! I'm working on a web application in Asp.net and what I would like to have is a cross borwser modal dialog which accepts user's input. I would like to catch what the user clicked on the...
11
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have...
2
by: diogenes | last post by:
I have created many shortcut/popup (aka context, or right-click) menus for my application - instead of toolbars or standard drop-down menus. Within my custom menu, I am using...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.