By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,886 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,886 IT Pros & Developers. It's quick & easy.

showModalDialog

P: n/a
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
Share this Question
Share on Google+
7 Replies


P: n/a
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

P: n/a
"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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.