summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/js/prado.js
diff options
context:
space:
mode:
authorwei <>2006-05-07 09:47:15 +0000
committerwei <>2006-05-07 09:47:15 +0000
commit12c16fb3c7314b51d74dcaffdca4d311c6fad8c0 (patch)
treeef82b73e3a2fa5f8f313a43ce3dcaaf39f569d8f /framework/Web/Javascripts/js/prado.js
parenta7f6c6640ac9295eec3ae2edbb2250179eb85e33 (diff)
Adding TAutoComplete
Diffstat (limited to 'framework/Web/Javascripts/js/prado.js')
-rw-r--r--framework/Web/Javascripts/js/prado.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/framework/Web/Javascripts/js/prado.js b/framework/Web/Javascripts/js/prado.js
index 9442ed26..c09cf64c 100644
--- a/framework/Web/Javascripts/js/prado.js
+++ b/framework/Web/Javascripts/js/prado.js
@@ -265,9 +265,12 @@ el.options[el.options.length]=new Option(options[i][0],options[i][1]);}},focus:f
{var obj=$(element);if(typeof(obj)!="undefined"&&typeof(obj.focus)!="undefined")
setTimeout(function(){obj.focus();},100);return false;},replace:function(element,method,content,boundary,transport)
{if(boundary)
-{var f=RegExp('(<!--'+boundary+'-->)([\\s\\S\\w\\W]*)(<!--//'+boundary+'-->)',"m");var result=transport.responseText.match(f);if(result&&result.length>=2)
-content=result[2];}
-method.toFunction().apply(this,[element,content]);}}
+{result=Prado.Element.extractContent(transport.responseText,boundary);if(result!=null)
+content=result;}
+method.toFunction().apply(this,[element,content]);},extractContent:function(text,boundary)
+{f=RegExp('(<!--'+boundary+'-->)([\\s\\S\\w\\W]*)(<!--//'+boundary+'-->)',"m");result=text.match(f);if(result&&result.length>=2)
+return result[2];else
+return null;}}
Prado.Element.Selection={inputValue:function(el,value)
{switch(el.type.toLowerCase())
{case'checkbox':case'radio':return el.checked=value;}},selectValue:function(el,value)