4 Replies Latest reply on Dec 12, 2013 4:14 PM by Brian Leathem

    Prototype.js conflict in 4.3.2

    Sushant Saini Novice

      I am currently migrating from 3.3.3 to 4.3.2. I have some javascript from prototype. js which is using $ which is causing the conflict. Infact as soon as I include prototype.JS in my page there is JS conflict. I tried using var $$ = jQuery.noConflict(); but this causes

      JS error in ricfaces javascripts.  Please advice how I can resolve this conflict.

       

       

       

        <h:head>

       

       

       

        <script type="text/javascript">

       

       

        var $$ = jQuery.noConflict();

       

       

       

       

        function setInitializeToolTip(){

        jQuery(".toolTipData").mouseover(function(){

           jQuery.get(jQuery(this).attr("href"), function(data){

             jQuery("#loadme").html(data);

             TagToTip("loadme");

           });

          }).mouseout(function(){

            UnTip("loadme");

          });

        }

        </script>

       

        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <title>Rexus</title>

       

        <link rel="stylesheet" type="text/css" href="css/star-skin2.css" />

        <link rel="stylesheet" type="text/css" href="css/nonadmintree.css" />

       

        </h:head>

       

       

        <head>

        <script type="text/javascript" src="js/prototype.js" />

        </head>