I am having problems with text area and render :text and RJS used to
fill text area content.
I have a simple readonly text area in which I want to
- I use a periodic_update method to call update_status method every 5
seconds which is supposed to update the contents of text area.
- Add text that the controller function returns - This could have \r\n
and that should be shown as line break in text area.
- I should be able to update the content and not use replace_html from
RJS since the content I want to display is xml.
Issue 1: The text area does not retain \r\n how do I force it to retain.
Issue 3: page[‘text_area’].value = @text retains line breaks but this
does not allow for updates in a text_area this can only replace content.
Thanks for the help…