Is there anything currently in the core to detect if Mootools, JQuery or both are being used in the FE? I know site administrators will use different combinations.
Is there anything currently in the core to detect if Mootools, JQuery or both are being used in the FE? I know site administrators will use different combinations.
No, but my first response when reading this was that that is a FE matter you can detect using js. Is there a BE reason to know? Because currently the only framework Contao supports is Mootools. So I'd say Contao has no reason to indicate which framework is used... That will be changed in Contao 3, to be released this year... (see: http://contao.org/en/news/contao-team-meeting-2012.html)
I'm curious what you are up to?
I'm writing a FE module that will use some simple Ajax to update the module state.
After the original post I started considering doing it all in the JS. I haven't yet researched it but I assume there's easy enough ways to detect if Mootools or JQuery are installed.
Code:// javascript if (window.Mootools) { doMooStuff(); } if (window.jQuery) { doJQueryStuff(); }
Brian
Bookmarks