vegUI version 2.1.1 AJAX Bridge |
vegui. bridge. class.jsSummary
Object PropertiesVegUIBridge
Summary
Object Properties
execute
This function will be called on successful response to request if the VegUIRequest’s pFunc property is not set. Be aware that you may overwrite the execute methid with your own by simply redefining it This is useful if you decide to create a network protocol. All server responses will be sent to this function and can be processed accordingly. dummy function Parameters
Returns
Examplesnew_request
Spawns a new XMLHttpRequest object and returns it in the form of a VegUIRequest object private function Parameters
poll_timeouts
Polls the Request array for any timed out requests and handles them arcordingly. May call onmaxtimeouts and ontimeout private function send
send a request to the server Parameters
See also<process> Example
|
constructor
function VegUIRequest( req, id, toElement )
private function
this.cleanup = function( vreq )
This function will be called on successful response to request if the VegUIRequest’s pFunc property is not set.
this.execute = function( vreq )
Spawns a new XMLHttpRequest object and returns it in the form of a VegUIRequest object
this.new_request = function( toElement )
Polls the Request array for any timed out requests and handles them arcordingly.
this.poll_timeouts = function()
When a request gets a response from the server then it will go through this function where it will determine if it was a successful request or not
this.process_request = function( vreq )
send a request to the server
this.send = function( url, para, method, pFunc, sync )
private function
this.valid_id = function()