Class Index | File Index

Classes


Class Exanpe.AjaxLoader

Represent an AjaxLoader component. Can be accessed through its id
Defined in: exanpe-t5-lib.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Exanpe.AjaxLoader(id, message, image, width, url, autoLoad, showPanel, highlight)
Constructor
Field Summary
Field Attributes Field Name and Description
 
Load content on DOM ready or not
 
Highlight the result, after loading, or not.
 
id
The id of the instance
 
Image displayed during loading
 
Message displayed during loading
 
Current request
 
Show panel during loading or not
 
url
Used to execute AJAX request for loading content
 
The width of the Panel
 
Panel shown on ajax request
Method Summary
Method Attributes Method Name and Description
 
Called on Ajax update failure.
 
Called on Ajax update success.
 
getResponseEl(itemId)
Get the response element from the item id
 
load()
Execute the Ajax query responsible for loading the body of the component.
Class Detail
Exanpe.AjaxLoader(id, message, image, width, url, autoLoad, showPanel, highlight)
Constructor
Parameters:
{String} id
the id of the AjaxLoader component element
{String} message
the message displayed to the user during asynchronous loading
{String} image
the image url displayed during loading
{String} width
the width, in pixel, of the panel used to display loading informations
{String} url
the url used to execute AJAX request.
{Boolean} autoLoad
to Load the URL or not on dom ready.
{Boolean} showPanel
to show the panel on request, or not.
{Boolean} highlight
to highlight result, after loading, or not.
Field Detail
autoLoad
Load content on DOM ready or not

highlight
Highlight the result, after loading, or not.

id
The id of the instance

image
Image displayed during loading

message
Message displayed during loading

request
Current request

showPanel
Show panel during loading or not

url
Used to execute AJAX request for loading content

width
The width of the Panel

yuiPanel
Panel shown on ajax request
Method Detail
afterUpdateFailure()
Called on Ajax update failure. Does nothing by default, override to define your own action.

afterUpdateSuccess()
Called on Ajax update success. Does nothing by default, override to define your own action.

{HTMLElement} getResponseEl(itemId)
Get the response element from the item id
Parameters:
{String} itemId
the item id
Returns:
{HTMLElement} the DOM element corresponding to the response

load()
Execute the Ajax query responsible for loading the body of the component. Can be executed on demand.

Documentation generated by JsDoc Toolkit 2.0.0 on Mon Jan 09 2012 21:35:38 GMT+0100 (CET)