Hi, after i click submit and refresh the parital(with page.replace_html) with the remote_form_for, the <%= form.text_area :body, :rows => 10, :cols => 40 %> still contains the previous text. how do i totally remove the text inside of it?
on 2008-10-31 19:35
on 2008-10-31 20:08
Never mind i got it @comment.body = "" before the page.replace
on 2008-10-31 20:51
On further look investigation I haven't really solved the problem. The text is erased after I submit the form but it still remains when I refresh the page.
on 2008-10-31 21:24
That's the browser doing that... I don't think you can stop it from doing that on a refresh.
on 2008-10-31 21:25
on 2008-10-31 21:26
Yeah I managed to find out shortly after I typed that message page.form.reset