Changes for page WOJavaScript

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

From version 4.1
edited by Pascal Robert
on 2011/05/08 01:52
Change comment: There is no comment for this version
To version 5.1
edited by Pascal Robert
on 2011/04/27 00:14
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -2,26 +2,15 @@
2 2  
3 3  = Introduction =
4 4  
5 -WOJavaScript lets you embed a script written in JavaScript in a dynamically generated page.
6 -
7 7  = Usage =
8 8  
9 9  {{code}}
10 10  
11 -WOJavaScript {
12 - scriptFile=aPath; | scriptString=aString; | scriptSource=aURL;
13 - [hideInComment=aBoolean;] ...
14 -}
15 15  
16 16  {{/code}}
17 17  
18 18  = Bindings =
19 19  
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.
24 -
25 25  = Examples =
26 26  
27 27  == Java methods ==