Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0
This is the forum to discuss the Wrox book Professional JavaScript for Web Developers by Nicholas C. Zakas; ISBN: 9780764579080
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 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
  #1 (permalink)  
Old May 16th, 2008, 01:15 AM
Registered User
 
Join Date: Feb 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Resizing and moving new window through opener

While studying "Navigating and opening new windows" under section "The window object", Chapter:5(JavaScript in the Browser), Page No:142 Book title: "Professional JavaScriptâ„¢ for Web Developers" by Nicholas C. Zakas, Wiley Publishing Inc. , I found following code which doesn't work actually.

var oNewWin = window.open("http://www.wrox.com/","wroxwindow",
"height=150,width=300,top=10,left=10,resizable=yes ");
oNewWin.moveTo(100, 100);
oNewWin.resizeTo(200, 200);

You can't move or resize the new opened window through 'oNewWin'. It gives "Permission denied" error.
You can only close that window by
oNewWin.close();

Can anyone tell me the way to do this?

Regards

  #2 (permalink)  
Old July 22nd, 2008, 05:48 AM
Authorized User
 
Join Date: Jan 2008
Location: Chandigarh, Punjab, India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Harjinder
Default

i m new in javascript would you pleeeeeeeez tell me how to declare globar variable in javascript

harjinder
  #3 (permalink)  
Old July 22nd, 2008, 08:40 AM
jminatel's Avatar
Wrox Staff
Points: 17,906, Level: 58
Points: 17,906, Level: 58 Points: 17,906, Level: 58 Points: 17,906, Level: 58
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,906
Thanks: 62
Thanked 139 Times in 101 Posts
Default

Harjinder: Since your question isn't directly related to the book we're discussing in this forum, it would be better posted in our general JavaScript forum as a new thread:
http://p2p.wrox.com/javascript-85/

Thanks!

Jim Minatel
Acquisitions Director
Wiley Technology Publishing
WROX Press
Blog: http://wroxblog.typepad.com/
Wrox online library: http://wrox.books24x7.com


Similar Threads
Thread Thread Starter Forum Replies Last Post
window.opener for mozilla jun99 Javascript 3 September 1st, 2009 08:57 AM
Problem accessing the window.opener.opener maryuob Javascript 3 January 18th, 2006 05:25 AM
window.opener problems crmpicco Javascript How-To 2 September 30th, 2005 03:46 AM
window.opener help fs22 Javascript How-To 6 May 9th, 2004 10:50 PM
window.opener.refresh matt.fields Javascript How-To 1 November 3rd, 2003 05:13 AM





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