summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorxue <>2005-12-07 22:54:44 +0000
committerxue <>2005-12-07 22:54:44 +0000
commite4f6febcfb6f1a299bf377befeebe2170ca95310 (patch)
tree4cc29c0535d02f2ed0bddc982fd50c3bf0f9970c /framework/Web
parent8b4b6da1a5762747c219cfcf4947b06cbe764103 (diff)
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/UI/TClientScriptManager.php12
-rw-r--r--framework/Web/UI/WebControls/TCheckBox.php2
2 files changed, 7 insertions, 7 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php
index c42e664d..ee7ca88f 100644
--- a/framework/Web/UI/TClientScriptManager.php
+++ b/framework/Web/UI/TClientScriptManager.php
@@ -277,10 +277,10 @@ class TClientScriptManager extends TComponent
{
if(count($this->_arrayDeclares))
{
- $str="<script type=\"text/javascript\"><!--\n";
+ $str="<script type=\"text/javascript\">\n//<![CDATA[\n";
foreach($this->_arrayDeclares as $name=>$array)
$str.="var $name=new Array(".implode(',',$array).");\n";
- $str.="\n// --></script>\n";
+ $str.="\n//]]>\n</script>\n";
$writer->write($str);
}
}
@@ -299,13 +299,13 @@ class TClientScriptManager extends TComponent
public function renderBeginScripts($writer)
{
if(count($this->_beginScripts))
- $writer->write("<script type=\"text/javascript\"><!--\n".implode("\n",$this->_beginScripts)."\n// --></script>\n");
+ $writer->write("<script type=\"text/javascript\">\n//<![CDATA[\n".implode("\n",$this->_beginScripts)."\n//]]>\n</script>\n");
}
public function renderEndScripts($writer)
{
if(count($this->_endScripts))
- $writer->write("<script type=\"text/javascript\"><!--\n".implode("\n",$this->_endScripts)."\n// --></script>\n");
+ $writer->write("<script type=\"text/javascript\">\n//<![CDATA[\n".implode("\n",$this->_endScripts)."\n//]]>\n</script>\n");
}
public function renderHiddenFields($writer)
@@ -324,7 +324,7 @@ class TClientScriptManager extends TComponent
{
if(count($this->_expandoAttributes))
{
- $str="<script type=\"text/javascript\"><!--\n";
+ $str="<script type=\"text/javascript\">\n//<![CDATA[\n";
foreach($this->_expandoAttributes as $controlID=>$attrs)
{
$str.="var $controlID = document.all ? document.all[\"$controlID\"] : document.getElementById(\"$controlID\");\n";
@@ -336,7 +336,7 @@ class TClientScriptManager extends TComponent
$str.="{$key}[\"$name\"]=\"$value\";\n";
}
}
- $str.="\n// --></script>\n";
+ $str.="\n//]]>\n</script>\n";
$writer->write($str);
}
}
diff --git a/framework/Web/UI/WebControls/TCheckBox.php b/framework/Web/UI/WebControls/TCheckBox.php
index 6b3a2ae4..c5bd88d7 100644
--- a/framework/Web/UI/WebControls/TCheckBox.php
+++ b/framework/Web/UI/WebControls/TCheckBox.php
@@ -90,7 +90,7 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl
if($this->getCausesValidation())
$page->validate($this->getValidationGroup());
}
- $this->onCheckedChanged(new TEventParameter);
+ $this->onCheckedChanged(null);
}
/**