jquery.js | |
bbop. | jQuery BBOP manager for dealing with actual ajax calls. |
Functions | |
jquery | Contructor for the GOlr query manager |
safety | Getter/setter for the trigger safety. |
update | See the documentation in <golr_manager.js> on update to get more of the story. |
run_batch | A distant cousin of update. |
fetch | A cousin of update, but is made to avoid all of the usual callback functions (except error) and just run the single function from the argument. |
bbop. | |
Functions | |
faux_ajax | Contructor for a fake and inactive Ajax. |
ajax | Fake call to jQuery’s ajax. |
parseJSON | Fake call to jQuery’s parseJSON. |
jQuery BBOP manager for dealing with actual ajax calls. Remember, this is actually a “subclass” of bbop.golr.manager.
This should still be able to limp along (no ajax and no error parsing) even outside of a jQuery environment.
Functions | |
jquery | Contructor for the GOlr query manager |
safety | Getter/setter for the trigger safety. |
update | See the documentation in <golr_manager.js> on update to get more of the story. |
run_batch | A distant cousin of update. |
fetch | A cousin of update, but is made to avoid all of the usual callback functions (except error) and just run the single function from the argument. |
bbop.golr.manager.jquery = function ( golr_loc, golr_conf_obj )
Contructor for the GOlr query manager
golr_loc | string url to GOlr server; |
golr_conf_obj | a bbop.golr.conf object |
golr manager object
bbop.golr.manager.jquery.prototype.update = function( callback_type, rows, start )
See the documentation in <golr_manager.js> on update to get more of the story. This override function adds functionality for jQuery.
You can prevent the triggering of ajax with the safety method.
callback_type | callback type string |
rows | [serially optional] integer; the number of rows to return |
start | [serially optional] integer; the offset of the returned rows |
the query url (with the jQuery callback specific parameters)
bbop.golr.manager.jquery.prototype.run_batch = function( accumulator_func, final_func )
A distant cousin of update. Designed to “serially” get data from a server for certain types of data crunching routines.
Why would you want this? Lets say there are ten distinct things that you want from the server. Coordinating and collating them all without annoying the server or going insane is hard in an asynchronous environment.
accumulator_func | the function that collects |
final_func | the function to run on completion |
the number of batch items run
bbop.golr.manager.jquery.prototype.fetch = function( run_func )
A cousin of update, but is made to avoid all of the usual callback functions (except error) and just run the single function from the argument.
Why would you want this? Sometimes you need just a little data without updating the whole interface or whatever.
run_func | the function to run on completion |
n/a
Contructor for the GOlr query manager
bbop.golr.manager.jquery = function ( golr_loc, golr_conf_obj )
Getter/setter for the trigger safety.
this.safety = function( safety_on_p )
See the documentation in golr_manager.js on update to get more of the story.
bbop.golr.manager.jquery.prototype.update = function( callback_type, rows, start )
A distant cousin of update.
bbop.golr.manager.jquery.prototype.run_batch = function( accumulator_func, final_func )
A cousin of update, but is made to avoid all of the usual callback functions (except error) and just run the single function from the argument.
bbop.golr.manager.jquery.prototype.fetch = function( run_func )
Contructor for a fake and inactive Ajax.
bbop.golr.faux_ajax = function ()
Fake call to jQuery’s ajax.
this.ajax = function( args )
Fake call to jQuery’s parseJSON.
this.parseJSON = function( args )
Get the current invariant state of the manager returned as a encoded URL string (using encodeURI()).
this.get_query_url = function()