API DOCS

DOCS & TUTORIALS » API DOCS » xajax_core » xajaxResponse.inc.php » xajaxResponse » addHandler

Function: addHandler


function addHandler($sTarget,$sEvent,$sHandler)

Parameters:

sTarget
(string) The id of the element.

sEvent
(string) The name of the event to add the handler to.

sHandler
(string) The javascript function to call when the event is fired. You can add more than one event handler to an element's event using this method.

Returns:

object - The object.
 



XAJAX on SourceForge.net
Support this project Valid XHTML 1.0 Transitional