Thank you very much gb2world to take the time for those explanations. I appreciate very much.
Quote:
Originally Posted by gb2world
It appears you might have files in the wrong places? The script actually runs in the directory where you have x-cart installed - not in the template directories.
So, when you say you put all the javascript files in /common_files/customer, that could be a problem unless you are pointing there.
For example, if you say: <script type="text/javascript" src="fadeslideshow.js">
then fadeslideshow.js needs to be where the x-cart script executes, not inside a template directory.
|
I was using the same dir as i expected that way to avoid wrong path errors as it is usually done in usual programming. I was wrong then.
So, if i have to consider templates dir as outside of the x-cart script running environment, where do those scripts are really running and where should i store those files fy default ? In this case, if i keep the code as it is in home.tp without defining a path to fadeslideshow.js where should i move fadeslideshow.js to run it correctly then ?
Quote:
Originally Posted by gb2world
This is true of all your files - the paths need to be defined correctly. If you can run your test files outside of x-cart successfully in the directory where x-cart is running (not inside a template directory), then they should work in x-cart.
|
I have not tested the Ultimate slideshow outside of x-cart, only bretteleben script.
Quote:
Originally Posted by gb2world
Other issues that could crop up have to do with javascript conflicts of your code with the javascript that already exists in x-cart. For example, you are calling ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js, and xcart already calls its own version of jquery. So at a minimum, you may have redundant code, or, it could actually conflict and cause issues.
|
I have tried this afternoon to replace that path by pointing to lib/jqueryui/jquery.ui.core.min.js
Don't ask me why, just tried for experiment as it was the named path that was corresponding the best with the original one.
It resulted as i lost all x-cart templates display from browser side (text style only displayed).
Quote:
Originally Posted by gb2world
If you post the links, people here can look partially at the paths to the files you are calling and see if that is the problem.
---
|
Link to the homepage is :
http://www.skytracker.eu/store/home.php?shopkey=guest
Thank you again for your help.