Button to remote


#1

Is there a tag that is a button but acts as link_to_remote?



#2

On 6/21/07, huang zhimin removed_email_address@domain.invalid wrote:

Is there a tag that is a button but acts as link_to_remote?

Check out submit_to_remote:
http://api.rubyonrails.com/classes/ActionView/Helpers/PrototypeHelper.html#M000532

Grtz Gert


#3

It seems that submit_to_remote should be appear only in a form.
But I like to put the buttons anywhere.

On 6/21/07, Gert G. removed_email_address@domain.invalid wrote:



#4

On Jun 21, 7:35 am, “huang zhimin” removed_email_address@domain.invalid wrote:

Is there a tag that is a button but acts as link_to_remote?

I didn’t see an exact solution for your problem in the docs, but you
could start with button_to_function[1]

1:
http://api.rubyonrails.org/classes/ActionView/Helpers/JavaScriptHelper.html#M000631