[jQuery] Re: Select box redraw in IE - Solution?

2007-04-13 Thread Larry Garfield
I THINK I figured this one out. I was creating the new select box dynamically by cloning the former, like so: var unselected = selected.clone(true); unselected.attr('name', 'unselected_' + unselected.attr('name')); For whatever reason, when I did that IE wasn't removing elements from the new

[jQuery] Re: Select box redraw in IE

2007-04-13 Thread Larry Garfield
I'll have a look at the code there, thanks. I think I have narrowed down the cause of the problem, though. IE *really* doesn't like that I'm adding a select box to the page dynamically, and is therefore pouting by refusing to redraw it. As the wiki says, IE is a sadist. :-( --Larry Garfi

[jQuery] Re: Select box redraw in IE

2007-04-13 Thread Leonardo K
Check this out: http://200.169.53.89:8080/WebApplication/Test/teste.html I'm using the plugin jquery.select.js from http://www.texotela.co.uk/code/jquery/select/, but I modified some lines of the code. On 4/13/07, Larry Garfield <[EMAIL PROTECTED]> wrote: Thanks Karl! I'm afraid that's not

[jQuery] Re: Select box redraw in IE

2007-04-13 Thread Larry Garfield
Thanks Karl! I'm afraid that's not working either. I'm actually manipulating a multi-value select box, not single value. That's where the redraw problem is happening. Current snapshot of what I'm doing is here: http://www.garfieldtech.com/jsdemo/pullbox/test1.html The behavior in Firefox

[jQuery] Re: Select box redraw in IE

2007-04-13 Thread Karl Swedberg
On Apr 13, 2007, at 12:22 PM, Larry Garfield wrote: Not yet. Honestly, I kept having problems with the :selected style syntax. It never matched elements for me. That's why I switched to using [EMAIL PROTECTED], which someone in #jQuery suggested (I don't recall who). I'll give that a tr

[jQuery] Re: Select box redraw in IE

2007-04-13 Thread Larry Garfield
Not yet. Honestly, I kept having problems with the :selected style syntax. It never matched elements for me. That's why I switched to using [EMAIL PROTECTED], which someone in #jQuery suggested (I don't recall who). I'll give that a try this afternoon and see if it works. :-) --Larry Garf

[jQuery] Re: Select box redraw in IE

2007-04-13 Thread Karl Swedberg
Hi Larry, Have you tried something like this? (untested in IE) : $('#select_box_from :selected').remove().appendTo('#select_box_to'); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 13, 2007, at 11:23 AM, Larry Garfield wrote: Hi folks.