[ZCM] [ZC] 676/ 3 Reject "ZPT and Javascript"
Collector: Zope Bugs, Features, and Patches ...
zope-coders@zope.org
Mon, 16 Dec 2002 12:46:24 -0500
Issue #676 Update (Reject) "ZPT and Javascript"
Status Rejected, Zope/bug medium
To followup, visit:
http://collector.zope.org/Zope/676
==============================================================
= Reject - Entry #3 by mcdonc on Dec 16, 2002 12:46 pm
Status: Pending => Rejected
Rejecting on behalf of Maik.
________________________________________
= Comment - Entry #2 by mjablonski on Dec 16, 2002 12:37 pm
I cannot reproduce the error. Works for me with 2.6-HEAD.
________________________________________
= Request - Entry #1 by Anonymous User on Nov 15, 2002 9:12 am
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://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title>Enter the title of your XHTML document here</title>
</head>
<body>
<script type="JavaScript">
<![CDATA[
function popup(f, w, h,title ,url) {
var a;
a=window.open("","",'noresizable,scrollbars=no,left='+ ((screen.width - w) /2)
+',top='+ ((screen.height - h) /2) +' ,width=' + w + ',height=' + h) ;
a.document.open();
a.document.write('<html><title>'+title+'</title><body background=img/load.gif
leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close
()">');
a.document.write('<a HREF="javascript:a.close();"><img border=0 src='+url+'
width='+w+' height='+h+'></a>');
a.document.write('</body></html>');
a.document.close();
a.focus();
}
]]>
</script>
<p>Enter the body text of your XHTML document here</p>
</body>
</html>
==============================================================