> No it needs to take effect before the actual dblclick event is fired.  If
> you try to put it inside, the dblclick fires before the select gets disabled
> and the text will still get selected.
>

yeah I just tested it... flicker... :(  Blows my theory... well it works for
mousemove ;-)





>
> On Wed, Aug 26, 2009 at 3:15 PM, Oskar Krawczyk 
> <oskar.krawc...@gmail.com>wrote:
>
>> Will this solution work when fused with dblclick?
>>
>> Sent from my iPhone
>>
>> On 26 Aug 2009, at 18:22, Paul Saukas <arasoihe...@gmail.com> wrote:
>>
>> For doing it to certain elements :
>>
>>   $('Content').onselectstart = function () { return false; } // ie
>>   $('Content').onmousedown = function () { return false; } // mozilla
>>
>> for the whole page
>>
>>   document.onselectstart = function() {return false;} // ie
>>   document.onmousedown = function() {return false;} // mozilla
>>
>> put both in to the onload function and you should be good to go .
>>
>>
>> On Wed, Aug 26, 2009 at 1:06 PM, Eneko Alonso < <eneko.alo...@gmail.com>
>> eneko.alo...@gmail.com> wrote:
>>
>>> I would love to know that. It's specially annoying on sliders, when the
>>> user clicks next multiple times and the text and images get selected.
>>>
>>>
>>>
>>> On Wed, Aug 26, 2009 at 7:38 AM, ksamdev < <ksam...@gmail.com>
>>> ksam...@gmail.com> wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> $( 'my_table_row').addEvent( 'dblclick': function( _event) {
>>>>  _event.stop();
>>>>
>>>>  console.log( 'double click');
>>>> });
>>>>
>>>> Unfortunately on double click browser still performs default text
>>>> select. How to disable it?
>>>>
>>>> Checked in Safari 4, Firefox 3. Both have this problem.
>>>
>>>
>>>
>>
>

Reply via email to