Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Ajax
|
Ajax the combination of XHTML, CSS, DOM, XML, XSLT, XMLHttpRequest, and JavaScript
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ajax 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 April 30th, 2009, 12:40 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default OnClick - hide parent window and open new

Hello,

I am looking for a script that on click of a button Hides the parent window and open a new window/layer.

To get better understanding please click on following link http://www.bizchair.com/107-028-gau.html and than click Furniture Image...


Thanks for you time.
Zeeshan Dar
 
Old April 30th, 2009, 12:49 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Check this:

http://www.asp.net/AJAX/AjaxControlT...odalPopup.aspx
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
 
Old April 30th, 2009, 12:54 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Or look at jQuery's thickbox.
One way is to place a div over the page that prevents any interaction by capturing the mouse clicks and then show your content on top of this.
__________________
Joe
http://joe.fawcett.name/
The Following 2 Users Say Thank You to joefawcett For This Useful Post:
itHighway (April 30th, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Open modal window and pass back url to parent nambati Javascript 3 March 23rd, 2010 08:03 AM
Centering Popup window & Blur Parent window jkusmanto Javascript How-To 0 May 25th, 2007 03:19 AM
closed parent window when opened child window jaiwin Javascript How-To 0 October 8th, 2006 12:54 PM
Window.open from OnClick event in framed env. nancy Javascript How-To 3 December 22nd, 2004 11:30 AM
Close Parent window on opening child window pkdev Javascript How-To 8 April 11th, 2004 12:06 PM





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