Hi,
The following javascript code behaves very strangely in IE7, but
works fine in FF.
new Insertion.Bottom("existing_collection", "<option
value=''40''>test</option>");
for the following HTML, it just appends "test</OPTION>" to the
options
list instead of the entire string.
Whats going wrong? How should I be doing this?
<select id="existing_collection"
name="existing_collection">
<option value="">Select a Collection</option>
<option value="28">Surendra''s collection</option>
</select>
Thanks.
--
Surendra Singhi
http://ssinghi.kreeti.com, http://www.kreeti.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
var ec = $(''existing_collection'');
ec.options[ec.options.length] = new
Option(''test'',''40'');
should work better
I''m not sure about the Insertion.Bottom on the Select box- Select boxes
have
always been strange in IE.
On 3/13/07, Surendra
<singhi.surendra-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
>
> Hi,
> The following javascript code behaves very strangely in IE7, but
> works fine in FF.
>
> new Insertion.Bottom("existing_collection", "<option
> value=''40''>test</option>");
>
> for the following HTML, it just appends "test</OPTION>" to
the options
> list instead of the entire string.
> Whats going wrong? How should I be doing this?
>
> <select id="existing_collection"
name="existing_collection">
> <option value="">Select a Collection</option>
> <option value="28">Surendra''s
collection</option>
> </select>
>
> Thanks.
> --
> Surendra Singhi
> http://ssinghi.kreeti.com, http://www.kreeti.com
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
Hello Gareth, On 3/13/07, Gareth Evans <agrath-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> var ec = $(''existing_collection''); ec.options[ec.options.length] = new > Option(''test'',''40''); > > should work betterThanks a lot. Regards, -- Surendra Singhi http://ssinghi.kreeti.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---