From 26022d8d2acedca2a7b637fde698785d0c4fee79 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 19 May 2005 17:29:20 +0000 Subject: Ajax docing #1282 [Dee.Zsombor@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/javascript_helper.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb index 35a09b2e4e..c897c5e8b8 100644 --- a/actionpack/lib/action_view/helpers/javascript_helper.rb +++ b/actionpack/lib/action_view/helpers/javascript_helper.rb @@ -67,6 +67,19 @@ module ActionView # If you for some reason or another need synchronous processing (that'll # block the browser while the request is happening), you can specify # options[:type] = :synchronous. + # + # You can customize further browser side call logic by passing + # in Javascript code snippets via some optional parameters. In + # their order of use these are: + # + # :confirm:: Adds confirmation dialog. + # :condition:: Perform remote request conditionally + # by this expression. Use this to + # describe browser-side conditions when + # request should not be initiated. + # :before:: Called before request is initiated. + # :after:: Called immediately after request was + # initiated and before :loading. def link_to_remote(name, options = {}, html_options = {}) link_to_function(name, remote_function(options), html_options) end -- cgit v1.2.3