ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


jQuery conflicts in 20


  • 2010-09-25 13:33:26

    jQuery conflicts in 20

    Hello. I have 2.0 installed and I've been trying to integrate a lightbox type add on called "Colorbox" (http://colorpowered.com/colorbox/).

    It's not working and there is some issue with integration with ATutor. After some testing, it appears that you are not able to use the $ when calling jQuery functions in ATutor. Example: Firefox reports the following error...

    Error: $(".colorbox").colorbox is not a function
    Source File: http://mydomain/ATutor/go.php/6/content.php/cid/51/
    Line: 66



    In fact, to get another jQuery addon I have to work, I need a 2nd call to jQuery in header.tmpl.php.

    Clearly, there is some conflict with jQuery and ATutor. Any ideas on where the issue may lie?

    Thanks.

  • 2010-09-28 09:19:29

    Re: jQuery conflicts in 2.0

    Hi,

    use jQuery() instead of $()

    The Networking module uses the Shindig server(http://shindig.apache.org/), and that uses Prototype that occupied '$()' syntax.