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