Gahhhh, found the culprit. It''s LowPro :-/
Seems that I was standing *too near the edge*, with LowPro''s .5
version :-)
The Dom builder bundled there breaks Prototype 1.6''s Object.toHTML by
declaring String.prototype.toElement.
-Nicolas
On Sep 4, 2:15 am, "Nicolás Sanguinetti"
<godf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''m having strange problems with 1.6''s RC + RJS on
edge[1] when I use
> replace or replace_html from rjs.
>
> For example, with http://pastie.caboo.se/93687, the replaced row of
> the table gets deleted :-/
>
> If I copy and paste the generated javascript into firebug''s
console,
> the row gets deleted too *sigh*
>
> I had another action that replaced all the <tr>s on the tbody using
> rjs and it replaced them for [object Text]. Same happened when I tried
> to insert_html to the bottom of that tbody, it inserted [object Text]
> instead of the rendered partial.
>
> I''m *almost* sure this problem is with Prototype, although I
haven''t
> been able to reproduce it outside of this app. But I tried using ejs
> instead of rjs and the same problems happened. x_x
>
> Best,
> Nicolas
>
> [1]: both with r7360 and r7405
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---