On Nov 26, 1:44 am, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have this:
> <%= drop_receiving_element :slot2, {:onDrop =>
"function(element) {
> $(''slot2'').replace(''<td id =
"slot2"> + element + </td>'' ).addClassName
> (''cardfill''); }"} %>
>
> I am trying to replace the data ina table but when I try this it
> complains a saying it is looking for a ''}'' at
"slot2"
>
> According to the prototype docs this should be the correct syntax.
> Anyone know how to do this?
You need to escape those " in the string :-)
Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---