Archive

Archive for the ‘JQuery’ Category

jQuery equal height columns

May 12th, 2010 fbis No comments

Sometimes equal height columns via css can be an absolute nightmare! If you’re using jQuery for other items on the page you can cheat with the following function :

function setEqualHeight(items) { var highest = 0; items.each( function(){ current = $(this).height(); if(current > highest){ highest = current; } }); items.height(highest); };
Read more...
Categories: JQuery Tags:

Javascript dictionary & getIds

October 11th, 2009 fbis No comments

Coming from a .net background I must admit to missing many of the features that the framework provides like Hastables, Dictionaries and Lists. I've just come up with a really simple dictionary class that I use to hold results from my id parsing routine.

Read more...
Categories: JQuery, Javascript Tags: , ,

jQuery fbisCalendar

September 18th, 2009 fbis 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 fbis No 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 fbis 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 fbis 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: JQuery, Javascript Tags: