View Single Post
  #13  
Old 02-26-2010, 11:18 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

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

Default Re: Just cant get dynamicDrive scripts to work

Quote:
The only thing i can think now is that the images can't be found. Since I am following the {literal} tags approach, does this mean i have to give the entire path of the images like http:\www.myserver...images.jpg? or can i still access it using a relative path?

The literal tags have nothing to do with the paths - they only tell smarty - "do not try and interpret things inside here". This is because smarty thinks any thing inside { } is smarty code. But javascript uses {} too - so you are telling smarty - ignore my javascript code.

Yes - you do need to make sure your script understands the paths to your images. It can be relative or the entire path. If this is wrong - it can explain your problem. The paths should be relative to where the javascript is running - which is your home directory.

One tip when trying new scripts - first do it out side of xcart - just open an html file, debug it there. That eliminates any of the X-CART complications. You can get all your paths correct and get everything working. Once you have that - move it into X-CART. Then you know you are dealing with something to do with X-CART.
__________________
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