Morten
2008-Apr-03 10:42 UTC
Element.new(''textarea'', ...).update(''internet\nexplorer'')
Hi, When I add content (via update) with line breaks to a textarea element, these do not show in Internet Explorer. Anyone know a work around for this? (Other than using builder or templates). Example: http://www.itu.dk/people/morten/aaa/foo.html - also contains examples on how to accomplish the same using templates or builder. Br, Morten --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
jdalton
2008-Apr-03 14:39 UTC
Re: Element.new(''textarea'', ...).update(''internet\nexplorer'')
You should use: setValue not update(), I am surpised it worked at all :). new Element(''textarea'',{className:''text large'',name:''viaelement'',style:''width:95%;height: 80px'' }).setValue(''morten\ntorden\nelement''); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---