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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Splynx
Forum Members
Forum Members
Posts: 20
Joined: Tue Jun 26, 2007 2:41 pm

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

Post 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?
Last edited by Splynx on Wed Feb 17, 2010 1:53 pm, edited 1 time in total.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

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

Post by Jeff »

For you module's admin panel you can load any jscript file you want.
Splynx
Forum Members
Forum Members
Posts: 20
Joined: Tue Jun 26, 2007 2:41 pm

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

Post by Splynx »

But wont the $ script collide with the use of prototype $, since prototype is set as default for admin part of CMS?
Splynx
Forum Members
Forum Members
Posts: 20
Joined: Tue Jun 26, 2007 2:41 pm

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

Post by Splynx »

Also how do I do that? (Load any js file I want for my admin panel in my module)
Splynx
Forum Members
Forum Members
Posts: 20
Joined: Tue Jun 26, 2007 2:41 pm

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

Post 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 = <.......
Post Reply

Return to “Modules/Add-Ons”