jquery.js

Summary
jquery.js
bbop.rest.manager.jqueryTODO!
Functions
jqueryContructor for the jQuery REST manager
use_jsonpSet the jQuery engine to use JSONP handling instead of the default JSON.
jsonp_callbackGet/set the jQuery jsonp callback string to something other than “json.wrf”.
headersTry and control the server with the headers.
updateSee the documentation in manager.js on update to get more of the story.
bbop.rest.manager.jquery_faux_ajax
Functions
faux_ajaxContructor for a fake and inactive Ajax.
ajaxFake call to jQuery’s ajax.

bbop.rest.manager.jquery

TODO!

jQuery BBOP manager for dealing with actual ajax calls.  Remember, this is actually a “subclass” of bbop.rest.manager.

This should still be able to limp along (no ajax and no error parsing) even outside of a jQuery environment.

Use use_jsonp is you are working against a JSONP service instead of a non-cross-site JSON service.

Summary
Functions
jqueryContructor for the jQuery REST manager
use_jsonpSet the jQuery engine to use JSONP handling instead of the default JSON.
jsonp_callbackGet/set the jQuery jsonp callback string to something other than “json.wrf”.
headersTry and control the server with the headers.
updateSee the documentation in manager.js on update to get more of the story.

Functions

jquery

bbop.rest.manager.jquery = function(response_handler)

Contructor for the jQuery REST manager

Arguments

response_handler

Returns

REST manager object

See also

bbop.rest.manager

use_jsonp

bbop.rest.manager.jquery.prototype.use_jsonp = function(use_p)

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.

Parameters

use_p[optional] external setter for

Returns

boolean

jsonp_callback

bbop.rest.manager.jquery.prototype.jsonp_callback = function(cstring)

Get/set the jQuery jsonp callback string to something other than “json.wrf”.

Parameters

cstring[optional] setter string

Returns

string

headers

bbop.rest.manager.jquery.prototype.headers = function(header_set)

Try and control the server with the headers.

Parameters

header_set[optional] hash of headers; jQuery internal default

Returns

hash of headers

update

bbop.rest.manager.jquery.prototype.update = function(callback_type)

See the documentation in manager.js on update to get more of the story.  This override function adds functionality for jQuery.

Parameters

callback_typecallback type string (so far unused)

Returns

the query url (with the jQuery callback specific parameters)

bbop.rest.manager.jquery_faux_ajax

Summary
Functions
faux_ajaxContructor for a fake and inactive Ajax.
ajaxFake call to jQuery’s ajax.

Functions

faux_ajax

bbop.rest.manager.jquery_faux_ajax = function ()

Contructor for a fake and inactive Ajax.  Used by bbop.rest.manager.jquery in (testing) environments where jQuery is not available.

Returns

faux_ajax object

ajax

this.ajax = function(args)

Fake call to jQuery’s ajax.

Parameters

argswhatever

Returns

null

bbop.rest.manager.jquery = function(response_handler)
Contructor for the jQuery REST manager
bbop.rest.manager.jquery.prototype.use_jsonp = function(use_p)
Set the jQuery engine to use JSONP handling instead of the default JSON.
bbop.rest.manager.jquery.prototype.jsonp_callback = function(cstring)
Get/set the jQuery jsonp callback string to something other than “json.wrf”.
bbop.rest.manager.jquery.prototype.headers = function(header_set)
Try and control the server with the headers.
bbop.rest.manager.jquery.prototype.update = function(callback_type)
See the documentation in manager.js on update to get more of the story.
bbop.rest.manager.jquery_faux_ajax = function ()
Contructor for a fake and inactive Ajax.
this.ajax = function(args)
Fake call to jQuery’s ajax.
Generic BBOP manager for dealing with basic generic REST calls.
Close