Ok I see. That i understand. Thanks. But i still don't understand why my lib works then. When the $ is defined differently, shouldn't an additional JQuery lib (in this case JQueryColorbox) nag about or just refuse to work? I must admit i never got a 100% grasp of all that strange JS and JQuery syntax. Maybe no human beeing ever did and it was all written by aliens?
Greetings, Anton On Tue, Jan 25, 2011 at 3:44 PM, Will Scheidegger <[email protected]> wrote: > > If I'm not mistaken there is an other JavaScript library which claims the $ > for its use (I think something used for the AdminInterface). Therefore jQuery > is included in the "noConflict" mode. > > http://api.jquery.com/jQuery.noConflict/ > > -will > > On 25.01.2011, at 15:34, Anton Matheis wrote: > >> >> Hi list, >> >> i have a question regarding jquery. There is a jquery lib defined >> within magnolia. To access functionality of the included jquery lib, i >> can use something like "jQuery('#elementid')". >> >> When i exclude the init-theme.js, i can also use the $. E.g. >> $('#elementid'). It seems as if include-theme unsets the $. >> >> Is there a special reason why the $ is unset? Or is the typical use >> case to include your own jquery on top of the Magnolia one? Or to use >> "jQuery" as function name? >> >> Thanks, >> Anton >> >> >> ---------------------------------------------------------------- >> For list details see >> http://www.magnolia-cms.com/home/community/mailing-lists.html >> To unsubscribe, E-mail to: <[email protected]> >> ---------------------------------------------------------------- >> > > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
