Author Topic: Dumb Question - including jquery in a template  (Read 2225 times)

Offline PurpleEdge

  • Posts: 231
  • Gender: Male
    • the northern beaches
Dumb Question - including jquery in a template
« on: May 13, 2010, 05:04:28 PM »
Sorry, this sounds like a dumb question...

I have read that jquery is included automatically with WB 2.8x - is it loaded automatically, or do I have to load it from my index.php template file?

I've got the code ...register_fronten d_modfiles('js'); ... which loads mdcr.js - what else should I have to do??

Offline BlackBird

  • Posts: 2573
Re: Dumb Question - including jquery in a template
« Reply #1 on: May 13, 2010, 05:46:42 PM »
You will have to load it with register_frontend_m odfiles('jquery')

erpe0812

  • Guest
Re: Dumb Question - including jquery in a template
« Reply #2 on: May 13, 2010, 06:07:18 PM »
or use this module instead of include folder:
http://www.websitebakers.com/pages/libs/jqueryadmin.php

rgds

erpe

Offline PurpleEdge

  • Posts: 231
  • Gender: Male
    • the northern beaches
Re: Dumb Question - including jquery in a template
« Reply #3 on: May 14, 2010, 05:31:47 AM »
Thank you both very much!

jquery admin is a very nice interface, I'll experiment a bit more with it.

For now I was just trying to get a superfish menu working properly which I've now done!

I notice that using register_frontend_m odfiles('jquery') displays some wb constants - I'm not sure that is a good thing?

Offline BlackBird

  • Posts: 2573
Re: Dumb Question - including jquery in a template
« Reply #4 on: May 14, 2010, 11:04:25 AM »
There's a ready-to-use Superfish Plugin for jQueryAdmin.

I'm sorry, but I can't help with the other issue.