Class Index | File Index

Classes


Namespace jsf.ajax

jsf.ajax
Defined in: jsf.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
jsf.ajax.addOnError(errorListener)
Adds an error handler to our global error queue.
<static>  
jsf.ajax.addOnEvent(eventListener)
Adds a global event listener to the ajax event queue.
<static>  
jsf.ajax.request(element:, event:, options)
this function has to send the ajax requests following request conditions must be met:
  • the request must be sent asynchronously!
  • the request must be a POST!!! request
  • the request url must be the form action attribute
  • all requests must be queued with a client side request queue to ensure the request ordering!
<static>  
jsf.ajax.response(request, context)
processes the ajax response if the ajax request completes successfully
Namespace Detail
jsf.ajax
Method Detail
<static> jsf.ajax.addOnError(errorListener)
Adds an error handler to our global error queue. the error handler must be of the format function errorListener(<errorData>) with errorData being of following format:
Parameters:
{function} errorListener
error handler must be of the format function errorListener(<errorData>)

<static> jsf.ajax.addOnEvent(eventListener)
Adds a global event listener to the ajax event queue. The event listener must be a function of following format: function eventListener(<eventData>)
Parameters:
{function} eventListener
event must be of the format function eventListener(<eventData>)

<static> jsf.ajax.request(element:, event:, options)
this function has to send the ajax requests following request conditions must be met:
Parameters:
{String|Node} element:
any dom element no matter being it html or jsf, from which the event is emitted
{EVENT} event:
any javascript event supported by that object
{Map} options
: map of options being pushed into the ajax cycle

<static> jsf.ajax.response(request, context)
processes the ajax response if the ajax request completes successfully
Parameters:
request
the ajax request!
context
the ajax context!

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jul 28 2011 17:33:58 GMT+0200 (MESZ)