class innerbbop-rest-manager~ manager_jquery
Source: manager.
new manager_jquery(response_handler)
Contructor for the jQuery REST manager
jQuery BBOP manager for dealing with actual ajax calls. Remember, this is actually a "subclass" of {bbop-rest-manager}.
Use
See also:
Parameter
Name | Type | Optional | Description |
---|---|---|---|
response_handler |
Object |
|
- Returns
-
manager_node_sync
Methods
fetch([url][, payload], method) → null
It should combine the URL, payload, and method in the ways appropriate to the subclass engine.
Runs callbacks, returns null.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
url |
String |
Yes |
update resource target with string |
payload |
Object |
Yes |
object to represent arguments |
method |
String |
|
GET, POST, etc. |
- Returns
-
null
returns null
headers([header_set]) → Object
Try and control the server with the headers.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
header_set |
Object |
Yes |
hash of headers; jQuery internal default |
- Returns
-
Object
hash of headers
jsonp_callback([cstring]) → String
Get/set the jQuery jsonp callback string to something other than "json.wrf".
Parameter
Name | Type | Optional | Description |
---|---|---|---|
cstring |
String |
Yes |
setter string |
- Returns
-
String
string
start([url][, payload], method) → Object
See the documentation in
Parameters
Name | Type | Optional | Description |
---|---|---|---|
url |
String |
Yes |
update resource target with string |
payload |
Object |
Yes |
object to represent arguments |
method |
String |
|
GET, POST, etc. |
- Returns
-
Object
promise for the processed response subclass
use_jsonp([use_p]) → Boolean
Set the jQuery engine to use JSONP handling instead of the default JSON. If set, the callback function to use will be given my the argument "json.wrf" (like Solr), so consider that special.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
use_p |
Boolean |
Yes |
external setter for |
- Returns
-
Boolean
boolean