javascript in templates : escaping confusion?
| From: | D_C | Date: | Tue, 05 Apr 2005 06:50:50 +0000 |
| Subject: | javascript in templates : escaping confusion? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12398@lists.php.net to get a copy of this message | ||
I have the following javascript in a smarty template. but smarty reads
the JS curly braces looking for a smarty variable... is there a way to
escape this behaviour?
or a best practice eg put the file in a separate .js include?
if (loops < 25) {
gotoAndPlay("{$loopPoint}");
}
--
_______________________________________________
David "DC" Collier
mobile business creator |モバイル・ビジネス・クリエーター
dc@pikkle.com
skype: callto://d3ntaku
http://www.pikkle.com
new number! >>>>
+81 (0)80 6521 9559