Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 22nd, 2004, 04:43 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts
Default howModelessDialog()

Hi,

Say I have multiple dialog boxes open. I'd like to know if it's possible to change the content of a specific dialog box. Is that at all possible?

sb = window.showModelessDialog("test.htm",window);

If I use the variable sb, can I try to do a location.href or something?

 
Old November 22nd, 2004, 04:51 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Have you tried it? ;)

Perhaps reassigning the variable to show a new dialog would work...?

Personally I don't use dialogs, because they're browser-dependant.

HTH,

-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
 
Old November 22nd, 2004, 05:36 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts
Default

no, I tried to do the sb.location.href = ("test2.htm");

and it doesn't really like that...

 
Old November 22nd, 2004, 06:16 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I think it would be:

sb.location.href = "test2.htm";

or maybe:

sb = window.showModelessDialog("test2.htm",window);

-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
 
Old November 22nd, 2004, 06:38 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts
Default

tried both ways and it doesn't work

doing "sb = window.showModelessDialog("test2.htm",window);" simply opens up another dialog box. And location.href with or without the () is giving a script error... saying that location is null or not an object...










Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.