View Single Post
  #2  
Old 10-02-2007, 07:41 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Javascript function problem in template

The brackets {} are being interpreted as smarty tags - it is looking for smarty variables/code inside them.

You can maybe solve the problem by putting the function in separate .js file or adding it to the existing XCART js file? Maybe something like:
<script type="text/javascript" language="JavaScript1.2" src="my_scripts.js"></script>

then adding your functions to my_scripts.js
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote