What is the difference in treatment between an ajax link_to_remote and a
form_remote_tag
This works great and adds a list item to an ordered list with
id=form_results
link_to_remote (“Help me please!”,
:update => ‘form_results’,
:url => { :action => :search_ajax_test },
:position => ‘bottom’)
with this log message
Processing AdminController#search_ajax_test (for 192.168.15.100 at
2006-01-03 21:35:43) [POST]
Parameters: {“action”=>“search_ajax_test”, “controller”=>“admin”}
Completed in 0.00079 (1272 reqs/sec) | DB: 0.00000 (0%) | 200 OK
[http://192.168.15.50/admin/search_ajax_test]
This does absolutely nothing at all
form_remote_tag ( :udpate => ‘form_results’,
:url => { :action => :search_ajax_test },
:position => ‘bottom’)
…some stuff…
end_form_tag
but still produces this log message
Processing AdminController#search_ajax_test (for 192.168.15.100 at
2006-01-03 21:35:46) [POST]
Parameters: {“commit”=>“Search”, “action”=>“search_ajax_test”,
“controller”=>“admin”, “query”=>“asdf”}
Completed in 0.00077 (1291 reqs/sec) | DB: 0.00000 (0%) | 200 OK
[http://192.168.15.50/admin/search_ajax_test]
Can anyone tell me why the form call does nothing at all?
Thanks