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.
Hakan A. (Guest)
on 2006-05-08 22: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
Daniel -. (Guest)
on 2006-05-09 03: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.