It happened to me last week when I tried something like page.replace_html
''main'', :partial => ''somethin''... I
changed <div id="main"> with <div
id="main-content"> and the replace_html call accoridingly and
everything was
ok... didn''t dig much into it...
Juan Ignacio Pumarino R.
PS: please excuse my poor English
Guest <blamemike@...> 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?
>
> 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?