jQuery plugin

Feed 8 posts, 3 voices

Avatar
291 posts

Since manually editing backend templates files are annoying I made a simple plugin which adds jQuery to Frog admin. It would be great if other plugin developers who need jQuery would use this too.

If everybody includes his own jQuery manually it might get included several times == bad.

Install

Copy plugin files to frog/plugins/jquery/ folder.

cd frog/plugins/
git clone git://github.com/tuupola/frog_jquery.git jquery

or

cd frog/plugins/
wget http://www.appelsiini.net/download/frog_jquery.tar.gz
tar -xzvf frog_jquery.tar.gz

Go to admin and enable jQuery plugin.

Usage

Plugin forces jQuery to be in noconflict mode. You can use $ shortcut normally like this:

/* Run code after DOM / document is ready. */
jQuery(function($) {
    /* Use $ shortcut normally here. */
    $('#someid').show();
});
 
Avatar
1493 posts

Thanks for this one, tuupola!

I have sometimes thought that it would be good to add the WYMeditor “filter” to the Frog plugin arsenal. It uses jQuery, so I expect that it would be a good candidate to make use of this jQuery plugin.

 
Avatar
486 posts

thanks, tuupola.

‘require_frog_version’ => ’0.9.3’

this doesn’t have any problems with 0.9.4 does it?

 
Avatar
486 posts

it’s a good idea to standardize on stuff like this. are you going to do a simplepie plugin too?

 
Avatar
291 posts

this doesn’t have any problems with 0.9.4 does it?

It means Frog version has to be equal or bigger to 0.9.3. So no problems with 0.9.4. Probably no problems with older versions either (but I have not tested).

are you going to do a simplepie plugin too?

If I need it then maybe yesm. Although for RSS parsing I personally prefer SimpleXML. Simplepie contains PHP4 code and feels a bit too large for my taste.

Have you checked the SimplePie helper?

 
Avatar
486 posts

Although for RSS parsing I personally prefer SimpleXML.

How do you handle caching?

 
Avatar
291 posts

FYI. Just updated plugin to include latest jQuery 1.3.0. Download to update.

 
Avatar
291 posts

FYI. Just updated plugin to include latest jQuery 1.3.2. Download to update.