guest
1
This is odd.
When I call: page.replace_html ‘formdiv’, :partial => ‘listing’ from an
rjs file it renders stuff like:
\n
\n
\n
test
\n
\n test , NY 12344
\n
\n
Phone: (999)999-8888
\n\t\t\n\n
\n \t\n \t\thttp:// \n \t\n
\n
\n \n"); } catch (e) { alert(‘RJS error:\n\n’ + e.toString());
alert('Element.update(“formdiv”, .\n\n\n
\n
In formdiv.
Does anyone have any ideas why this would display thusly?
guest
2
I figured it out. I had the :update => ‘mydiv’ option set in the
form_remote_tag.
After I removed, it the JavaScript output magically goes away.
Thanks Guest (me). 
Guest wrote:
This is odd.
When I call: page.replace_html ‘formdiv’, :partial => ‘listing’ from an
rjs file it renders stuff like:
\n
\n
\n
test
\n
\n test , NY 12344
\n
\n
Phone: (999)999-8888
\n\t\t\n\n
\n \t\n \t\thttp:// \n \t\n
\n
\n \n"); } catch (e) { alert(‘RJS error:\n\n’ + e.toString());
alert('Element.update(“formdiv”, .\n\n\n
\n
In formdiv.
Does anyone have any ideas why this would display thusly?