Package org.zkoss.zk.au.out
Class AuLoadScript
java.lang.Object
org.zkoss.zk.au.AuResponse
org.zkoss.zk.au.out.AuLoadScript
Loads a JavaScript file to client and execute it.
- Since:
- 8.0.0
- Author:
- jumperchen
-
Nested Class Summary
Nested classes/interfaces inherited from class org.zkoss.zk.au.AuResponse
AuResponse.JSONComponent, AuResponse.JSONDate -
Field Summary
Fields inherited from class org.zkoss.zk.au.AuResponse
_cmd, _data, SC_ACTIVATION_TIMEOUT, SC_OUT_OF_SEQUENCE -
Constructor Summary
ConstructorsConstructorDescriptionAuLoadScript(String url, String callback, boolean once) Loads a JavaScript file to client and execute it. -
Method Summary
Methods inherited from class org.zkoss.zk.au.AuResponse
equals, getCommand, getDepends, getEncodedData, getOverrideKey, getRawData, hashCode, toString
-
Constructor Details
-
AuLoadScript
Loads a JavaScript file to client and execute it.- Parameters:
url- the URL of the JavasScript file, it will be encoded withEncodes.encodeURL(jakarta.servlet.ServletContext, jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, String).callback- a callback script to execute when the JavaScript file has loaded.once- true means the url will be cached and executed only once.
-