Forums

Proper way to add jquery plugins

gemlog 23 Jun, 2012
I was reading around this morning and saw this jquery plugin:
http://benpickles.github.com/peity/

And wondered what the proper way would be to add that using CC, so it doesn't get overwritten by joomla/chrono updates and so on? It could be nice to show a little dashboard at the top of things.
GreyHead 23 Jun, 2012
Hi gemlog,

Better to use the MilkChart library to avoid having to load a second JavaScript library and managing the possible jQuery conflicts. See here for an article about using the library.

You can use either JavaScript library with CF or CC provided that you set it up correctly, preferably using the Joomla! code to load the scripts.

Bob
gemlog 23 Jun, 2012
Thanks for milkchart bob.
I can copy it anywhere I suppose, but where is best to place it to be friendly to both joomla and chrono for inclusion?
Max_admin 30 Jun, 2012
Anywhere as long as its loaded before its used, if you are using a custom listing in CC then you may add the code in the "Header" box, or use the task control and add it through a Chronoforms "Load JS" action.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
GreyHead 30 Jun, 2012
Hi gemlog,

There's more info about using JavaScript with ChronoForms in this FAQ. The same PHP should work in the ChronoConnectivity Header box that Max referred to.

Bob
This topic is locked and no more replies can be posted.