Viewing Posts in jQuery

Using Ajax to Populate a Select Box in CakePHP

16th October 2008 CakePHP jQuery

My apologies for the lack of articles recently, after completing the monster Dvd application I've been pretty busy with regular work and a few freelance gigs. In a project I've been working on I had to dynamically grab some data and then use it in a select box, I thought this would be a great example to go through since its quite a common process in web development.

In this article I'm going to be using jQuery as my Javascript library, I know that CakePHP has built in support for script.aculo.us but its something I've never used and jQuery will do the job just fine.

2 comments Read More

jQuery Word/Character Counter

7th August 2008 jQuery

Just a quick jQuery post that calculates the number of words/characters in a form input field. Needed one of these recently for a work project and its really easily to implement and works like a charm

0 comments Read More

Compressing jQuery / Javascript with PHP

9th April 2008 jQuery
compressing jquery with PHP

This is a quick little tip that I've been using on my most recent projects to significantly reduce the size of Javascript code. This comes in handy when using frameworks and although jQuery (my framework of choice) is quite small to begin some libraries like Prototype combined with script.aculo.us come in at quite a large file size.

Using this small modification I reduced the size of jQuery along with my own Javascript code from 55kb to around 16kb with one less trip to the server. All of the compression is done on the server side using PHP so if a visitor's browser does not support G-Zip then they will just receive the original uncompressed files.

0 comments Read More

jQuery Accordion Menu

5th April 2008 jQuery

This is my first article about the wonderful jQuery Javascript library, its been my library of choice for around a year and it's ideal for web development because of it's small size and powerful selector methods.

I'm going to go through the process of creating an expandable/collapsible navigation menu that has a series of top level links with each having a number of sub links. When a top level link is clicked the menu expands and shows the related sub links. An example of which is shown below:

0 comments Read More

Back to Home Page

Recently Watched Films

Mr Brooks Rec Pathology Diary of the Dead

TV Shows

The Shield Flight of the Conchords

Site by James Fairhurst 2008, all rights reserved and all that malarky