We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13928
    • 28 Posts
    Doze, I have now more js libraries on my page.

    And Yshout is working, but my eform isn’t.

    And when I’m on my gallery page, gallery works, but Yshout doesn’t.

    You know how to fix this problem with more than one js libraries ?
      • 21475
      • 80 Posts
      Hi Jelen,

      A short answer:
      <script>
           jQuery.noConflict();
           
           // Use jQuery via jQuery(...)
           jQuery(document).ready(function(){
             jQuery("div").hide();
           });
           
           // Use Prototype with $(...), etc.
           $('someid').hide();
         </script>
      

      should be placed after the jquery.js to work.
      From my memories, eform doesn’t require js to work... but you have a mistake in the line loading the css, maybe is this what you where talking about? :
      <link rel="stylesheet" type="text/css" href="/prodaja/assets/snippets/eform/contact.css" />
      

      should be :
      <link rel="stylesheet" type="text/css" href="assets/snippets/eform/contact.css" />
      

      for the css to be loaded (excuse me for my english...).

      if yshout doesn’t load in gallery page (maxigallery?), maybe it’s because there’s a conflict.
      Try to replace the call in yshout snippet with this :
      <script type='text/javascript'>
      			jQuery(document).ready(function(){
      				new YShout({
      					yPath: 'assets/snippets/yshout/'
      				});
      			});
      </script>
      

      $ is replaced with jQuery and there shouldn’t be anymore conflict.

      Hope this helps.
        • 13928
        • 28 Posts
        yshout is on the left side of page
        eform is on page http://www.ogledalo.si/prodaja/index.php?id=106
        Maxigallery is on page http://www.ogledalo.si/prodaja/index.php?id=104

        the problem is :

        I can’t type in a contact form ( eform ) It shows on a page, but I can’t type in . Sometimes i can write few words and the stops working

        If I don’t call snipper Yshout, then I can type in a contact form, but if I call Yshout, contact form freez.



        The same is with Maxigallery. If I call the snippet gallery, the Yshout stops working.
        If I add " &disable_js_libs=`1` " to Maxigallery snippet, the Yshout is working, but gallery crashes
          • 13928
          • 28 Posts
          I replaced $ with jQuery

          and I looked at my snippet call for eform and I have assets/snippets/eform/contact.css
          I don’t know where is this "prodaja" comes from


          If I put

          <script>
          jQuery.noConflict();

          // Use jQuery via jQuery(...)
          jQuery(document).ready(function(){
          jQuery("div").hide();
          });

          // Use Prototype with $(...), etc.
          $(’someid’).hide();
          </script>

          in template in <head> it apears before jquery.js



          nothing works : )
            • 21475
            • 80 Posts
            For the eform pb, it is caused by the width of your #yshout div.
            Edit the css, line 92, delete the line "width: 510px;".

            For gallery, well i don’t know.
            You have js error (check firebug), but not caused on yshout. they seem to be caused by lightbox effect : check on js gallery side (ask a question in the right part of the forum might help you).

            Hope this helps.
              • 13928
              • 28 Posts
              Damn, you’ re genius : )

              yes, this Maxigallery... I ll ask in the right part of forum


              TNX again man
                • 21475
                • 80 Posts
                You’re welcome smiley

                You should really install firebug extension for firefox if you don’t have it, it saves me lots of time!

                Cheers
                  • 13928
                  • 28 Posts
                  I will !