summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TCallbackClientScript.php
diff options
context:
space:
mode:
authorwei <>2006-09-01 01:58:35 +0000
committerwei <>2006-09-01 01:58:35 +0000
commit452fdf99810fae93d3e8735cc9be5e9cbd4b0622 (patch)
tree47c243a867335bcbe348f2ea029cff257db1db81 /framework/Web/UI/ActiveControls/TCallbackClientScript.php
parent769856093ded9e4aae341a7d79b7f1441e7d5478 (diff)
resolve adodb defined clashes, add TCallbackClientScript::fireEvent()
Diffstat (limited to 'framework/Web/UI/ActiveControls/TCallbackClientScript.php')
-rw-r--r--framework/Web/UI/ActiveControls/TCallbackClientScript.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/framework/Web/UI/ActiveControls/TCallbackClientScript.php b/framework/Web/UI/ActiveControls/TCallbackClientScript.php
index bdbe6b1c..498aa681 100644
--- a/framework/Web/UI/ActiveControls/TCallbackClientScript.php
+++ b/framework/Web/UI/ActiveControls/TCallbackClientScript.php
@@ -146,6 +146,17 @@ class TCallbackClientScript extends TApplicationComponent
}
/**
+ * Raise the client side event (given by $eventName) on a particular element.
+ * @param TControl|string control element or element id
+ * @param string Event name, e.g. "click"
+ */
+ public function raiseClientEvent($control, $eventName)
+ {
+ $this->callClientFunction('Event.fireEvent',
+ array($control, strtolower($eventName)));
+ }
+
+ /**
* Sets the attribute of a particular control.
* @param TControl|string control element or element id
* @param string attribute name