Results 1 to 3 of 3

Thread: javascript confilcts ...what should i do

  1. #1
    Join Date
    Nov 2011
    Posts
    74
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default javascript confilcts ...what should i do

    Hello I wonder I have a page that has some spry validation assets and also a jquery datepicker.

    this is the following code i have in the header

    Code:
    <script type="text/javascript" src="js/jquery.js"></script>
    <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.17.custom.css" rel="stylesheet" />
    <script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>
    <script type="text/javascript" src="js/date.format.js"></script>
    with just this the datepicker script in place it works fine

    however when i add the following

    Code:
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> 
    	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js"></script>

    the datepicker css does kick in...

    the trouble is i need all these scripts.
    Last edited by keyboard; 11-07-2012 at 11:49 PM. Reason: Format: Code Tags [code][/code]

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,035
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Probably because you've got conflicting (multiple) jquery libraries.

    Just link to the most recent jquery library/plugins and reference the main jquery library first (before all the plugins).

    You can link to the js stored in googleapis, or download and store them on your own server, but you dont need to both.

    If you need more help, please post a link to your actual page.

    Thanks
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Nov 2011
    Posts
    74
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    thanks for the advice i have deleted
    Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js"></script>
    to see if this caused a problem but doesnt seemed to.

    thanks again
    Last edited by keyboard; 11-07-2012 at 11:49 PM. Reason: Format: Code Tags [code][/code]

Similar Threads

  1. Replies: 13
    Last Post: 05-08-2008, 06:48 AM
  2. Replies: 4
    Last Post: 02-11-2008, 02:38 PM
  3. Javascript.AJAX link inside javascript dropdownmenu
    By Possemaster in forum JavaScript
    Replies: 2
    Last Post: 01-25-2008, 09:46 AM
  4. 3rd javascript not supporting in side the javascript program
    By raju in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 03-24-2007, 10:34 AM
  5. [Javascript] Class-Based Javascript Analog Clock
    By ByteMyCode in forum Submit a DHTML or CSS code
    Replies: 2
    Last Post: 10-14-2006, 10:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •