The Class describing a Sandbox: a container that can load a server-side window with its own DOM, and executes JavaScript server-side,
but is more protected than the regular Jaxer server-side window.
Platform Support
| Jaxer Server Framework | Jaxer Client Framework | 1.0 | no |
|---|
Classes
|
Jaxer.Sandbox.OpenOptions |
Constructors
| Constructor | Action | Jaxer Server Framework | Jaxer Client Framework | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Jaxer.Sandbox Constructor([String url,] [String data,] [Object options]) : Jaxer.Sandbox
The constructor of a Sandbox: a container that can load a server-side window with its own DOM, and executes JavaScript server-side,
but is more protected than the regular Jaxer server-side window.
|
Show Details | 1.0 | no | |||||||||||
Jaxer.Sandbox([String url,] [String data,] [Object options]) : Jaxer.SandboxThe constructor of a Sandbox: a container that can load a server-side window with its own DOM, and executes JavaScript server-side, but is more protected than the regular Jaxer server-side window. Parameters
Returns
|
||||||||||||||
Properties
| Property | Action | Jaxer Server Framework | Jaxer Client Framework |
|---|---|---|---|
|
Returns the DOM document that's been loaded into this sandbox's window, or null if a url has not been loaded yet.
|
No Details | 1.0 | no |
|
|
|||
|
Returns the HTTP method (action) of the request to fetch this Sandbox's URL, e.g. 'GET' ir 'POST'
|
No Details | 1.0 | no |
|
|
|||
|
Returns the loading state of the window in the Sandbox. The possible values are:
|
No Details | 1.0 | no |
|
|
|||
|
Returns the HTTP headers of the request to fetch this Sandbox's URL as properties on the returned object
|
No Details | 1.0 | no |
|
|
|||
|
Returns the HTTP status of the response to the request to fetch this Sandbox's URL, e.g. 200 (i.e. OK)
|
No Details | 1.0 | no |
|
|
|||
|
Returns the HTTP status text of the response to the request to fetch this Sandbox's URL, e.g. 'OK' (for a status of 200)
|
No Details | 1.0 | no |
|
|
|||
|
Returns the window that's been loaded into this sandbox, or null if a url has not been loaded yet.
|
No Details | 1.0 | no |
|
|
|||
|
The default OpenOptions which new calls to new Jaxer.Sandbox() or Jaxer.Web.load() will use, unless overridden by the options
argument.
|
No Details | 1.0 | no |
|
|
|||
Functions
| Method | Action | Jaxer Server Framework | Jaxer Client Framework | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Closes the Sandbox's window, which terminates any async loading and removes the window and its document. This call is usually
optional, since the window and its document are automatically removed at the end of the Jaxer request, and they are safely
reused if you open (load) the same Sandbox more than once. It's therefore mostly useful for stopping open async requests.
|
No Details | 1.0 | no | |||||||||
|
|
||||||||||||
|
open(String url, [String data,] [Object options]) :
void
Opens the sandbox's window and document by creating them (if needed) and then loading a url into them, via a GET or POST request.
You usually do not need to explicitly close() this, except to cancel async requests.
|
Show Details | 1.0 | no | |||||||||
|
Parameters
|
||||||||||||
|
Returns the HTTP headers of the response to the request to fetch this Sandbox's URL as properties on the returned object
|
No Details | 1.0 | no | |||||||||
|
|
||||||||||||
|
setContents([String contents,] [Object options]) :
void
Loads the sandbox's window and document from a string by creating them (if needed) and then loading the string into them.
You do not need to explicitly close() this.
|
Show Details | 1.0 | no | |||||||||
|
Parameters
|
||||||||||||
|
toHTML([Node node]) : String
Returns the HTML of the given node in the Sandbox's DOM, or of the entire Sandbox's document DOM. If the Sandbox has not yet
been loaded from a url, returns an empty string ('').
|
Show Details | 1.0 | no | |||||||||
|
Parameters
Returns
|
||||||||||||
|
waitForCompletion([Number maxMillis]) : Boolean
Waits for the Sandbox's window to complete loading, allowing asynchronous processing of events to continue, up to a maximum
number of milliseconds (if specified).
|
Show Details | 1.0 | no | |||||||||
|
Parameters
Returns
|
||||||||||||
