Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Javascript / More than one JQuery reference

Posted on 2013-11-19
3
Medium Priority
?
416 Views
Last Modified: 2013-11-20
I'm working on a school assignment in a course they called Web 1. I'm as always way above my head and I'm now stuck with a problem. I use some scripting to implement a slide/web scroller window on my page and I also use some scripting to open a Jodform orderingform. It looks like this two can't work together. By removing one or the other reference to the js file I can get one or the other to work. Is it impossible for this two to work together or could it be done if I change my syntax? Excause me If this is a poor description but it could be that I lack the correct terms. Hope someone understand and can give me a hint.

The two js references I use below:

 <!-- ******** BEGIN LIKNO WEB SCROLLER  ******** -->
<script type="text/javascript">var lwscLinkedBy="LiknoWebScroller [1]",lwscName="likno_scroller_project",lwscBN="138";</script><script charset="UTF-8" src="likno-scripts/likno_scroller_project.js" type="text/javascript"></script>


<!-- Used by Jotform to get a ordering form -->
<script src="http://cdn.jotfor.ms/static/feedback2.js?3.1.993" type="text/javascript">
0
Comment
Question by:hallpett
  • 2
3 Comments
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 39660761
There is nothing wrong with what you have shown.  They are probably using some variables with the same names and that is causing a conflict.  It happens some times.
0
 

Author Closing Comment

by:hallpett
ID: 39661655
That's what I needed to know. After tweaking my html it now seems to work. Thanks!
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 39661741
You're welcome, glad to help.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to implement server side field validation and display customized error messages to the client.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

972 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