Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #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

Reply With Quote
  #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
Reply With Quote
  #3 (permalink)  
Old July 22nd, 2008, 08:40 AM
jminatel's Avatar
Wrox Staff
Points: 13,964, Level: 51
Points: 13,964, Level: 51 Points: 13,964, Level: 51 Points: 13,964, Level: 51
Activity: 22%
Activity: 22% Activity: 22% Activity: 22%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,835
Thanks: 51
Thanked 102 Times in 81 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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 04: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 04:13 AM



All times are GMT -4. The time now is 05:37 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.