Button to remote

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


On 6/21/07, huang zhimin [email protected] 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

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. [email protected] wrote:


On Jun 21, 7:35 am, “huang zhimin” [email protected] 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs