WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => jQuery => Topic started by: PurpleEdge on May 13, 2010, 05:04:28 PM

Title: Dumb Question - including jquery in a template
Post by: PurpleEdge 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??
Title: Re: Dumb Question - including jquery in a template
Post by: BlackBird on May 13, 2010, 05:46:42 PM
You will have to load it with register_frontend_m odfiles('jquery')
Title: Re: Dumb Question - including jquery in a template
Post by: erpe0812 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
Title: Re: Dumb Question - including jquery in a template
Post by: PurpleEdge 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?
Title: Re: Dumb Question - including jquery in a template
Post by: BlackBird 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.