[ZPT] ZPT and Javascript

Pierre Boizot pboizot@pb2i.com
Fri, 15 Nov 2002 18:56:29 +0100


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. 
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/