Namespace object holding functions and members used to resolve and fetch web resources. Fetching is done via XMLHttpRequests.
Platform Support
Jaxer Server Framework | Jaxer Client Framework | 1.0 | no |
---|
Functions
![]() |
|||||||||||||||||
Method | Action | Jaxer Server Framework | Jaxer Client Framework | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
static getDefaultReferenceUrl() : String
Returns the URL to be used as a reference for resolving relative URLs if no other reference is given
(Advanced) |
Show Details | 1.0 | no | ||||||||||||||
Returns
|
|||||||||||||||||
static get(String url, Jaxer.XHR.SendOptions options) : Object
Fetch a document from a URL by resolving it to a local file (if it starts with file://) or by a GET command.
|
Show Details | 1.0 | no | ||||||||||||||
Parameters
Returns
|
|||||||||||||||||
static open(String url, [String data,] Jaxer.Sandbox.OpenOptions options) : Jaxer.Sandbox
GET or POST data to a URL, loading the result into the window of a new Jaxer.Sandbox object.
|
Show Details | 1.0 | no | ||||||||||||||
Parameters
Returns
|
|||||||||||||||||
static post(String url, String data, Jaxer.XHR.SendOptions options) : Object
POST data to a URL and return the response web page.
|
Show Details | 1.0 | no | ||||||||||||||
Parameters
Returns
|
|||||||||||||||||
static resolve(String url, [String referenceUrl]) : String
Resolves a URL to an absolute URL (one starting with protocol://domain...) To resolve a relative URL (with or without a leading
/), use a current document or callback for reference. Uses the base href of the current document, if specified. If Jaxer.Config.REWRITE_TO_FILE_URL_REGEX
exists and matches the url, the url is resolved as a file-type URL: it will use the given referenceUrl if it's already a file-based
one, otherwise it will use the Jaxer.request.documentRoot for an absolute url or Jaxer.request.currentFolder for a relative
url. If Jaxer.Config.REWRITE_RELATIVE_URL exists (and we're not dealing in file-based URLs), its value is used to rewrite
the relative url -- replacing Jaxer.Config.REWRITE_RELATIVE_URL_REGEX pattern, if it exists, else replacing http [ s ] ://
followed by anything but a slash.
|
Show Details | 1.0 | no | ||||||||||||||
Parameters
Returns
|
|||||||||||||||||
static send(String url, [String method,] [String data,] [Jaxer.XHR.SendOptions options]) : Object
A generalized method to access a web URL via the built-in XMLHttpRequest object.
|
Show Details | 1.0 | no | ||||||||||||||
Parameters
Returns
|