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 05-09-2009, 10:30 PM   PM User | #1
bunion
New Coder

 
Join Date: Dec 2004
Posts: 84
Thanks: 16
Thanked 2 Times in 2 Posts
bunion is an unknown quantity at this point
Detect window move

Hi, I want to detect when the window is moved, in order to trigger something.

I have managed to get the current X and Y coordinates, but other than checking periodically for changed coordinates, is there a way to do this?

I want to be able to trigger the code pretty instantly when the window is moved. Probably not possible without checking every half a second - this would be too cpu intensive right?

Thanks 4 reading.
bunion is offline   Reply With Quote
Old 05-10-2009, 10:25 AM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,033
Thanks: 197
Thanked 2,410 Times in 2,388 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
Quote:
Originally Posted by bunion View Post
I want to be able to trigger the code pretty instantly when the window is moved. Probably not possible without checking every half a second - this would be too cpu intensive right?
Yes, right. In any case, why do you want to do this?
Philip M is offline   Reply With Quote
Old 05-10-2009, 09:11 PM   PM User | #3
bunion
New Coder

 
Join Date: Dec 2004
Posts: 84
Thanks: 16
Thanked 2 Times in 2 Posts
bunion is an unknown quantity at this point
I get javascript to start a flash animation. Oh well.. Thanks for the help.
bunion 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 01:48 AM.


Advertisement
Log in to turn off these ads.