Preserved Topic: How do you Stop IE from Selecting Images on Drag ? |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: |
posted 04-25-2002 17:24
I found a tutorial on Alchemy but ain't working for me |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 04-25-2002 18:33
It's an annoying combination of returning false from some event handlers, and true from some others. I forget, to be honest. I usually just fiddle with return values until IE ignores clicks and drags. |
Nervous Wreck (II) Inmate From: |
posted 04-26-2002 12:46
well i almost got it right.... |
Maniac (V) Mad Scientist From: New California |
posted 04-26-2002 21:00
Ultra, do you have a link so we can see it in action? |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
posted 04-26-2002 22:20
This one is always a monster pain in the ass, but basically the trick I use is to create an "onmousedown=StartE;" rule, where the StartE() function sets a couple needed variables and then ends with a "return false;". I know there's probably a more proper and elegant way to handle this, but this will work in most browsers you need to worry about. Careful, if you put too much logic in this function before you trigger the 'return false', then the drag & drop functionality might have time to trigger, and you'll be bumming. |
Nervous Wreck (II) Inmate From: |
posted 04-27-2002 03:38
quote:
|
Nervous Wreck (II) Inmate From: |
posted 04-27-2002 10:37
Bugimus thanx for the email |