473,233 Members | 1,535 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,233 software developers and data experts.

multiple jquery script conflict?

120 100+
hi guys

i really dont understand where i am going wrong.I've read countless articles including http://blog.nemikor.com/2009/10/03/using-multiple-versions-of-jquery/ but still having trouble with multiple versions of jquery not working. either the jquery slideshow doesnt work or the jquery ie select width fix doesnt work! rrghhh

Expand|Select|Wrap|Line Numbers
  1. <head>
  2. <link href="/css/styles.css" rel="stylesheet" type="text/css" />
  3. <script type="text/javascript" src="/ie6pngfix/iepngfix_tilebg.js"></script><!-- ie6 png fix -->
  4. <script type="text/javascript" src="/js/ddlevelsmenu.js"></script><!-- drop down menu js -->
  5.  
  6. <script type="text/javascript" src="/js/jquery-1.4.4.min.js"></script><!-- slideshow jquery file 1 -->
  7. <script type="text/javascript" src="/js/slides.min.jquery.js"></script><!-- slideshow jquery file 2 -->
  8. <!-- slideshow jquery controls -->
  9. <script type="text/javascript">
  10. jQuery(function () {
  11. // Set starting slide to 1
  12. var startSlide = 1;
  13. // Get slide number if it exists
  14. if (window.location.hash) {
  15. startSlide = window.location.hash.replace('#', '');
  16. }
  17. // Initialize Slides
  18. jQuery('#slides').slides({
  19. preload: true,
  20. preloadImage: 'img/loading.gif',
  21. generatePagination: true,
  22. play: 5000,
  23. pause: 2500,
  24. slideSpeed: 1200,
  25. hoverPause: true,
  26. // Get the starting slide
  27. start: startSlide,
  28. animationComplete: function (current) {
  29. // Set the slide number as a hash
  30. // window.location.hash = '#' + current;
  31. }
  32. });
  33. });
  34. </script>
  35. <script type="text/javascript">
  36. var jQuery_1_4_4 = $.noConflict(true);
  37. </script>
  38.  
  39.  
  40. <script type="text/javascript" src="/js/prototype.js"></script><!-- lightbox aka image viewer js file 1 -->
  41. <script type="text/javascript" src="/js/scriptaculous.js?load=effects,builder"></script><!-- lightbox aka image viewer js file 2 -->
  42. <script type="text/javascript" src="/js/lightbox.js"></script><!-- lightbox aka image viewer js file 3 -->
  43. <script type="text/javascript">
  44. jQuery.noConflict();
  45. jQuery(document).ready(function(jQuery) {
  46. </script>
  47.  
  48. <script type="text/javascript" src="/js/test/jquery.1-4-2.min.js"></script>
  49. <script type="text/javascript" src="/js/test/jquery.ie-select-width.js"></script>
  50. <!--[if lte ie 6]>
  51. <script type="text/javascript" src="/js/test/jquery.bgiframe.js"></script>
  52. <![endif]-->   
  53. <script type="text/javascript">
  54. $(function ()
  55. {
  56.     // Set the width via the plugin.
  57.     $('select#fixed-select-no-css').ieSelectWidth
  58.     ({
  59.         width : 200,
  60.         containerClassName : 'select-container',
  61.         overlayClassName : 'select-overlay'
  62.     });
  63.  
  64.     // Set the width via CSS.
  65.     $('select#fixed-select-css').ieSelectWidth
  66.     ({
  67.         containerClassName : 'select-container',
  68.         overlayClassName : 'select-overlay'
  69.     });
  70.  
  71.     // Borders and padding etc for Internet Explorer 6/7.
  72.     $('select#select-styleable').ieSelectWidth
  73.     ({
  74.         containerClassName : 'select-container',
  75.         overlayClassName : 'select-overlay'
  76.     });
  77. });
  78. </script>
  79. <script type="text/javascript">
  80. var jQuery_1_4_2 = $.noConflict(true);
  81. </script>
  82.  
  83. <!-- Share this button script -->
  84. <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript">stLight.options({publisher:'c0b04a1e-f627-42e8-b040-cbfb63bd9b1c'});</script>
  85. <script type="text/javascript" src="/js/showtab.js"></script>
  86. </head>
  87.  
I've tried re ordering the scripts around but still no joy? either the slideshow works or the ie select width fix doesnt but not both at the same time?

please advise
Omar.
Mar 18 '11 #1
1 3121
acoder
16,027 Expert Mod 8TB
I'm sorry, but I think you should reconsider your approach. It's bad enough that you have jQuery plus prototype/scriptaculous. To have multiple versions of jQuery on top is just asking for trouble.

You should really be using just one library/framework and sticking to it. The IE6 PNG fix can be done without using jQuery (well, everything can be, but this one would be trivial without changing much).
Mar 21 '11 #2

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

Similar topics

3
by: Voetleuce en f?nsievry | last post by:
G'day I'm looking for a script that can search multiple instances of Google (or other search engines optionally). The user types in a single word in the text field, presses ENTER or the submit...
3
by: P Wolpert | last post by:
This is my first post. I hope I don't sound stupid. I have a script conflict when I put two scripts on one page. Both scripts will work if I use one at a time but the menu button script will not...
2
by: trint | last post by:
Ok, In one table, I need to find all instances of multiple entries of an invoice number in the column InvoiceNumber. For example, there may be more than one entrie of 321, 567, and 987 in...
1
by: otiose3 | last post by:
I've been ploughing through the archives here, but I can't seem to find a solution for my situation... Essentially, I want to run the JQuery script that is in the "value" attribute of my <option>...
12
by: zcabeli | last post by:
Hello All, i'd like to make a script that gets 2 paths as a parameters and find the matching files between them. then it compare between each pair of files with the same name, and outputs error...
3
by: joe | last post by:
Is it OK to have multiple: <script type="text/javascript" src="funcs1.js"></script> <script type="text/javascript" src="funcs2.js"></script> <script type="text/javascript"...
58
by: bonneylake | last post by:
Hey Everyone, Well recently i been inserting multiple fields for a section in my form called "serial". Well now i am trying to insert multiple fields for the not only the serial section but also...
0
by: metaphysics | last post by:
I am using a jQuery script called LocalScroll, and I have a quick problem that needs fixing. The demo for the script is here: jQuery.LocalScroll - Regular Demo, and the documentation is here: Ariel...
5
by: luftikus143 | last post by:
I am using prototype and jquery, and as noted on many sites, there is some potential for conflicts. Now, I saw as well again and again this solution: <html> <head> <script...
1
by: chetan7991 | last post by:
I'm using a jquery plugin Galleriffic in my page and it shows perfectly in all browsers except IE. The error says: "Object doesn't support this property or method" The code I use for script...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...

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.