[htmltmpl] calling javascript from the template
Brought to you by:
samtregar
From: Robert F. <so...@to...> - 2007-04-25 11:40:20
|
Using HTML::Template Have placed the Google Analytics code: <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-xxxxxx-1"; urchintracker(); </script> at the end of my template page just before closing body tag.. It seems the page does not invoke the call to 'urchin.js' as am getting javascript error: 'urchintracker() not defined' Is this because the cgi script is loading the page and is therefore having trouble invoking the javascript? -- Robert Franks |