Methods
load(url, params, id, callback)
Load a url into a page. Taken from jquery's load function https://github.com/jquery/jquery/blob/f18ca7bfe0f5e3184bf1ed55daf1668702c5577a/src/ajax/load.js
Parameters:
Name | Type | Description |
---|---|---|
url |
String
|
The url to load |
params |
Object
|
Object of key/value pairs for parameters |
id |
String
|
The id of the element to attach the response to |
callback |
function
|
Function to call after the load completes, will be passed an error if one occurred |
Type Definitions
Callback(error, result)
Parameters:
Name | Type | Description |
---|---|---|
error |
String
|
null
|
String on error, or null if no error |
result |
Object
|
null
|
Object on success, or null if error |