Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-19-2004, 03:53 AM   PM User | #1
Bobo
Regular Coder

 
Join Date: Jan 2004
Location: Port Huron, MI, U.S.A.
Posts: 280
Thanks: 0
Thanked 0 Times in 0 Posts
Bobo is an unknown quantity at this point
move/resize window not working

How do you move/resize the current window?
I've tried window.resizeTo(#,#) and window.moveTo(#,#) but they don't work.
__________________
Oh, was I supposed to put something here? ........
Bobo is offline   Reply With Quote
Old 12-19-2004, 04:04 AM   PM User | #2
codegoboom
Regular Coder

 
Join Date: Aug 2004
Location: codegoboom@yahoo.com
Posts: 999
Thanks: 0
Thanked 0 Times in 0 Posts
codegoboom is an unknown quantity at this point
I don't think you can. At least, IE will throw an "Access Denied" exception, if the window has mouse capture (IIRC).
__________________
*this message will self destruct in n-seconds*
codegoboom is offline   Reply With Quote
Old 12-19-2004, 04:11 AM   PM User | #3
Bobo
Regular Coder

 
Join Date: Jan 2004
Location: Port Huron, MI, U.S.A.
Posts: 280
Thanks: 0
Thanked 0 Times in 0 Posts
Bobo is an unknown quantity at this point
That's wierd. It worked before (there was a mouse capture thing being used.) Oh Well.
__________________
Oh, was I supposed to put something here? ........
Bobo is offline   Reply With Quote
Old 12-19-2004, 04:54 AM   PM User | #4
codegoboom
Regular Coder

 
Join Date: Aug 2004
Location: codegoboom@yahoo.com
Posts: 999
Thanks: 0
Thanked 0 Times in 0 Posts
codegoboom is an unknown quantity at this point
Maybe it was "Permission Denied"... I just meant that happens when the mouse is in "contact" with the focused window. It can be moved from a synchronized dialog window, but it's complicated & not usually worth the trouble, methinks.
__________________
*this message will self destruct in n-seconds*
codegoboom is offline   Reply With Quote
Old 12-19-2004, 05:48 AM   PM User | #5
codegoboom
Regular Coder

 
Join Date: Aug 2004
Location: codegoboom@yahoo.com
Posts: 999
Thanks: 0
Thanked 0 Times in 0 Posts
codegoboom is an unknown quantity at this point
Ok, I wanted to make sure again: it's "Access is denied". The error only happens if the window has capture, such as with onmousedown; while resizeTo or moveTo work for me with onclick. I don't think it's a security issue, either, because that also happens in HTAs.
__________________
*this message will self destruct in n-seconds*
codegoboom is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:07 AM.


Advertisement
Log in to turn off these ads.