“the j stands for Jag”
about me | research blog | wordpress plugins | jQuery plugins

29 July, 2011

jQuery Clear-on-Focus Plugin

A small jQuery plugin I wrote which I thought I would make public. Instead of using <label> elements for each of your form’s fields, use the input’s value attribute to set the label. Clear-on-focus will then take care of clearing the value when a user clicks or focuses the field. If they leave the field blank, the original message is reset back. Also works correctly for password fields. Example usage:

<input type="text" name="username" value="Enter username" class="clear-on-focus" />
<input type="text" name="password" value="Enter password" class="clear-on-focus password" />

Link: github repository

16 December, 2010

jQuery Tiler Plugin

A new plugin I’m in the process of creating, for neatly tiling boxes of different dimensions into a grid.

If you have ever created tiled a layout by floating a bunch of boxes together, you may have noticed that when these boxes have different dimensions ( heights/widths) you end up with a lot of space and an altogther un-neat layout (Figure A):

Figure A: Floating of different-sized blocks leaves a lot of white space.

Figure B: By using the jquery-tiler plugin our boxes are now neatly stacked

The tiler plugin fixes this by greedily inserting each box into the column which is “shortest”, resulting in something like that in Figure B.

Note how the order of the boxes has changed. To me this is acceptable, but more importantly it is somewhat unavoidable (as someone wise used to tell me, “you have to break eggs if you want to make an omelette”).

Note that in this scenario all boxes are forced into fixed column widths. There is also some support for varying widths (i.e. preserving the width of each box) however it is far from complete. Will implement this when I have some more time (and a few more brain waves).

Anyway if you want to try it out, the git repository is here: http://github.com/johnjcamilleri/jquery-tiler

20 October, 2010

Symphony CMS Extension — Backend Language Switcher

Just published my first extension for Symphony CMS: Backend Language Switcher

It’s basically a small backend utility to allow users to switch the language in which they view the backend. This is especially useful when used together with the Multilingual Field extension.

Check out the official extension thread and the GitHub repository.

28 September, 2010

jQuery Spincrement Plugin

This is my first jQuery plugin!

It basically takes an element (divtd etc) containing a number and increments up or down to that value.



4 January, 2010

WordPress NextGEN Gallery – Thumbnail Generation PHP Memory Limit

The name says it all, if you use NextGen Gallery and have problems with GD thumnbnail generation, you might want to consider upping the PHP memory limit. You probably already suspected it, and it can be done by simply uncommenting one line of code.

Link here: Thumbnail Generation PHP Memory Limit NextGEN Gallery » Visser Labs.

25 July, 2009

External Linker – My first public WordPress Plugin!

I’ve done quite a few WordPress plugins but this is the first one I’m making public, because I think others might find it useful. Basically, you know how target=_blank is invalid in XHTML strict? Well, this uses a Javascript hack to get around this.  The code was originally taken from this thread I came across: http://www.webmasterworld.com/forum21/11165.htm

More to come soon, meanwhile if you have any comments whatsoever about the plugin just let me know!

Go to WP Plugins Directory page