JavaScript Bubbling Library - YUI Extension

dispatcher  2.2

Bubbling > dispatcher > YAHOO.plugin.Dispatcher
Search:
 
Filters

static Class YAHOO.plugin.Dispatcher

The Dispatcher Plugin

Methods

addUnit

addUnit ( unit , layout , config )
delegate the addUnit layout method...
Parameters:
unit <object> reference to the unit...
layout <object> reference to the layout...
config <object> Literal object with the user configuration vars

applyCSS

applyCSS ( cssCode , params , config )
Injecting CSS in the current page
Parameters:
cssCode <string> CSS content that will be injected
params <object> Literal object with the tag configuration params
config <object> Literal object with the dispatcher configuration values

augmentURI

augmentURI ( url , m )
augment an url with more parameters, overriding...
Parameters:
url <string> url that should be expanded with new arguments
m <string|array> MoreParams: string: param1=value1¶m2=value2 or associative array

cssLoader

cssLoader ( uri , config )
Fetching a remote CSS file that will be processed thru this object...
Parameters:
uri <object> Remote CSS file that will be loaded using AJAX
config <object> Literal object with the user configuration vars

delegate

delegate ( tab , tabview , config )
delegate the set content method...
Parameters:
tab <object> reference to the tab...
tabview <object> reference to the tabview...
config <object> Literal object with the user configuration vars

destroy

destroy ( handle )
Destroy an area...
Parameters:
handle <object> Process handle

fetch

fetch ( The , uri , config )
Fetching a remote file that will be processed thru this object...
Parameters:
The <Node} el {HTMLElement | String | Object> html element that represents the dynamic area.
uri <object> Remote file that will be loaded using AJAX
config <object> Literal object with the user configuration vars

firewall

firewall ( uri , config , monolitic )
Analyze the uri before start the downloading process (if the uri isn't in over the current domain name, the dispatcher can use a proxy)
Parameters:
uri <String> Remote URL
config <Object> Used to pass the user configuration thru the chain of execution
monolitic <Boolean> Do not use proxy

init

init ( c )
Initialization routine (optional)
Parameters:
c <object> default configuration object

isAlive

isAlive ( hd )
Verify if the a process is still alive
Parameters:
hd <object> Process handle

jsLoader

jsLoader ( uri , config )
Fetching a remote javascript file that will be processed thru this object...
Parameters:
uri <object> Remote js file that will be loaded using AJAX
config <object> Literal object with the user configuration vars

kill

kill ( handle )
Kill a process...
Parameters:
handle <object> Process handle

obj2query

obj2query ( params )
converting a literal object into a query string
Parameters:
params <object> Literal object to create the url querystring

onDestroy

onDestroy ( hd , bh , scope )
subscribe a new destroyer for a certain area...
Parameters:
hd <string> Unique id for the area to be monitored
bh <function> Listener
scope <object> Execution scope

process

process ( The , content , config , flag )
Starting the process for a content...
Parameters:
The <Node} el {HTMLElement | String | Object> html element that represents the dynamic area.
content <string> Content to be processed
config <object> Literal object with the user configuration vars
flag <boolean> If the call was internal or external

toString

String toString ( )
Returns a string representing the dispatcher plugin.
Returns: String


Copyright © 2009 Bubbling Library. All rights reserved.