We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2396
    • 101 Posts
    Hi,

    I’m running into what is evidently a fairly common problem - jQuery ceases to function because of a clash with Maxigallery/Slimbox’s javascript. In all browsers except IE6 the image rotation just ceases to happen, its not the end of the world - but in IE6 all three images load beneath the previous and make it look like a complete pile of $#%^.

    I’ve been through a lot of posts and understand the theory (but not the execution) of the noConflict solution. Can anyone assist with what I might need to do to get this working?

    A draft of the page can be found here: http://www.picac.com.au/V1/index.php?id=22

    Thanks for any help,

    A
      • 7923
      • 4,213 Posts
      Why not just implement a different display type that uses jquery? there is a guide in maxigallery wiki about how to implement thickbox for example. It uses jquery.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 2396
        • 101 Posts
        Thanks doze but I finally managed to get it working with Slimbox! Finally managed to get the noConflict solution working, now the jQuery image rotator, maxigallery and Ajaxsearch are all playing nicely together in all browsers.

        If anyone else comes up against this issue, these threads are invaluable reading. I got the solution from the work of these guys - chalk another up for the community and thanks so much.

        http://modxcms.com/forums/index.php/topic,31554.20.html

        http://modxcms.com/forums/index.php/topic,30687.0.html
          • 23299
          • 1,161 Posts
          Yup, that was me in all my confused glory...

          But I can not express enough thanks and appreciation to Doze and others who helped me in that thread.

          I have taken that lesson and used updated versions of that jQuery script and made it work with MaxiGallery, with some custom CSS tweaking along the way.

          I still really like the Fancybox jQuery script and getting it to play nicely with MaxiGallery has been great.

          Having these threads exposed like this is sort of embarrassing in way but they are really useful for new members who cover the same ground. I am glad that someone got some value reading stuff like this...


            • 2396
            • 101 Posts
            @Photowebmax, there’s nothing embarassing about it at all. It was mainly your answer that got me over the line. Seriously, I would have caved in and used Thickbox earlier on if your persistance hadn’t ’inspired’ me to keep looking for a solution. And yes, I’m going to look at using Fancybox from the start the next time too.

            Sometimes we(I) noobs can ’earn’ the ire of some of the more experienced coders - but everyone’s got to start somewhere and you shouldn’t have to be a hardcore dev to use this or any CMS. I’ll bet i’m in a similar poition to you, with my skills originating more in graphics, design and print.

            I’d love to write a tutorial about this solution so others might find this less frustrating as it seems reasonably common but I think I’ve got way too much on right now (2 more modx projects + my personal site in modx!).

            It could be worse, we could be trying to figure out all this in Drupal. shocked
              • 23299
              • 1,161 Posts
              I should go back and read my frustration!

              Seriously, getting custom gallery templates and outside javascripts to work can be quite the undertaking.

              I have done this a few times now. I have learned (the hard way) what you need to do to get several jQuery scripts, MooTools, Ajax and CSS to all work on the same page. It can take some experimentation and order sequence trial and error in the template head area to get it right. Its a good skill/experience to have though...