recent releases of node js, altough unstable, now come with windows executables (thanks to help from Microsoft) which means no more fiddling with cygwin to get it up and running on your machine.
How to run node
1. Download node.exe from http://nodejs.org/#download
2. Put this ...
[More]
I've been using the fantastic mobile storage library Lawnchair in a recent Android project and got an "illegal access" error when running on a device (Samsung Galaxy S), which is caused by a JSON.parse null paramter.
To prevent this, add json2.js to your project:
&...
[More]
Alt + click
This is a great little shortcut in Chrome for downloading a link's destination, rather than going to the page. Especially useful for downloading JavaScript files from frameworks or demos.
JS1K is a "competition is to create a cool JavaScript 'application' no larger than 1k." The third version runs until 24 April and my entry is a little game called Run away!
Although all debugging code should be removed before live deployments there will likely be times during development that people without a debugging tool, like Firebug, will want to view the application.
To prevent console.log throwing an error add the following to your JavaScript:
if (type...
[More]
Trends are great. They're good to keep up with, experiment with and - especially with digital agencies - pretty cool to get into a new project, even if the client is locked into IE6 by their IT department and can't see it.
Now and then a trend isn't great. It's just wrong.
And sometime...
[More]
Yesterday the W3C unveiled their logo for HTMl5 to a largely mixed response. To some it was nice to now have a visual reference point for HTML5, to others it was met with a chorus of groans. The W3C seemingly lumped CSS3 in with HTML5. What were they thinking?
Clearly...
[More]
A few minor changes in this latest release from the jQuery team and a new feature, .fadeToggle()
This method is similar to the existing .slideToggle() and .toggleClass() toggle effects and extends the method types to a fade effect.
More from the release notes on the jQuery blog and the ...
[More]
Inspire the web with just 10K.
The team behind An Event Apart have started a contest to showcase new features in HTML5, CSS and JavaScript.
Find out more at 10k.aneventapart.com/
Error: 'null' is null or not an object
Wow, this was fun to figure out. IE6 doesn’t like hyphens in the id of the target element. Running the following code displayed the flash fine in IE6 (and other browsers) but there was an error coming from swfobject.js (line 14 actually had jQuery on w...
[More]