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

showModalDialog

Hello,
I'm trying to change the page in the modal window opened with
openModalDialog. The page change must be done from the modal window itself
WITHOUT postback. For now I have problems since it's not opening in the
modal window, but in a new window... I saw something about <base
target="_self">, but unfortunately it didn't work for me (IE6 SP1). Anyone
has ideas?

--
With the best wishes,
Shaul Feldman
Nov 18 '05 #1
7 2080
it's a modal dialog, it's not designed for navigation.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Shaul Feldman" <sf******@writeme.com> wrote in message
news:u4****************@TK2MSFTNGP09.phx.gbl...
Hello,
I'm trying to change the page in the modal window opened with
openModalDialog. The page change must be done from the modal window itself
WITHOUT postback. For now I have problems since it's not opening in the
modal window, but in a new window... I saw something about <base
target="_self">, but unfortunately it didn't work for me (IE6 SP1). Anyone
has ideas?

--
With the best wishes,
Shaul Feldman

Nov 18 '05 #2
"Shaul Feldman" <sf******@writeme.com> wrote in message news:u4****************@TK2MSFTNGP09.phx.gbl...
Hello,
I'm trying to change the page in the modal window opened with
openModalDialog. The page change must be done from the modal window itself
WITHOUT postback. For now I have problems since it's not opening in the
modal window, but in a new window... I saw something about <base
target="_self">, but unfortunately it didn't work for me (IE6 SP1). Anyone
has ideas?


Use an iframe in the dialog to host the target page, then change the iframe src.

-Pete
Nov 18 '05 #3
ok, then why did it navigate when I made a postback?!...

--
With the best wishes,
Shaul Feldman
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
it's a modal dialog, it's not designed for navigation.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Shaul Feldman" <sf******@writeme.com> wrote in message
news:u4****************@TK2MSFTNGP09.phx.gbl...
Hello,
I'm trying to change the page in the modal window opened with
openModalDialog. The page change must be done from the modal window itself WITHOUT postback. For now I have problems since it's not opening in the
modal window, but in a new window... I saw something about <base
target="_self">, but unfortunately it didn't work for me (IE6 SP1). Anyone has ideas?

--
With the best wishes,
Shaul Feldman


Nov 18 '05 #4
bug.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Shaul Feldman" <sf******@writeme.com> wrote in message
news:e$**************@TK2MSFTNGP11.phx.gbl...
ok, then why did it navigate when I made a postback?!...

--
With the best wishes,
Shaul Feldman
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
it's a modal dialog, it's not designed for navigation.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Shaul Feldman" <sf******@writeme.com> wrote in message
news:u4****************@TK2MSFTNGP09.phx.gbl...
Hello,
I'm trying to change the page in the modal window opened with
openModalDialog. The page change must be done from the modal window itself WITHOUT postback. For now I have problems since it's not opening in the modal window, but in a new window... I saw something about <base
target="_self">, but unfortunately it didn't work for me (IE6 SP1). Anyone has ideas?

--
With the best wishes,
Shaul Feldman



Nov 18 '05 #5
I've been reading MSDN information on Dialogue Boxes. I haven't found anything implying that server capabilities that would be accessible from a Dialog Box should be any different than what is accessible via window.open, or window.navigate. The term "modal" merely means that the window retains focus until it is closed and thus forces the user to compete their interaction with the Dialogue Box before doing anything else. It seems reasonable to expect that interaction between a web server and a Modal Dialogue Box would behave the same as between a web server and any other window; focus is controlled from within the browser

Even the simplest of Dialogue Boxes has to make a round trip to the server and render a page (albeit very simple HTML pages in the examples I've seen). In what way is this not "navigation", as you intend the term to mean?
Nov 18 '05 #6
What I meant was the next: If I load a page with a single link into modal
window, click the link, the result would be a new Window with the contents
of the page that link leads to. It's not what I need, I need to stay in that
modal window. I don't understand why can't I change pages in modal window,
I'm not trying to change the focus...

--
With the best wishes,
Shaul Feldman
"Rich" <an*******@discussions.microsoft.com> wrote in message
news:25**********************************@microsof t.com...
I've been reading MSDN information on Dialogue Boxes. I haven't found anything implying that server capabilities that would be accessible from a
Dialog Box should be any different than what is accessible via window.open,
or window.navigate. The term "modal" merely means that the window retains
focus until it is closed and thus forces the user to compete their
interaction with the Dialogue Box before doing anything else. It seems
reasonable to expect that interaction between a web server and a Modal
Dialogue Box would behave the same as between a web server and any other
window; focus is controlled from within the browser.
Even the simplest of Dialogue Boxes has to make a round trip to the server

and render a page (albeit very simple HTML pages in the examples I've seen).
In what way is this not "navigation", as you intend the term to mean?
Nov 18 '05 #7
Well, there;s a solution.
I thank everyone who tried to help me out with this problem.
The solution was quiet simple.
In the "head" section I had to name explicitely the window and
use it as a target in "href" link. Something like
<head>
<script>
window.name = 'winModal';
</script>
</head>
....
<a href="http://some.address" target="winModal">click here</a>
....

Worked great!

PS: Dear Curt, someone told me once - "there's nothing impossible, the
question is what are your limits"...

--
With the best wishes,
Shaul Feldman

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
bug.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Shaul Feldman" <sf******@writeme.com> wrote in message
news:e$**************@TK2MSFTNGP11.phx.gbl...
ok, then why did it navigate when I made a postback?!...

--
With the best wishes,
Shaul Feldman
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
it's a modal dialog, it's not designed for navigation.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Shaul Feldman" <sf******@writeme.com> wrote in message
news:u4****************@TK2MSFTNGP09.phx.gbl...
> Hello,
> I'm trying to change the page in the modal window opened with
> openModalDialog. The page change must be done from the modal window

itself
> WITHOUT postback. For now I have problems since it's not opening in the > modal window, but in a new window... I saw something about <base
> target="_self">, but unfortunately it didn't work for me (IE6 SP1).

Anyone
> has ideas?
>
> --
> With the best wishes,
> Shaul Feldman
>
>



Nov 18 '05 #8

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

Similar topics

2
by: Simon Storr | last post by:
Is it possible to make the parent window refresh when a modal dialog is closed? I know I can use window.opener.location.reload(true); for a 'normal' window, but this doesn't work for...
6
by: Scott Lee | last post by:
I am displaying an ASP.Net generated form in a popup opened with window.showModalDialog. The form contains DropDownList controls. The first ddl is populated via databinding to a datatable, has...
4
by: MW de Jager | last post by:
I want to call ShowModalDialog(...) from my C# code in the code behind page of my aspx page. I do not want to link this to a button, since I want to first do some checking myself before I call the...
3
by: needin4mation | last post by:
Hi, I have an asp:button that has a ShowModalDialog script attribute added to it. When the ShowModalDialog opens the user is supposed to select some data which is then sent back to the calling...
2
by: Sarah | last post by:
I am using the javascript showModalDialog function to open a file upload window. The function opens a page which contains a usercontrol housing the file upload stuff. The control works fine when...
3
by: johkar | last post by:
Just want a verification of logic. This seems to work for IE and Firefox, but I wonder if it would be a problematic test in any of the other latest browsers? Is the use of the "window" object...
1
by: John | last post by:
Hi, I'm having a problem opening / downloading csv files when called from a page opened with window.showModalDialog( ). To isolate this problem, I've written 3 files (see below). 1. main.htm...
6
by: David | last post by:
Hi all, I am opening a webform with showModalDialog. This appears to pop-up fine, though I have a problem... Inside the webform is a treeview control. When the treeview is populated, I am...
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...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
0
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.