Replace_html on a select fails on IE and Opera


I am using an rjs file to do a page.replace_html on a select field as

@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
My javascript defaults are up-to-date.

I would appreciate any help.


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.