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.
On 5/9/06, Hakan Aksu <mha@axugroup.com> wrote:> 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
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>