hi,
read the API doc and made search with google but can’t get a precise
explanation on how submit_to_remote work.
can someone help on that?
thanks
hi,
read the API doc and made search with google but can’t get a precise
explanation on how submit_to_remote work.
can someone help on that?
thanks
read the API doc and made search with google but can’t get a precise
explanation on how submit_to_remote work.
It creates a tag that uses an XMLHttpRequest (boy, does that
capitalization bother me) to submit the form the button’s contained
in. Note that it’s different than a , since it won’t do
anything if the user has JavaScript disabled. It can be used to
submit the same form to two different actions, or using different
params, by inserting two different submit_to_remote s inside
a single form with different a different value for the :url hash.
Example:
Field 1:You’ll be able to check both @params[‘button’] (yielding either
‘button1’ or ‘button2’) or differentiate on the action.
Hope this helps; feel free to ask if you have more questions.
-Ben
thanks Ben
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs