So in the end, what event are you listening to for the select element?
----- Original Message ----
From: Rob Desbois <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, April 4, 2007 2:54:17 AM
Subject: [jQuery] Re: working around IE's lack of <option> click/dblclick events
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 required for dblclick.
So the verdict? You cannot work out what <option>s are selected in the click
events for a <select> on IE6 without using a timer and callbacks.
Many thanks,
rob
On 4/3/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:
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 working example (that works in IE6) that I threw together in a few
minutes:
http://www.pengoworks.com/workshop/jquery_demo/ex8.1_option_transfer.htm
You could use the basic idea and make it a jQuery plug-in to make it easier
to use.
-Dan
--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
"There's a whale there's a whale there's a whale fish" he cried, and the whale
was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.