Changes for page WOJavaScript
Last modified by Pascal Robert on 2012/01/30 22:24
From version 7.1
edited by Pascal Robert
on 2011/04/26 23:05
on 2011/04/26 23:05
Change comment:
There is no comment for this version
To version 10.1
edited by Pascal Robert
on 2012/01/30 22:24
on 2012/01/30 22:24
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,16 +1,43 @@ 1 -{{toc }}{{/toc}}1 +{{toc/}} 2 2 3 3 = Introduction = 4 4 5 +WOJavaScript lets you embed a script written in JavaScript in a dynamically generated page. 6 + 5 5 = Usage = 6 6 7 7 {{code}} 8 8 11 +WOJavaScript { 12 + scriptFile=aPath; | scriptString=aString; | scriptSource=aURL; 13 + [hideInComment=aBoolean;] ... 14 +} 9 9 10 10 {{/code}} 11 11 12 12 = Bindings = 13 13 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 +))) 40 + 14 14 = Examples = 15 15 16 16 == Java methods == ... ... @@ -17,16 +17,12 @@ 17 17 18 18 == WOD-style == 19 19 20 -{{code}} 47 +{{code/}} 21 21 22 - 23 -{{/code}} 24 - 25 25 == Inline bindings (WOOGNL) == 26 26 27 -{{code}} 51 +{{code/}} 28 28 29 - 30 -{{/code}} 31 - 32 32 = Related documents = 54 + 55 +[[ERXJavaScript>>url:http://wocommunity.org/documents/javadoc/wonder/latest/er/extensions/components/javascript/ERXJavaScript.html||shape="rect"]]