zscript"

From Documentation
(Created page with '{{ZKDevelopersReferencePageHeader}} '''Syntax:''' <zscript language="Java|Groovy|Python|Ruby|JavaScript"> ''the code snippet'' </zscript> It specifies the zscript code to b…')
 
Line 7: Line 7:
  
 
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 shall be evaluated by any other script defined in a ZUML document.
 
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 shall be evaluated by any other script defined in a ZUML document.
 +
 +
Example,
 +
 +
<source lang="xml">
 +
<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>
 +
</source>
  
 
=Version History=
 
=Version History=

Revision as of 07:37, 19 November 2010

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 shall 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

Last Update : 2010/11/19


Version Date Content
     



Last Update : 2010/11/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.