SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru Todd Temple's Avatar
    Join Date
    Mar 2005
    Location
    Tennessee
    Posts
    797
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jQuery versions conflict?

    I have a site which uses a version of jQuery that might be an older version and when I try to add the code for PrettyPhoto which uses jQuery version 1.4.2 the site breaks. The earlier version of jQuery is used to implement the accordion effect and the background resizing effect.

    Can someone peek at the multiple versions of jQuery in my code and tell me more about what is going on and how I can fix it?

    Here is a link to the site in question:
    http://www.securehostserver.info/ritas/

    Todd
    Todd Temple > T2 Design

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,803
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    The first step would be to delete the old copy of JQuery since you can only have one copy of it attached to a web page.

    If doing that breaks the script that used it then you'd need to rewrite theat script to use the new version of JQuery.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Guru Todd Temple's Avatar
    Join Date
    Mar 2005
    Location
    Tennessee
    Posts
    797
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    You can only have one copy of it attached to a web page.
    I see. This is something I did not know. I was able to remove the older version and just call the latest version for both effects (accordion and prettyPhoto).

    I appreciate your help felgall! You have helped me out several times before and you have saved the day once again! Thank you so much.

    Todd
    Todd Temple > T2 Design


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
  •