29th
JUL

Firefox 3 mulitple ajax requests not updating

3 Comments

Posted by Lee under CodeIgniter, Programming

This morning I managed to get caught up trying to work out a problem I was facing with some content that was being updated via ajax (using jQuery). Whenever I went to perform the same action/url twice it wouldn’t update - in my case a toggle switch for displaying an item. It seemed to be a caching problem but (suprisingly) IE7 worked fine so it started to point towards something wrong with Firefox 3. Read the rest of this entry »

26th
JUN

Gzip and cache CSS and Javascript files dynamically for faster page loads

0 Comments

Posted by Lee under CodeIgniter, Programming

David came across a handy script the other day that we have decided to implement into our CMS that dynamically Gzips and caches CSS and JS files - all without the need to have to change any of your HTML source destinations for those files. As a part of the implementation I also setup the script to work within the standard CodeIgniter cache setup and file structure. Read the rest of this entry »

24th
JUN

List duplicate database queries in CodeIgniter

0 Comments

Posted by Lee under CodeIgniter, CodeIgniter Libraries, Programming

Sure we all like to think that we’re masters of our code but there does come times that you may not realise a database query (usually from a model) has been duplicated a few times. Sure it’s no big problem but when it comes to optimising your website this is one of the first things I would start hunting down to increase performance of a site - you’ve already got the dataset once so why do you need it again if it hasn’t been changed? Read the rest of this entry »

The Lab is the web development blog for PX Webdesign that covers many subjects from PHP, CSS, jQuery, CodeIgniter, Design and XHTML / HTML