Jump to content

[SOLVED] HTTP 500 (Internal Server Error) when adding an extra javascript code!


Recommended Posts

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

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

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

×
×
  • Create New...