| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
JAVASCRIPT IN TEMPLATES | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
im trying to put an image with a javascript popup but i need to put the javascript in the head of the page... what file am i looking for, where every page calls on it?
PLEASE HELP!!! |
|||||||
|
#2
|
|||||||||
|
|||||||||
|
skin1/customer/home.tpl
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. |
|||||||||
|
#3
|
|||||||||
|
|||||||||
|
I get Smarty errors whether I put a javascript in home.tpl, or the actual body of the page I'm working on.
the script is: Code:
and the error: Fatal error: Smarty: [in help/customer_service.tpl line 6]: syntax error: invalid attribute name - 'window.open(theURL,winName,features);' in /home/www/urbanhomemaker/store/Smarty-2.3.0/Smarty_Compiler.class.php on line 1398 |
|||||||||
|
#4
|
|||||||||
|
|||||||||
|
Just remember that any JS parts that include the { or } should be in {literal} {/literal}tags
do a search for literal for some more examples on using java in your templates
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. |
|||||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||