Archive

Archive for the ‘Javascript’ Category

jQuery fbisCalendar

September 18th, 2009 2 comments

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…

Categories: JQuery Tags: ,

JQuery carousel plugin

March 26th, 2009 2 comments

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…

Categories: JQuery Tags: ,

JQuery selectors reminder

March 25th, 2009 No comments

Selectors in JQuery are extremely powerful. This is a simple page to test them and as a quick reminder as to what’s available.

Categories: JQuery Tags: ,

JQuery Mini-tips

March 6th, 2009 No comments

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…

Categories: Javascript, JQuery Tags:

Simple JQuery Treeview

January 30th, 2009 2 comments

N.B. This treeview has now been replaced by a more advanced sortable one on LiveFlex.co.uk called Sortable Treeview.

Read more…

Categories: JQuery Tags: , ,

Hiding UniqueIds in css class names

January 27th, 2009 No comments

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…

Categories: Javascript Tags: