Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • jooservices Friend
    #169776

    http://joomideas.com/hagattini/index.php?page=shop.product_details&flypage=flypage.tpl&product_id=89&category_id=6&option=com_virtuemart&Itemid=146&lang=vi

    One of my client website using T3 blank template. 3 templates used on this site .
    And in virtuemart page i’ve used

    http://www.professorcloud.com/mainsite/cloud-zoom.htm
    to some image zooming effect .
    This plugin required jQuery, and i gave it jQuery but don’t make any conflict trouble.

    templates/hagattini_b/blocks/head.php


    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    <script>jQuery.noConflict();</script>

    Easy huh ? Ya of course, also make sure no else jQuery instance using on site . 🙂

    Thank you
    Viet Vu

    n6rej Friend
    #419903

    <em>@jooservices 276614 wrote:</em><blockquote>

    Easy huh ? Ya of course, also make sure no else jQuery instance using on site . 🙂

    Thank you
    Viet Vu</blockquote>

    joo, how can we realistically do this… almost every extension has jq and different version of it.

    Also when using no conflict it requires that the code uses $ and such. Which not everyone does. So how will this work?

    jooservices Friend
    #419904

    <em>@n6rej 276616 wrote:</em><blockquote>joo, how can we realistically do this… almost every extension has jq and different version of it.

    Also when using no conflict it requires that the code uses $ and such. Which not everyone does. So how will this work?</blockquote>

    In case you want to have more than one jQuery instance you will need “re-build” jQuery into your own namespace ( jomsocial do something a little bit same ).
    But of course in this case you’ll lost jQuery plugin for that instance. But as normally, for a website we should use only one instance, not about safety but also optimize website. ( it’s one of step for web optimizing ).

    Thank you
    Viet Vu

    jooservices Friend
    #419908

    A simply video to show you how to find / remove jQuery instance 🙂
    Thank you
    Viet Vu


    trisha918 Friend
    #480212

    Hi

    I use that Megamenu workin but my jQuery action for tab not working

    what I must be do?

    thanks.

    Saguaros Moderator
    #480394

    Do you have any url of page where problem can be seen?

    wdburgdorf Friend
    #486605

    I have a similar problem. I tried to add an accordion to one page. works well with jQuery 1.9.1 added to my page. But then the navigation and other things don’t work anymore.

    I believe it is this what causes the trouble:

    index.php?jat3action=gzip&jat3type=js&jat3file=t3-assets%2Fjs_b2671.js

    When adding <script>jQuery.noConflict();</script> to the page, right below where I load jQuery, the navigation etc. works fine again, but not my accordion.

    This is the page:
    http://www.kummer-getraenke.ch/ueber-uns?admin=1
    See the three paragraphs at the bottom? They are supposed to be within the accordion.

    wdburgdorf Friend
    #486607

    I fixed it, using what I found here: http://api.jquery.com/jQuery.noConflict/
    Still, I’d rather not load two libraries. Any idea for a better way to do this, i.e. set up an accordion (using mendozite template, J!2.5.8)?

    Saguaros Moderator
    #486777

    Hi wdburgdorf,

    Did you solve it? as I can see in this page: http://www.kummer-getraenke.ch/ueber-uns?admin=1 , the accordion and the menu are working. 🙂

    wdburgdorf Friend
    #491773

    Yes, I solved it, as I said in my post:
    <em>@wdburgdorf 364618 wrote:</em><blockquote>I fixed it, using what I found here: http://api.jquery.com/jQuery.noConflict/</blockquote>
    … but I am still looking for a better way.

Viewing 10 posts - 1 through 10 (of 10 total)

This topic contains 10 replies, has 5 voices, and was last updated by  wdburgdorf 11 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum