Forum: Ruby on Rails removing row from a table using link_to_remote..

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fddbb3cd16868f4741c2e86ef015a639?d=identicon&s=25 Sergio T. Ruiz (sergio101)
on 2008-11-05 22:28
i have a table of values that are presented in a regular html table.

what i would like to do is:

when DELETE is selected in a row, use link_to_remote to do some
processing on the selected record..

once this data is is processed, and the controller is done, i would like
to delete that entry using a visual_effect..

is this possible?

obviously, putting each  row in a DIV will not work..

has anyone else been able to do this?

thanks!
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2008-11-05 22:40
(Received via mailing list)
On 5 Nov 2008, at 21:28, Sergio Ruiz wrote:

> to delete that entry using a visual_effect..
>
> is this possible?
>
just removing the tr element should be ok (not sure about all the
visual effects).

Fred
2505b282d57c29be797dc35b245adb4c?d=identicon&s=25 Philip Hallstrom (Guest)
on 2008-11-05 23:11
(Received via mailing list)
>>
>> is this possible?
>>
> just removing the tr element should be ok (not sure about all the
> visual effects).

Some of the blind/scroll/fade affects can act a little weird.  It will
do the effect, then it will reappear then it will be removed.

If you go this route just remove the element and not worry about it :)
Fddbb3cd16868f4741c2e86ef015a639?d=identicon&s=25 Sergio T. Ruiz (sergio101)
on 2008-11-06 15:22
thanks everyone..

not sure what the problem was..

but i erased and retyped ..

and it worked.

i musta had a typo hidden away in there.

thanks!
This topic is locked and can not be replied to.