473,405 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

JavaScript clashes

5
I am using 2 different jquery. One for dropdown-menu and one is table sorter. They both work fine individually. But when i try to combine them together in a page, the whole page just get corrupted. What should i do?

Expand|Select|Wrap|Line Numbers
  1. <script src="javascript/jquery.js"></script>
  2. <script type="text/javascript" src="javascript/dropdown-menu.js"></script>
  3. <link rel="stylesheet" type="text/css" href="css/dropdownMenu.css" media="all"/>
  4.  
  5. <script type="text/javascript">
  6.     jQuery("document").ready(function() {
  7.         jQuery("div#menu01").initMenu();
  8.     });
  9. </script>
Expand|Select|Wrap|Line Numbers
  1. <link rel="stylesheet" href="css/style.css" type="text/css" />
  2. <script type="text/javascript" src="javascript/jquery-latest.js"></script> 
  3. <script type="text/javascript" src="javascript/jquery.tablesorter.js"></script> 
  4.  
  5. <script>      
  6.     $(document).ready(function() 
  7.     { 
  8.         $("#myTable").tablesorter(); 
  9.     } 
  10. );     
  11. </script> 
May 21 '12 #1
3 1739
Dormilich
8,658 Expert Mod 8TB
jQuery("document")
I doubt that this is correct. there is no such element as <document> in HTML.
May 22 '12 #2
lollol
5
Then what should i change?
May 23 '12 #3
Dormilich
8,658 Expert Mod 8TB
remove the quotes, for instance?
May 23 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Richard A. DeVenezia | last post by:
Any recommendations for deploying small to middling JavaScript system that encompasses 10-20 functions ? The problem is the potential that another other JavaScript system running on the same...
6
by: Dan Webb | last post by:
Hi All, Im currently working on ways of pacakaging javascript functions/variables/objects in a similar way to the Java package statement so that scripts can be interact with each other with the...
5
by: Krishna | last post by:
Hi all, Can i call my javascript functions from the web controls.Any appropriate site which will be tell more on this will be helpfull. Regards.., Krishna
1
by: Miles Keaton | last post by:
Here's an interesting problem! When a sequence clashes with data already in that table: CREATE TABLE clients ( id serial NOT NULL PRIMARY KEY UNIQUE, name varchar(64)); -- import OLD...
23
by: Matt Silberstein | last post by:
Are there any good qualities libraries out there, free or for "reasonable" cost? -- Matt Silberstein Do something today about the Darfur Genocide http://www.beawitness.org
13
by: Andy Baxter | last post by:
Can anyone recommend a good online guide to using objects in javascript? The book I bought (DHTML Utopia) suggests using objects to keep the code clean and stop namespace clashes between different...
1
by: raylopez99 | last post by:
I seem to get name collision between the Generic collection SortedList and C++.NET Framework collection SortedList. How to resolve? Here are the libraries that seem to clash:...
14
by: =?ISO-8859-9?Q?G=F6khan_Alt=FDnsoy?= | last post by:
Hi, I am trying to post a javascript content via form textarea input element. But when i click send (post) the posted page comes unaccesible. example content for post : <script...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.