Solved

Javascript / More than one JQuery reference

Posted on 2013-11-19
3
389 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 83

Accepted Solution

by:
Dave Baldwin earned 500 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 83

Expert Comment

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

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to count occurrences of each item in an array.

828 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