From dd028bec3822d1d9c28c35d599d687e038c7705f Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 4 Jan 2007 11:23:26 +0000 Subject: Add chat demo and tutorial. --- framework/Web/UI/ActiveControls/TCallbackClientScript.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'framework/Web/UI/ActiveControls/TCallbackClientScript.php') diff --git a/framework/Web/UI/ActiveControls/TCallbackClientScript.php b/framework/Web/UI/ActiveControls/TCallbackClientScript.php index 19e395df..b10552e8 100644 --- a/framework/Web/UI/ActiveControls/TCallbackClientScript.php +++ b/framework/Web/UI/ActiveControls/TCallbackClientScript.php @@ -274,6 +274,15 @@ class TCallbackClientScript extends TApplicationComponent $this->callClientFunction('Element.scrollTo', $element); } + /** + * Focus on a particular element. + * @param TControl control element or element id. + */ + public function focus($element) + { + $this->callClientFunction('Prado.Element.focus', $element); + } + /** * Sets the style of element. The style must be a key-value array where the * key is the style property and the value is the style value. -- cgit v1.2.3