Jump to content
Killersites Community
Sign in to follow this  
agi

Two Conflicting Jquery Scripts In One Html Page

Recommended Posts

Hi,

 

I have recently added two jquery scripts into my personal website, in the process learning how it works. The first script was responsiveslides, which I managed to work in its most basic form. Then, I added a floating nav, but once this worked the slides stopped functioning. I have a hunch where the problem might be, maybe an issue of different jquery versions (I took the .js files from the wesbites offering this code), but as I am a beginner with jquery I would welcome some suggestions or help with this problem. I've attempted finding a solution by googling it, but found it hard to find a relevant site with information (maybe the noConflict() method, but again, this is as yet too advanced for me).

 

The web page which demonstrates the conflict between the scripts is w ww.agnieszka mlicka.c om/dis play.html. All images (except of the banner) are slides that do not work, but the nav on the right floats nicely as it should. If it is better to attach the code, please let me know.

 

Thanks in advance!

Agi

 

ps. apologies for any ugly code, I am in the process of transferring to HTML5 and tidying it all up

Share this post


Link to post
Share on other sites

The first step would be to remove the older jquery link -- you really shouldn't be running two copies of jQuery on the same site. I imagine that both scripts should work fine on the Google jquery link, though I can't say that for sure unless it was properly tested.

Share this post


Link to post
Share on other sites

Thanks for your reply, indeed after sorting out the code to refer to one source only I managed both scrips to work simultaneously.

 

cheers!

Agi

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×