By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,474 Members | 1,283 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,474 IT Pros & Developers. It's quick & easy.

Mouse Drag-and-drop Problem

P: n/a
I have a problem in doing a drag-and-drop using javascript in Firefox. I
can perform the operation when I can see the source and destination.
However if the destination is beyond the browser window, and when I drag
the mouse to the bottom of the browser window, the window will not
scroll. (I know when I reach the top as my y-coordinate will be 0).

In normal browser environment, when I drag the mouse and it reaches the
bottom or the top, the browser window automatically scrolls, if there is
room.

In my application, I use onmousemove to simulate the dragging, and the
browser window will not scroll when I reach the bottom (or the top).

My question is, how do I detect the size of the browser window? If I
know the absolute height of the browser window, then I can scroll the
window when I reach the bottom.

Thank you for your help.
Oct 16 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Louis wrote:
My question is, how do I detect the size of the browser window?
The corresponding FAQ entry has been automatically posted here again
7 hours and 15 minutes before your posting.
PointedEars
Oct 16 '07 #2

P: n/a
Louis said the following on 10/16/2007 2:15 AM:

<snip>
My question is, how do I detect the size of the browser window?
I need to save this post for the next time the daily postings are
brought up and someone mentions how useful they are. 7 hours. Wow.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 16 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.