Forum: Ruby on Rails replace_html on a select fails on IE and Opera

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Aba0008be81f176b2812112ce3929ef0?d=identicon&s=25 Hakan Aksu (hknaksu)
on 2006-05-08 20:34
I am using an rjs file to do a page.replace_html on a select field as
follows:

@inrhtml = options_from_collection_for_select( @widgets, "id", "name")
page.replace_html "type_select", @inrhtml

I have it working on firefox and safari but it doesn't work on IE and
opera?
My javascript defaults are up-to-date.

I would appreciate any help.
thx,
-hkn
9d1f5d2d9de70bd9a934f557dc95a406?d=identicon&s=25 Daniel ----- (liquid)
on 2006-05-09 01:24
(Received via mailing list)
You cannot use this in IE.   Don't know about Opera.

IE doese not support the innerHTML js function on select boxes amongst
other things.

Ezra gave a solution to this problem a while back.   Sorri but I don't
have it in front of me.  If you search in RForum for a post with
Dynamic in the title and a reply by Ezra you will find it.
This topic is locked and can not be replied to.