Skip to main content

tag: JavaScript

Categories
Code SamplesJavaScriptWebdesign

Using Google Analytics Or Other Javascript With Smarty Template Engine

On a website I was working on recently I added the Google Analytics tracking code to the footer of a Smarty template, like this: footer.tpl: However, since the javascript used by Google Analytics includes { and } tags, also used by the Smarty template engine, it tries to interpret this code and depending on your […]


I recently had a problem where I was opening a browser window from an e-mail client. After taking a survey, I wanted a button to close this same window. In IE, it was fine to simply use window.close(); to close the window. However, Firefox, the evil genius that it is, will not let you do […]