Housy Posted February 14, 2011 Share Posted February 14, 2011 I don't know, if I'm doing something wrong or maybe it is just prestashop bug.I want to use some other text slideshow script and i just can't get it work properly, because when i add an extra javascript code into <head> section, page doesn't load, I get the HTTP 500 error instead.Why is that?I tryed to add the code below, but no luck :down: $(document).ready(function(){ $("#slider").easySlider({ auto: true, continuous: true, numeric: true, speed: 800, pause: 5000 }); }); What am i doing wrong? Wherever in the head section I put the code, I always get the same error :-S I've also tryed to create one test.html file and I tested the code and it works as it should, so the problem is obviously in prestashop i guess.Thank you,Housy Link to comment Share on other sites More sharing options...
Housy Posted February 14, 2011 Author Share Posted February 14, 2011 If I add {literal}my javascript code{/literal}, then I don't get the error but it still doesn't work, probably the script isn't excecuted.Any suggestions?Thanks,Housy Link to comment Share on other sites More sharing options...
Housy Posted February 14, 2011 Author Share Posted February 14, 2011 Now i know where the problem is.Prestashop has jquery already included in the head section. If i remove this part from head section and place just my jquery, then the slideshow works properly, but other scripts/modules won't i guess, because it's not the right jquery.Which jquery script should i use then, cause it has to be only one and it has to work for both, prestashop and my slideshow.I've also tried to add my jquery code into jquery-1.2.6.pack.js but it doesn't work :smirk: How to solve a problem like this?I really need this, so i would be grateful for any help.Thanks,Housy Link to comment Share on other sites More sharing options...
Magic Toolbox Posted February 15, 2011 Share Posted February 15, 2011 You don't need jQuery, you just need the Magic Slideshow module for Prestashop:http://www.magictoolbox.com/magicslideshow/modules/prestashop/Install the mod, then choose the settings in your admin panel. Link to comment Share on other sites More sharing options...
Housy Posted February 15, 2011 Author Share Posted February 15, 2011 The problem is now solved :-) I did one tiny mistake. First of all you have to use only one library, which is the default one (jquery-1.2.6.pack.js). It didn't work, because I have placed the slideshow code before jquery-1.2.6.pack.js library instead of after.Magic Toolbox isn't the type of slideshow I'm looking for, but tnx anyway.Cheers ;-) Link to comment Share on other sites More sharing options...
Recommended Posts