Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To 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 February 12th, 2005, 06:18 AM
Authorized User
 
Join Date: Sep 2004
Location: , , .
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default pop up window questions........

Hi friends,

I have a couple of questions...

1)How to close a child window when the parent window is closed....?

2)How to open a modal pop up window...? (with out using showmodaldialog)....
OR
I want to make the window opened with window.open() a modal one. How to do that.....?

Thanks in advance....

Cheers,

Jais.
 
Old February 12th, 2005, 11:51 AM
Friend of Wrox
 
Join Date: Dec 2004
Location: Chennai, Tamil nadu, India.
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

For point 1 :: http://vadivel.blogspot.com/2004/02/...nt-window.html

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
 
Old February 12th, 2005, 02:35 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

For point 2, perhaps you could put this in the pop-up window's code:

window.onblur=function(){window.focus()}

hth,

-Snib - http://www.snibworks.com
Where will you be in 100 years?
 
Old February 15th, 2005, 04:10 AM
Authorized User
 
Join Date: Sep 2004
Location: , , .
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks friends.....

For point 2)

It is half done...

When I select a diff. window from the task bar and again the parent window , the child is not showing up...For a modal window it is there...

Is there any way to do this ......?

Cheers...

Happy Programming..

Jais.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Window refresh and window pop up in Java Script Aleksandra Javascript How-To 2 March 2nd, 2007 06:47 PM
Pop Window testsubject General .NET 1 July 2nd, 2006 01:29 PM
pop up window sankar VB How-To 0 July 29th, 2003 01:29 AM





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