Results 1 to 2 of 2

Thread: jQuery & mootools

  1. #1
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts

    jQuery & mootools

    Hey guys, trying to get the jQuery.noconflict(); to work with my mootools implementation.

    Not having any joy, but I'm feeling particularly off it.

    Where am I going wrong?

    Code:
    	<script src="<?php bloginfo('template_directory'); ?>/includes/js/mootools.v1.11.js" type="text/javascript"></script>
    	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/mootabs1.2.js"></script>
        <script src="<?php bloginfo('template_directory'); ?>/includes/js/jd.gallery.js" type="text/javascript"></script>
        <script src="<?php bloginfo('template_directory'); ?>/includes/js/jd.gallery.transitions.js" type="text/javascript"></script>
    	<script src="<?php bloginfo('template_directory'); ?>/includes/js/jquery-1.2.6.min.js" type="text/javascript"></script>
    	        <script type="text/javascript">
    
    jQuery.noConflict();
    (function($) { 
      $(function() {
        // more code using $ as alias to jQuery
      });
    })(jQuery);
    // other code using $ as an alias to the other library
    
    
    	            $(document).ready(function(){
    
    	                $("#contactLink").click(function(){
    	                    if ($("#contactForm").is(":hidden")){
    	                        $("#contactForm").slideDown("slow");
    	                    }
    	                    else{
    	                        $("#contactForm").slideUp("slow");
    	                    }
    	                });
    
    	            });
    
    	            function closeForm(){
    	                $("#messageSent").show("slow");
    	                setTimeout('$("#messageSent").hide();$("#contactForm").slideUp("slow")', 2000);
    	           }
            </script>
    I've also tried the noconflict in the jQuery126.js file.

    I'm working with MooTools 1.1.1 and jQuery 1.2.6.

  2. #2
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts

    Re: jQuery & mootools

    managed to get myself some peace and quiet and work it all out.

    Code:
    	<script src="<?php bloginfo('template_directory'); ?>/includes/js/mootools.v1.11.js" type="text/javascript"></script>
    	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/mootabs1.2.js"></script>
        <script src="<?php bloginfo('template_directory'); ?>/includes/js/jd.gallery.js" type="text/javascript"></script>
        <script src="<?php bloginfo('template_directory'); ?>/includes/js/jd.gallery.transitions.js" type="text/javascript"></script>
    	<script src="<?php bloginfo('template_directory'); ?>/includes/js/jquery-1.2.6.min.js" type="text/javascript"></script>
    	<script type="text/javascript">
    	</script>
    	        <script type="text/javascript">
    				var $j = jQuery.noConflict();
    
    	            $j(document).ready(function(){
    
    	                $j("#contactLink").click(function(){
    	                    if ($j("#contactForm").is(":hidden")){
    	                        $j("#contactForm").slideDown("slow");
    	                    }
    	                    else{
    	                        $j("#contactForm").slideUp("slow");
    	                    }
    	                });
    
    	            });
    
    	            function closeForm(){
    	                $j("#messageSent").show("slow");
    	                setTimeout('$j("#messageSent").hide();$j("#contactForm").slideUp("slow")', 2000);
    	           }
            </script>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. storing jquery output
    By Raz316 in forum Software
    Replies: 1
    Last Post: 09-07-2008, 09:18 PM

Posting Permissions

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