First off, if i've already posted this i apologize. I just got over
the flu (not of the swine variety) and can't remember if i'd posted
this yet.
I want to attach a function to a mouse down on an elment.
Traditionally i'd use
element.onmousedown = downObjectEv ;
function downObjectEv() {
// do stuff
return false ;
}
the return false is to prevent the selecting of text. but i'd rather
use the Event.observe method, but i can't get it to properly return
false. I've tried the following...
element.observe('mousedown', downObjectEv) ;
and
element.observe('mousedown', function() {downObject(); return
false;}) ;
what am i missing?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---