> Hi All,
>
> I'm looking for a way to append elements with javascript using
> javascript. Basically I have two lists of items. One has a list of
> items with an "ADD" button (using "link_to_remote") and the other has
> a list of items with a "REMOVE" button (using "link_to_remote").
Do you really need to do it that way? That will call the server every
time a button is clicked. You might want to do the list editing on the
client side, then have a Save button that sends the list to the server.
> When
> I click the "ADD" it immediately places the item into the other list.
> However, I need to be able to have the newly inserted item perform the
> reverse action for "REMOVE".
So the Add button works, but the Remove button does not? You should be
able to do both the same way -- after all, the only difference is that
Add moves things from list 1 to list 2, while Remove does likewise from
list 2 to list 1.
>
> I see no way (besides, perhaps creating a partial to render a non-
> object) to dynamically generate dynamic items of this nature.
I am not sure what your problem is. Please provide more detail and
code.
>
> Any ideas?
>
>
> Best.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---








0 comments:
Post a Comment