Is it at all possible?
I only want to use it for the admin part of a module I have made.
Is it possible for a specific module to load different javascript files than default will?
[SOLVED?] Any way to use Jquery instead of Prototype for backend/admin?
[SOLVED?] Any way to use Jquery instead of Prototype for backend/admin?
Last edited by Splynx on Wed Feb 17, 2010 1:53 pm, edited 1 time in total.
Re: Any way to use Jquery instead of Prototype for backend/admin?
For you module's admin panel you can load any jscript file you want.
Re: Any way to use Jquery instead of Prototype for backend/admin?
But wont the $ script collide with the use of prototype $, since prototype is set as default for admin part of CMS?
Re: Any way to use Jquery instead of Prototype for backend/admin?
Also how do I do that? (Load any js file I want for my admin panel in my module)
Re: [SOLVED?] Any way to use Jquery instead of Prototype for backend/admin?
Think I found the solution on the conflict.
Jquery has the jquery.noConflict() - use it like so:
jQuery.noConflict();
var $j = jQuery;
This way you keep on using $ for prototype and $j for jquery.
Now I just gotta find out if my module will load the js file into the part with the $head = <.......
Jquery has the jquery.noConflict() - use it like so:
jQuery.noConflict();
var $j = jQuery;
This way you keep on using $ for prototype and $j for jquery.
Now I just gotta find out if my module will load the js file into the part with the $head = <.......