Changes for page WOJavaScript

Last modified by Pascal Robert on 2012/01/30 22:24

From version 10.1
edited by Pascal Robert
on 2012/01/30 22:24
Change comment: There is no comment for this version
To version 9.1
edited by Pascal Robert
on 2012/01/30 22:24
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,4 +1,4 @@
1 -{{toc/}}
1 +{{toc}}{{/toc}}
2 2  
3 3  = Introduction =
4 4  
... ... @@ -17,26 +17,10 @@
17 17  
18 18  = Bindings =
19 19  
20 -|(((
21 -scriptFile
22 -)))|(((
23 -Path to the file containing the script. The path can be statically specified in the declaration file or it can be a java.lang.String, an object that responds to a description message by returning a java.lang.String, or a method that returns a java.lang.String.
24 -)))
25 -|(((
26 -scriptString
27 -)))|(((
28 -String containing the script. Typically, scriptString is an java.lang.String object, an object that responds to a description message by returning ajava.lang.String, or a method that returns an java.lang.String.
29 -)))
30 -|(((
31 -scriptSource
32 -)))|(((
33 -URL specifying the location of the script.
34 -)))
35 -|(((
36 -hideInComment
37 -)))|(((
38 -If hideInComment evaluates to true (or YES), the script will be enclosed in an HTML comment (<!(% style="text-decoration: line-through;" %)- script ~/~/(%%)->). Since scripts can generate errors in some older browsers that weren't designed to execute them, you may want to enclose your script in an HTML comment. Browsers designed to run these scripts will still be able to execute them despite the surrounding comment tags.
39 -)))
20 +| scriptFile | Path to the file containing the script. The path can be statically specified in the declaration file or it can be a java.lang.String, an object that responds to a description message by returning a java.lang.String, or a method that returns a java.lang.String.
21 +| scriptString | String containing the script. Typically, scriptString is an java.lang.String object, an object that responds to a description message by returning ajava.lang.String, or a method that returns an java.lang.String.
22 +| scriptSource | URL specifying the location of the script.
23 +| hideInComment | If hideInComment evaluates to true (or YES), the script will be enclosed in an HTML comment (<- script ~/~/~-~->). Since scripts can generate errors in some older browsers that weren't designed to execute them, you may want to enclose your script in an HTML comment. Browsers designed to run these scripts will still be able to execute them despite the surrounding comment tags.
40 40  
41 41  = Examples =
42 42  
... ... @@ -44,12 +44,18 @@
44 44  
45 45  == WOD-style ==
46 46  
47 -{{code/}}
31 +{{code}}
48 48  
33 +
34 +{{/code}}
35 +
49 49  == Inline bindings (WOOGNL) ==
50 50  
51 -{{code/}}
38 +{{code}}
52 52  
40 +
41 +{{/code}}
42 +
53 53  = Related documents =
54 54  
55 -[[ERXJavaScript>>url:http://wocommunity.org/documents/javadoc/wonder/latest/er/extensions/components/javascript/ERXJavaScript.html||shape="rect"]]
45 +[[ERXJavaScript>>http://wocommunity.org/documents/javadoc/wonder/latest/er/extensions/components/javascript/ERXJavaScript.html]]