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]> ----------------------------------------------------------------
