Re: Best way to include a .js file ?
| From: | Luc Saint-Elie | Date: | Thu, 31 Jan 2002 17:13:37 +0000 |
| Subject: | Re: Best way to include a .js file ? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2631@lists.php.net to get a copy of this message | ||
Monte,
This is exact, but I took the habit to put always {literal} around javascript statements to avoid to forget them when needed...
Luc
At 08:38 31/01/02 -0600, Monte Ohrt wrote:
In this example, the {literal} blocks are not needed since there are no curly braces in the javascript. Put your .js file under the web server document root, and give a path relative to document root, just like any .html file. Luc Saint-Elie wrote: Hello Julien {literal} <script type="text/javascript" src="mywonderfulscriptthatkicksevryass.js"></script> {/literal} Luc