August 2011
7 posts
7 tags
6 tags
9 tags
Developer Snippet - Pretty AJAX Errors
Tired of drudging through the console when looking for the cause of AJAX errors? Sick of trying to scan the stringified .NET or webservice error pages for the underlying error? Do I have the handy hint for you!
The following snippet creates a global listener for AJAX errors, shows a jGrowl reporting the error thrown, and then allows you to view the resulting error page - all without breaking the...
6 tags
Developer Snippet - Capturing Console.Log
Nobody is perfect. I’ve left a console.log() in countless live deployments, and I will probably do it again. While it does speak volumes about my attention to detail after a long day of coding, there is a way to prevent it. It’s easy enough to detect when the console object doesn’t exist - so you can just do the following.
if (!window.console) {
window.console = {};
...
6 tags
10 tags
Making OS X Look Like iOS - Quick & Easy
Before we get started I’ll answer the obvious question: why would you do such a heinous thing? Well, I like consistency - and so do others. Apple’s recent direction with the Lion UI has been to make things more like the iPad, so why should the overall skinning be any different. It’s also great for people who have never used a Mac before, or have trouble adapting from a Windows...
5 tags
Repository Updates (iOS Theme + Front End Dev)
Front End Development Guidelines (Demo | GitHub)
The ability to “deep link” to categories and articles went in a while ago, but until today there wasn’t a UI to make it easy. I also added a section on centering content, both horizontally and vertically. It reflects the blog post I recently posted on the matter.
iOS jQuery Mobile Theme (Demo | GitHub)
I’ve replaced...