ZPT and Javascript
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Medium
|
Unassigned |
Bug Description
Hi ,
this code that is well formed and that is a valid xhtml code can not be use in Template Page.
The compilation error has return.
workaround
Put javascript in dtml document
best regards.
Pierre
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
<html xmlns="http://
<head>
</head>
<body>
<script type="JavaScript">
<![CDATA[
function popup(f, w, h,title ,url) {
var a;
a=window.
+',top='+ ((screen.height - h) /2) +' ,width=' + w + ',height=' + h) ;
a.document.open();
a.document.
leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close
()">');
a.document.
width='+w+' height=
a.document.
a.document.
a.focus();
}
]]>
</script>
</body>
</html>
I cannot reproduce the error. Works for me with 2.6-HEAD.