Page 1 of 1

[SOLVED?] Any way to use Jquery instead of Prototype for backend/admin?

Posted: Tue Feb 16, 2010 8:37 pm
by Splynx
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?

Re: Any way to use Jquery instead of Prototype for backend/admin?

Posted: Tue Feb 16, 2010 10:37 pm
by Jeff
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?

Posted: Wed Feb 17, 2010 7:43 am
by Splynx
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?

Posted: Wed Feb 17, 2010 1:23 pm
by Splynx
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?

Posted: Wed Feb 17, 2010 1:56 pm
by Splynx
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 = <.......