zscript"
From Documentation
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{ZKClient-sideReferencePageHeader}} |
'''Syntax:''' | '''Syntax:''' | ||
Line 6: | Line 6: | ||
</zscript> | </zscript> | ||
− | It specifies the zscript code to be evaluated when the corresponding interpreter being loaded by a page. In other words, it specified the initial zscript that | + | It specifies the zscript code to be evaluated when the corresponding interpreter being loaded by a page. In other words, it specified the initial zscript that should be evaluated by any other script defined in a ZUML document. |
Example, | Example, | ||
Line 35: | Line 35: | ||
|} | |} | ||
− | {{ | + | {{ZKClient-sideReferencePageFooter}} |
Latest revision as of 09:31, 23 August 2011
Syntax:
<zscript language="Java|Groovy|Python|Ruby|JavaScript"> the code snippet </zscript>
It specifies the zscript code to be evaluated when the corresponding interpreter being loaded by a page. In other words, it specified the initial zscript that should be evaluated by any other script defined in a ZUML document.
Example,
<zscript language="Java">
import java.util.*;
import java.lang.*;
import org.zkoss.zk.ui.util.Clients;
import org.zkoss.zk.ui.event.*;
import org.zkoss.zk.ui.*;
import org.zkoss.zul.*;
void alert(Object m) {
Messagebox.show("" + m);
}
</zscript>
Version History
Version | Date | Content |
---|---|---|