5 Replies Latest reply on Apr 14, 2009 8:50 PM by ax man

    confict with jquery and jcarousel

    ax man Newbie

      I'm using rich faces with jquery and jcarousel and there is a known issue that jquery causes with other js libraries and a workaround is documented at http://docs.jquery.com/Core/jQuery.noConflict. The problem I have is I'm not sure how to get jQuery.noConflict() inserted in the correct place. When I do this:

       <script type="text/javascript" src="/consumer/jcarousel/lib/jquery-1.2.3.pack.js"></script>
       <script type="text/javascript" src="/consumer/jcarousel/lib/jquery.jcarousel.pack.js"></script>
      
       <script type="text/javascript">
       jQuery.noConflict();
       </script>
      


      my jcarousel breaks but my rich:suggestionbox works. If I take the jQuery.noConflict() out, jcarousel works and rich:suggestionbox breaks. The jQuery directions so to put the noConflict() before any other conflicting library but I'm not doing the include of the rich faces js file, it's via jsf/facelets and so the import is always the first thing in