[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-05 Thread Rob Desbois
o for the select element? - Original Message From: Rob Desbois <[EMAIL PROTECTED]> To: jquery-en@googlegroups.com Sent: Wednesday, April 4, 2007 2:54:17 AM Subject: [jQuery] Re: working around IE's lack of click/dblclick events Dan, Thanks so much for your help on this. It now w

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-04 Thread Ariel Jakobovits
So in the end, what event are you listening to for the select element? - Original Message From: Rob Desbois <[EMAIL PROTECTED]> To: jquery-en@googlegroups.com Sent: Wednesday, April 4, 2007 2:54:17 AM Subject: [jQuery] Re: working around IE's lack of click/dblclick events D

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-04 Thread Dan G. Switzer, II
Rob, >Thanks so much for your help on this. >It now works - but it works because I'm now testing with dblclick instead >of click. dblclick works perfectly, click still doesn't (try your demo page >using click instead if you're interested). I assume this is because of the >slight additional time r

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-04 Thread Rob Desbois
Dan, Thanks so much for your help on this. It now works - but it works because I'm now testing with dblclick instead of click. dblclick works perfectly, click still doesn't (try your demo page using click instead if you're interested). I assume this is because of the slight additional time requir

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-03 Thread Dan G. Switzer, II
Rob, >Still no luck with that code. The only way I can make it work is by putting >an alert('...') in the change/click handler - the delay is obviously enough >that IE has updated the DOM by the time the box is closed. Without the >alert, I just get the selections before the change. Here's a wor

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-03 Thread Rob Desbois
Dan, Still no luck with that code. The only way I can make it work is by putting an alert('...') in the change/click handler - the delay is obviously enough that IE has updated the DOM by the time the box is closed. Without the alert, I just get the selections before the change. Bah! rob. On 4

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-03 Thread Dan G. Switzer, II
Rob, >Thanks for that - I'm having trouble transferring the technique behind it >though. >Debugging with Firebug and putting breakpoints in _Field_transferTo() and >_transferOptions() then double-clicking or using the buttons to transfer >never breaks... > >I've looked through the source for thos

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-03 Thread Rob Desbois
Nilesh, thanks for the advice. I am no longer attempting to emulate click / dblclick events for elements, I have attached these events to the instead as it's obviously far better. The problem is actually that in IE, the click / dblclick event handlers are executed *before* the elements' attribu

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-03 Thread [EMAIL PROTECTED]
If you are messing around with Options and want to allow Double clicks to them, then use the Select tag to do it on. for example add the Dbl click action the the Main Select tag vs teh Options tag, and use selectedIndex to findout what Options tag is selected, and you should be table to move it

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-03 Thread Rob Desbois
Dan, Thanks for that - I'm having trouble transferring the technique behind it though. Debugging with Firebug and putting breakpoints in _Field_transferTo() and _transferOptions() then double-clicking or using the buttons to transfer never breaks... I've looked through the source for those funct

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-02 Thread Ⓙⓐⓚⓔ
Dan, 165 references to jquerify on google! Perhaps you should submit it to wikipedia!! On 4/2/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: Rob, >Yes, this it what I was planning to do from my first email: >>> ...when IE >>> calls the 's click handler, it does this *before* updating >>> th

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-02 Thread Dan G. Switzer, II
Rob, >Yes, this it what I was planning to do from my first email: >>> ...when IE >>> calls the 's click handler, it does this *before* updating >>> the .selectedIndex property, hence you cannot tell which item has been >>> double-clicked on. > >>> I could use a timer to get around this problem bu

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-02 Thread Rob Desbois
Dan, Yes, this it what I was planning to do from my first email: ...when IE calls the 's click handler, it does this *before* updating the .selectedIndex property, hence you cannot tell which item has been double-clicked on. I could use a timer to get around this problem but it's a bit of a h

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-02 Thread Dan G. Switzer, II
Rob, >Because when you double-click on an option in one box it should transfer it >to the other box. >It's commonly used in applications hence I want to replicate a behaviour >that people will have seen and might expect - I would expect it in this >situation. The reason I ask, is just attach the

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-02 Thread Rob Desbois
Because when you double-click on an option in one box it should transfer it to the other box. It's commonly used in applications hence I want to replicate a behaviour that people will have seen and might expect - I would expect it in this situation. I also think that a 'non-selected' and a 'selec

[jQuery] Re: working around IE's lack of click/dblclick events

2007-04-02 Thread Dan G. Switzer, II
Just curious, by why would you even want to put click/dblclick event handlers on each option element? -Dan >-Original Message- >From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On >Behalf Of [rob desbois] >Sent: Monday, April 02, 2007 11:59 AM >To: jQuery (English) >Subject: [j