Re: Best way to include a .js file ?

From: Date: Thu, 31 Jan 2002 17:12:11 +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-2630@lists.php.net to get a copy of this message
Thank you very much for the answers. I am looking to integrate a form made with the form validation class by M. Lemos. Do you know of a good tutorial or of a printable version of the html version of the manual ? le jeu 31-01-2002 à 15:38, Monte Ohrt a écrit : 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} > > <DEFANGED_script type="text/javascript" > src="mywonderfulscriptthatkicksevryass.js"></script> > > {/literal} > > Luc > > At 11:01 31/01/02 +0100, you wrote: > >Hi, > >I am pretty new to templates systems in general and Smarty in particular. > >I have 2 questions you will certainly find of no particular interest : > >1) Do you know a good tutorial on Smarty ? > >2) I write in my .tpl file the following line > ><DEFANGED_script type='text/javascript' > >src='file.js'></script> > >It does not work for me wherever I put the file.js > >Where must I put it ? Is there a better way to include css and javascript > >files ? > >--- > >You are currently subscribed to smarty as: luc@saint-elie.com > >To unsubscribe send a blank email to leave-smarty-936653I@lists.ispi..net > >Visit Smarty's homepage at > >http://www.phpinsider.com/php/code/Smarty/ > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to leave-smarty-936653I@lists.ispi.net > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/ --- You are currently subscribed to smarty as: julien.lemaire@realviz.com To unsubscribe send a blank email to leave-smarty-936653I@lists.ispi.net Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/

« previous php.smarty.general (#2630) next »