Forum: Ruby on Rails Ajax.Updater dropping first <OPTION> on IE?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Pete F. (Guest)
on 2006-03-22 08:47
(Received via mailing list)
I am attempting to use Ajax.Updater to update the innerHTML of a SELECT
that is, to feed it a list of <option>..</option> sets generated from a

It works as expected on FF1.5, but in IE6 it renders as an empty select.
When I use the DOM viewer (or an alert()) to dump the value of
innerHTML, it
appears intact EXCEPT that the first <option> is missing with no

I've tried an increasingly ridiculous set of things to fool IE into
rendering properly, including <option><option>..</option> on the first
partial iteration.. nothing. Frankly, it's a little Twilight Zone.

Is this just old news? Do I have to resort to using
document.createElement('OPTION') here?

Pete F. (Guest)
on 2006-03-22 09:01
(Received via mailing list)
Of course, the "a-ha!" came moments after posting..

"You cannot modify the InnerHTML of a select drop-down list. Instead,
have to modify the InnerHTML of the div that _contains_ the select
list, and when you do you have to recreate the whole drop-down."

Who hates IE? I do - more each day, actually.

----- Original Message -----
From: "Pete F." <removed_email_address@domain.invalid>
To: <removed_email_address@domain.invalid>
Sent: Wednesday, March 22, 2006 1:48 AM
Subject: [Rails] Ajax.Updater dropping first <OPTION> on IE?
This topic is locked and can not be replied to.