Solved

Multiple javascript elements won't play nice.

Posted on 2012-03-21
4
279 Views
Last Modified: 2012-04-03
I have a website that I am trying to use multiple javascript elements on the same page. For some reason it only likes one or the other.

Here is the page that needs the two elements: Http://www.bdcwebdesign.com/ The element that isn't working is below the slide show.

Here is a page were the element is working: http://www.bdcwebdesign.com/?a=Colorado-Wyoming_Portfolio

Any ideas?
0
Comment
Question by:BDC-Net
  • 2
  • 2
4 Comments
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
The Firefox Error Console (Ctl-Shift-J) is showing quite a few undefined or 'null' elements.  But something keeps repeating and making the warning and errors go by too quickly to examine them.  I would temporarily take out the Google Analytics code and any similar code so you can troubleshoot the page.
0
 
LVL 2

Author Comment

by:BDC-Net
Comment Utility
All non-related code has been disabled.
0
 
LVL 2

Author Comment

by:BDC-Net
Comment Utility
If I comment out js/compressed.js the carousel works, but it obviously breaks the slide show.
0
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
I notice that "js/script.js" loads a bunch of other javascripts also.  Unless you can find the conflicting variables, you wont' be able to use them both on the same page.  That's a lot to go through.

Click on "Request Attention" and get some others to look at your question.  Maybe they've seen this problem before.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now