File: aws_action_replace.tjs

package info (click to toggle)
libaws 2.2dfsg-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 7,624 kB
  • ctags: 1,173
  • sloc: ada: 61,829; ansic: 6,483; makefile: 1,282; xml: 196; sh: 119; java: 112; python: 66; sed: 40
file content (29 lines) | stat: -rw-r--r-- 879 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

@@-- $1    action name onclick onchange
@@-- $2    the tag node ID to handle in the DOM tree
@@-- $3    the placeholder for the resulting data
@@-- $4    a set of parameters to pass to the URL
@@-- $5-$9 are linked fields id to this request, all fields are passed as
@@--       parameters to the request.
@@--
@@-- The finale request is : /$2?$4&$5=value($5)&$6=value($6)
@@-- with value(name) being the value for the field named "name".

@@SET@@ ACTION = $1
@@SET@@ ID = $2
@@SET@@ PLACEHOLDER = $3
@@SET@@ PARAMETERS = $4
@@SET@@ F1 = $5
@@SET@@ F2 = $6
@@SET@@ F3 = $7
@@SET@@ F4 = $8
@@SET@@ F5 = $9

@@SET@@ ONCOMPLETE = $20

<script>
   function call_@_ACTION_@_@_ID_@()
      @@INCLUDE@@ aws_func_replace.tjs (@_ID_@, @_PLACEHOLDER_@, @_PARAMETERS_@, @_F1_@, @_F2_@, @_F3_@, @_F4_@, @_F5_@, 20=>@_ONCOMPLETE_@) 
</script>

@@INCLUDE@@ aws_action_js.tjs @_ACTION_@ @_ID_@