September 18th, 2009
fbis
Here is my first freely available jQuery plug-in. There are a few more to follow soon including a form builder and a file explorer
Overview
I know there are a million calendar selectors out there but I needed one that covered historical dates (1800-2100). It displays either as a in place calendar in the page or as a drop down aka. combo box style.
Read more…
This is the start of a jQuery carousel. I’ve used a few carousels but they require a lot of css editing to get them to change widths etc. I wanted one that could easily adapt to displaying different numbers of items. It accepts a noOfItems config that defines how many items it displays and it adjusts it’s width accordingly. Early days but not bad for a few hours work
Read more…
Selectors in JQuery are extremely powerful. This is a simple page to test them and as a quick reminder as to what’s available.
Get a DOM object from a JQuery obj
$('#' + id).get(0); //get the dom object from the jquery wrapper
Only include object if JQuery is available
//only include if jquery is available
if (typeof jQuery != 'undefined') {
//class goes here
}
Read more…
N.B. This treeview has now been replaced by a more advanced sortable one on LiveFlex.co.uk called Sortable Treeview.
Read more…
I always have a unique id in my databases for each row. When passing this to objects for javascript to manipulate I add it to the class string as ‘id_1′ so I can easily retrieve it later. The GetIds function below returns an array with the id pulled out. It also handles multiple ids in the format of ‘id_name_1′ so we can do something like ‘block id_1 id_Page_1′
Read more…