Ah, adding elements to selects. I remember having issues with that once upon a time, the best way I've found is to do:
select.options[select.options.length] = new Option(text, value, false, false); One of those 'false' arguments reflects whether it should be selected, I can't recall what the other is. You can find some documentation on the Option object on google I'm sure. Greg > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:rails-spinoffs- > [EMAIL PROTECTED] On Behalf Of Blaise Bernier > Sent: Monday, March 20, 2006 4:17 PM > To: rails-spinoffs@lists.rubyonrails.org > Subject: RE: [Rails-spinoffs] About prototype.js and IE > > Finally I managed to test my AJAX response and IE get the data, but is > unable to show it. I'm using > > new Insertion.Bottom > > to populate a <select> field. I've found somewhere on the internet that > IE6 may have some problems with that method used with a table (<tr> > etc.) but nothing is said about the <select> fields. Would there be a > workaround ar an hack to make it work?? > > thanks a lot in advance, > > Blaise Bernier > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs