Offline files with HTML 5

Posted on February 11, 2012 by Phil   1 comment

I’ve been experimenting with the FileSystem API in Chrome over the last couple of weeks and thought I’d share my musings with a little demo of a file syncing system that I am thinking of using in an application where the user can download a copy of the file, work on it offline and then sync it when connected again. In this post I just want to show the pull side of the sync where the file is downloaded and replicated in the local file system (within the browser) and I’ll follow up with a second post showing the silent sync with the server (push and pull based on last edit timestamp) once I have that part working.

Continue reading

XMLHttpRequest Level 2 Ajax library, xhr2-lib

Posted on January 22, 2012 by Phil   1 comment

So a while ago a messed about with the File API and FormData with the XMLHttpRequest Level 2 spec which enables the transfer of binary data and tracking of the upload progress through the XMLHttpRequestUpload object – awesome. I was blown away when I first started messing about with this stuff and support for it now seems to be a little more wide spread, nothing in IE or Opera as of yet but you know life goes on. What I did start to do was abstract some of the code I was messing about with into a little module aptly named xhr2-lib which I’ve grown a bit since and would like to share and hopefully get some feedback.

Continue reading

jQuery Ajax navigation plugin – jNavigate

Posted on December 18, 2011 by Phil   2 comments

jNavigate is a powerful jQuery plugin that enables you to build single page sites using dynamic content areas powered by Ajax technologies simply and quickly. Turn your website’s hyperlinks into triggers that load page content dynamically reducing the load on your web server while enhancing your users browsing experience.

Continue reading

Increment operator issue with ColdFusion 8 arrays

Posted on September 8, 2011 by Phil   no comments yet

I spent a good 30 mins debugging a module in one of our products that has been running fine in CF8 for a while but crashed when run on CF9 recently. The problem turned out to be a bug in my code but it also unveiled this freaky bug with CF8. It turns out that if you try to increment the value of a variable used as an array index when assigning a structure or array to that index using literal syntax then the variables value is not incremented. Here’s an example of what I found!

Continue reading

PONG Turbo – My first stab at game programming

Posted on August 8, 2011 by Phil   no comments yet

I developed an installation tool at work for our product which automates the motions of checking the project out of SVN, importing a database and adding the site and virtual directories in either IIS or Apache. This process, mainly the database import, takes a couple of minutes and my colleague Adam suggested that I need to add some kind of game to play while waiting for the process to complete. He of course was joking but I took the challenge literally!

Continue reading

Recommended reading

  • Ben Nadel Articles on “obsessively thorough web development” with Coldfusion and jQuery
  • Christian Heimann's blog – Wait till I come!! Articles on web development
  • David Walsh Articles around PHP, CSS, MooTools, jQuery and just about everything else
  • John Resig Javascript programmer and the creator of the jQuery library
  • Mary Lou (Codrops) Stunning designs with lots of cool jQuery effects

Photostream

  • Loading photostream from Flickr...