Changeset 18763 in project


Ignore:
Timestamp:
07/09/10 02:22:33 (10 years ago)
Author:
Mario Domenech Goulart
Message:

awful: fixed documentation and example regarding to ajax''s update-targets'.

Location:
release/4/awful/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • release/4/awful/trunk/awful.wiki

    r18613 r18763  
    935935The {{prelude}} keyword parameter (string) is an arbitrary piece of javascript code to be placed right before the ajax request.
    936936
    937 The {{update-targets}} keyword parameter is a list of symbols which represent the identifiers of DOM elements to be updated on the success of the ajax request.  When {{update-targets}} is used, the procedure {{proc}} used as argument to {{ajax}} should yield an alist as result.  The alist maps DOM elements identifiers to their corresponding values.
     937The {{update-targets}} keyword parameter a boolean indicating whether multiple targets should be updated upon ajax response.  When {{update-targets}} is used, the procedure {{proc}} used as argument to {{ajax}} should yield an alist as result.  The alist maps DOM elements identifiers to their corresponding values.
    938938
    939939Here's an example:
     
    952952          (lambda ()
    953953            '((a . 1) (b . 2) (c . 3)))
    954           update-targets: '(a b c))
     954          update-targets: #t)
    955955
    956956    (<div>
  • release/4/awful/trunk/tests/update-targets.scm

    r18543 r18763  
    1111          (lambda ()
    1212            '((a . 1) (b . 2) (c . 3)))
    13           update-targets: '(a b c))
     13          update-targets: #t)
    1414
    1515    (<div>
Note: See TracChangeset for help on using the changeset viewer.