Quote:
Originally Posted by gb2world
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.
|
Thanks gb2World.
Your tip was great. It does make sense to have the script work on a simple HTML before merging it with x-cart.
I did exactly that and now I see the error - "jquery is not defined" in IE and firefox. since JQuery is coming from -"http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" which is available, I am not sure what could be wrong.
I updated this reference to use the jquery.min.js file within the skin1 directory and it did the trick for the HTML.
Now I need to get it to work within xcart. For some reason it just doesn't like relate paths for images. So the only way I could get it to work was by providing images as - http:\\
www.myserver.com\img.jpg which is lame, but does the trick.
Again thanks so much gb2World and gizmo for helping me out. It was a great learning experience
Thanks again.