Displaying 1 result from an estimated 1 matches for "form_foo_bar".
2006 Jun 05
1
Unobtrusive javascript...what if?
...with just one extra line
of code in your layout, a plugin, and one small enhancement to the
helpers. Something like this:
[php]
<% form_remote_tag :controller => ''foo'', :action => ''bar'',
:unobtrusive => true %>
# which produces
<form id="form_foo_bar" action="/foo/bar" method="post">
[/php]
But which still acts as an ajax form? You would simply handle the
response for ajax and non ajax requests using Rails'' responds_to
function.
In addition, what if you could attach javascript functionality to your
page el...