[ZPT] ZPT and Javascript
Tino Wildenhain
tino@wildenhain.de
Sat, 16 Nov 2002 15:16:10 +0100
Hi Pierre,
--On Freitag, 15. November 2002 18:56 +0100 Pierre Boizot
<pboizot@pb2i.com> wrote:
> Hi ,
>
> Thiscode 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.
Or in a file object.
And may be its better to avoid generating HTML this way if possible.
Regards
Tino
> 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>
> --
> Pierre Boizot
> PB2i.com
> 283, CHEMIN DU CARRAIRE
> LE BOUTEILLER
> 84660 MAUBEC
>
>
>
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt