Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 24th, 2003, 10:20 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
doing a mouse up event but stopping the click

is this possible?

I have a javascript drag/drop thing going on.

problem is that I also want to have a click event on the same button.

can I distingish between the too. right now the drap/drop works but the click even it still happening, I wish to cancel this event inside the mouse up event to release the drag.

I have tried a few things and nothing works.

Will this also allow me to do the click event?

thanks

Reply With Quote
  #2  
Old July 24th, 2003, 11:10 PM
sliver's Avatar
sliver sliver is offline
Moderator
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: WI, USA
Posts: 906 sliver User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 10 m 54 sec
Reputation Power: 2
Send a message via AIM to sliver Send a message via XFire to sliver
RE: doing a mouse up event but stopping the click

Can't you do onclick='javascript: return false' and use onmousedown and onmouseup events for the drag and drop?

Reply With Quote
  #3  
Old July 25th, 2003, 02:15 AM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: doing a mouse up event but stopping the click

maybe I did not explain myself completely, here we go.

have a button, this button can be clicked and something can happen.

this button is also movable. you can click on it and drag it around then release.

what I want to do is be able to have this functionality for both.

so the browser can distingush between a click and an seperate mouse down and up

Reply With Quote
  #4  
Old July 25th, 2003, 02:23 AM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: doing a mouse up event but stopping the click

maybe I did not explain myself completely, here we go.

have a button, this button can be clicked and something can happen.

this button is also movable. you can click on it and drag it around then release.

what I want to do is be able to have this functionality for both.

so the browser can distingush between a click and an seperate mouse down and up

Reply With Quote
  #5  
Old July 25th, 2003, 03:35 PM
crisp crisp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Holland
Posts: 336 crisp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: doing a mouse up event but stopping the click

see it this way: you have to distinquish between a click (which is a mousedown followed by a mouseup) and between drag and drop (which is a mousedown, followed by movement while the mousebutton is down, and a mouseup).
Solution would be to track the movement after the mousedown (which you need anyway), and during that set some indication that the onclick should not be executed.

Reply With Quote
  #6  
Old November 19th, 2004, 02:41 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: doing a mouse up event but stopping the click

Hi,
I have just seen this post.I too need to implement drag and drop through javascript in my project.Could you guys please post me the code patch that would do the drap n drop.

I appreciate your quick response.Very urgent.

Thanks much,
-Aparna.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > doing a mouse up event but stopping the click


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT