473,698 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mouse Drag-and-drop Problem

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
2 1919
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
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.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 16 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
19761
by: Fredje | last post by:
Hello, I want to move a control by mouse on a form. I use the following code to mouse a label for example: private void label1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { drag = true; x = e.X;
4
1988
by: Terry Redmond | last post by:
Is there a way to perform a mouse click in C#, but without touching the mouse....if you know what i mean?
8
12684
by: NeoAsimov | last post by:
Hello, There is what I want to do. I worked on the problem since 6 hours but I had a problem (probably stupid) and I dont know how to resolve it. I need to have an Mouse Event Click when I click on the frame of a window form ( like the title bar of a window).
1
2010
by: Vlatko | last post by:
Can I set a x, y value of a mouse pointer (where I would like to set a mouse on the screen). I would like to move a mouse with my program. Can it be done? Thx
3
14139
by: Jason | last post by:
I'm trying to implement some pretty basic behavior in c#/.net 1.1 Forms but can't seem to find all the requisite pieces. When a user clicks on the background of the form, I want the app to start receiving MouseMove updates -- whether the pointer is over the form or not (this being the crucial part) -- until the next MouseDown. It's easy to receive MouseMove events while the pointer is over the form but not when the pointer leaves. (Forms...
1
1546
by: John Paul. A (MCP ID# 3015176) | last post by:
Hi, In a ASP.NET page I have a DataGrid Control populated with some data. I want to resize the DataGrid columns using mouse. That is, when I move the cursor to the edge of a column, the cursor must change to "Size WE" cursor. So that I can drag the column to my preferred size. Can any one help me by giving the code. Thanks & Regards, John -- MTS-Software Engineer, Sharp Software Development India, Pvt. Ltd.,
4
1404
by: Just Me | last post by:
I want to make a small window popup when the mouse hovers. I've looked in the Help but can't find any info (probably can't think of a good keyword) Are ToolTips control used for that? Any suggestions? Thanks
0
1109
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
Being you can drag webparts from zone to zone, is there a way to control drag speed while dragging/scrolling up the page? I have a list of webparts that may go beyond the page. If a user wants to drag the bottom webpart up to the top, I was wondering if the speed of this drag/scroll action can be controlled. Thanks
3
3911
by: ShadowLocke | last post by:
Alright..the idea im trying to create is this: The user would click to set an initial point which would start drawing an image at said point. From this point the user would drag the mouse in order to strech the image plus drag up/down changing the rotation the image. Think about mspaint, the line tool, only with a bitmap. Im pretty good with C#, but for the life of me I cant figure out the math behind this. Any help/pointers would...
2
3131
by: markszlazak | last post by:
In the following script, a control displays (black box) in each table cell once you mouse over the cell. Mouse down on the control to change the mode of the table. Drag the mouse over cells in the same column then mouseup anywhere in a cell. The mouseup event sometimres fires before the selection of table cells by dragging is complete. It's important that I stop these "false" mouseup's from firing or distinguish them from when I let go of...
0
8598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9152
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9014
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7708
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4358
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2320
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.