Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 1318

Show
Ignore:
Timestamp:
05/19/05 17:29:20 (3 years ago)
Author:
david
Message:

Ajax docing #1282 [Dee.Zsombor@gmail.com]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_view/helpers/javascript_helper.rb

    r1200 r1318  
    6868      # block the browser while the request is happening), you can specify  
    6969      # <tt>options[:type] = :synchronous</tt>. 
     70      # 
     71      # You can customize further browser side call logic by passing 
     72      # in Javascript code snippets via some optional parameters. In 
     73      # their order of use these are: 
     74      # 
     75      # <tt>:confirm</tt>::      Adds confirmation dialog. 
     76      # <tt>:condition</tt>::    Perform remote request conditionally 
     77      #                          by this expression. Use this to 
     78      #                          describe browser-side conditions when 
     79      #                          request should not be initiated. 
     80      # <tt>:before</tt>::       Called before request is initiated. 
     81      # <tt>:after</tt>::        Called immediately after request was 
     82      #                          initiated and before <tt>:loading</tt>. 
    7083      def link_to_remote(name, options = {}, html_options = {})   
    7184        link_to_function(name, remote_function(options), html_options)