We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2878
    • 81 Posts
    Had turned the QuickEdit plugin off to get my jquery navigation to work, and it worked just fine with it off. Now I need to use QuickEdit to allow members to make changes to their page info and cannot get the 2 to work together.

    Mark H, advised that I could do this to get them to work together. > "Elements -> Manage Elements -> Plugins -> QuickManager -> Configuraton, set "Load jQuery in front-end" to "false"." But when I set this I still do not get QuickEdit???

    I did a test and stripped the jQuery out of a test header chunk and then QuickEdit worked just fine?

    Here is the code I have with adjustments found on this forum to it.
    <link href="assets/templates/bones/MainCSS.css" rel="stylesheet" type="text/css" />
       <link href="assets/templates/bones/lavalamp_test.css" rel="stylesheet"  type="text/css" media="screen" />
        <script type="text/javascript" src="assets/templates/bones/jquery/jquery-1.2.3.min.js"></script>
        <script type="text/javascript" src="assets/templates/bones/jquery/jquery.easing.min.js"></script>
        <script type="text/javascript" src="assets/templates/bones/jquery/jquery.lavalamp.min.js"></script>
         <script type="text/javascript">
    var $j = jQuery.noConflict();
    $j(function() {
             $j("#1, #2, #3").lavaLamp({
                    fx: "backout",
                    speed: 700,
                    click: function(event, menuItem) {
                        return true;
                    }
                });
            });
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
    
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    </script>


    I’m been searching and cannot find an answer to this problem.
    bauhaus9
      • 33337
      • 3,975 Posts
      Have u tried setting "jQuery noConflict mode in front-end" to "true" ?
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 2878
        • 81 Posts
        Quote from: zi at Jul 01, 2010, 08:26 PM

        Have u tried setting "jQuery noConflict mode in front-end" to "true" ?
        If you mean like this at the top of the jQuery code in the header chunk then yes and I’ve tested with the plugin set to Load jQuery in front-end False and tested and true and tested it. Neither of which will work together.

        var $j = jQuery.noConflict(true);
        $j(function() {
                 $j("#1, #2, #3").lavaLamp({
                        fx: "backout",
                        speed: 700,
                        click: function(event, menuItem) {
                            return true;
                        }
                    });
                });
        function MM_swapImgRestore() { //v3.0
          var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
        }
        function MM_preloadImages() { //v3.0
          var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
            var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
            if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
        }
        
        function MM_findObj(n, d) { //v4.01
          var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
            d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
          if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
          for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
          if(!x && d.getElementById) x=d.getElementById(n); return x;
        }
        
        function MM_swapImage() { //v3.0
          var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
           if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
        }
        </script>


        When I remove the jQuery code in the header chunk then and only then will QuickEdit work.

        My apologies wasn’t sure where to post this.
        bauahsu9
          • 33337
          • 3,975 Posts
          Nope, i meant in the plugin config.

          Other than this, not really sure whats going on. sad
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 2878
            • 81 Posts
            Quote from: zi at Jul 01, 2010, 09:45 PM

            Nope, i meant in the plugin config.

            Other than this, not really sure whats going on. sad

            After some sleep I went over the code with a fine tooth comb and found an error.
            I managed to leave out this preload code for my rollover images and some how this kept my jQuery navigation from working with QuickEdit.
            <body onload="MM_preloadImages('images/Nav02_btn01_Over.jpg','images/Nav02_btn02_Over.jpg','images/Nav02_btn03_Over.jpg','images/Nav02_btn04_Over.jpg','images/Nav02_btn05_Over.jpg')">


            Not sure that understand how having the above code not included in this code did that?
            Could someone explain how this interfered with QuickEdit?
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>[(site_name)] - [*pagetitle*]</title>
            <link href="assets/templates/bones/MainCSS.css" rel="stylesheet" type="text/css" />
               <link href="assets/templates/bones/lavalamp_test.css" rel="stylesheet"  type="text/css" media="screen" />
                <script type="text/javascript" src="assets/templates/bones/jquery/jquery-1.2.3.min.js"></script>
                <script type="text/javascript" src="assets/templates/bones/jquery/jquery.easing.min.js"></script>
                <script type="text/javascript" src="assets/templates/bones/jquery/jquery.lavalamp.min.js"></script>
                 <script type="text/javascript">
            jQuery(function() {
                      jQuery("#1, #2, #3").lavaLamp({
                            fx: "backout",
                            speed: 700,
                            click: function(event, menuItem) {
                                return true;
                            }
                        });
                    });
            function MM_swapImgRestore() { //v3.0
              var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
            }
            function MM_preloadImages() { //v3.0
              var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
                var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
                if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
            }
            
            function MM_findObj(n, d) { //v4.01
              var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
                d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
              if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
              for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
              if(!x && d.getElementById) x=d.getElementById(n); return x;
            }
            
            function MM_swapImage() { //v3.0
              var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
               if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
            }
            </script>
            </head>
            <body onload="MM_preloadImages('assets/templates/bones/images/Nav02_btn01_Over.jpg','assets/templates/bones/images/Nav02_btn02_Over.jpg','assets/templates/bones/images/Nav02_btn03_Over.jpg','assets/templates/bones/images/Nav02_btn04_Over.jpg','assets/templates/bones/images/Nav02_btn05_Over.jpg')">
            <div id="wrapper">
            <div id="HeaderContainer01"><div class="SiteTitle"><h1>A STATE SOCIETY OF ORTHOPAEDIC ADMINISTRATORS</h1></div><ul class="lavaLampNoImage" id="2">
                <li class="current"><a href="index.html">Home</a></li>
                <li><a href="officers.html">Officers</a></li>
                <li><a href="societylinks.html">Society Links</a></li>
            <li><a href="preferredvendors.html">Preferred Vendors</a></li>
            <li><a href="meetingphotos.html">Meeting Photos</a></li>
            <li><a href="news.html">News</a></li>
            <li><a href="employment.html">Employment</a></li>
            </ul>
            <div class="Nabar02"><a href="membershipform.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('btn_01','','assets/templates/bones/images/Nav02_btn01_Over.jpg',1)"><img src="assets/templates/bones/images/Nav02_btn01.jpg" alt="Bones of PA - Membership Form" name="btn_01" width="122" height="19" border="0" id="btn_01" /></a><a href="membershipdatabase.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('btn_02','','assets/templates/bones/images/Nav02_btn02_Over.jpg',1)"><img src="assets/templates/bones/images/Nav02_btn02.jpg" alt="Bones of PA - Membership Database" name="btn_02" width="153" height="19" border="0" id="btn_02" /></a><a href="memberswebsites.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('btn_03','','assets/templates/bones/images/Nav02_btn03_Over.jpg',1)"><img src="assets/templates/bones/images/Nav02_btn03.jpg" alt="Bones of PA - Members Web Site" name="btn_03" width="143" height="19" border="0" id="btn_03" /></a><a href="membersforum.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('btn_04','','assets/templates/bones/images/Nav02_btn04_Over.jpg',1)"><img src="assets/templates/bones/images/Nav02_btn04.jpg" alt="Bones of PA - Members Forum" name="btn_04" width="117" height="19" border="0" id="btn_04" /></a><a href="memberslogin.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('btn_05','','assets/templates/bones/images/Nav02_btn05_Over.jpg',1)"><img src="assets/templates/bones/images/Nav02_btn05.jpg" alt="Bones of PA - Members Login" name="btn_05" width="112" height="19" border="0" id="btn_05" /></a></div>


            Anyway I’m one step closer to my goal thanks to everyone who looked this over and tried to help.

            In the QuickEdit plug-in turning off "Load jQuery in front-end" keeps the jQuery nav from breaking the QuickEdit. < Thanks to Mark H. for this bit of intell.