Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    MooTools & jQuery

    I use JonDesign SmoothGallery code on various sites but for a new site I wanted a cool looking alert and found the jQuery library (Overlay function). Apparently both libraries should work together but I can't make them do so.

    One or the other will work absolutely perfectly but as soon as I add the jQuery 'Apple' file - alert javascript mootools.release.83.js - the Smooth Gallery no longer displays.

    I suspect there isn't a solution to this problem - the respective javascript files are incredibly complicated; I just thought I'd ask for confirmation.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,892
    Thanks
    202
    Thanked 2,528 Times in 2,506 Posts
    Quote Originally Posted by Roseman View Post
    I suspect there isn't a solution to this problem - the respective javascript files are incredibly complicated; I just thought I'd ask for confirmation.
    You are right! You cannot expect to use two different Javascript frameworks - jQuery and mootools - together.


    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Fixed it.

    There is a new namespaced version of SmoothGallery. I was working with an old version which is incompatible with jQuery.

    This new version works perfectly.


  •  

    Posting Permissions

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