calling javascript from the template
Robert Franks <[email protected]> Wed, 25 Apr 2007 12:40:08 +0100
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/