[TYPO3-dev] jquery / prototype conflict in backend
Kay Strobach
typo3 at kay-strobach.de
Thu Mar 3 16:39:37 CET 2011
Hi Mimi,
what about using jQuery in nonConflict mode?
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
Works perfectly here ;)
Otherwise take a look in the doku:
http://api.typo3.org/typo3v4/current/html/classt3lib___page_renderer.html#aef2ea8c92f2d510086b58b8586e71e8d
http://api.typo3.org/typo3v4/current/html/classt3lib___page_renderer.html#a9e0f3616874437bbcb0a74aa8df8c566
Regards
Kay
Am 03.03.2011 16:21, schrieb Michael Knoll:
> Hi there,
>
> we have a problem including jquery and prototype in the right order in
> backend. We include a jquery library which is at the moment included via
>
> $pageRenderer->addJsFile($baseUrl .
> 'Resources/Public/Js/JQuery/jquery-1.4.4.min.js', 'text/javascript',
> $compress);
>
> If we do this in a flexform data provider, it is included before
> prototype is included by the backend. If we include it in our fluid
> template for our backend module, the order is wrong (prototype is
> included before jquery is included, which leeds to a bug).
>
> Is there any way how to make T3 include jquery BEFORE prototype or let's
> say: Can one change the order of inclusions.
>
> We are talking about backend - in frontend, everything is working fine,
> as we have no prototype / jquery conflicts!
>
> Thanks a lot for your help!
>
> Mimi
--
http://www.kay-strobach.de - Open Source Rocks
More information about the TYPO3-dev
mailing list