Solved

Multiple javascript elements won't play nice.

Posted on 2012-03-21
4
295 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 83

Expert Comment

by:Dave Baldwin
ID: 37749773
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
ID: 37749820
All non-related code has been disabled.
0
 
LVL 2

Author Comment

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

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 37750133
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 Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

809 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