Review: JavaScript: The Definitive Guide, Sixth Edition, by David Flanagan

  • May 23, 2011
  • James Skemp
The following is a review of JavaScript: The Definitive Guide, Sixth Edition, written by David Flanagan. Also available on O'Reilly Media. Provides a deep dive into JavaScript development JavaScript: The Definitive Guide is not just a complete reference of the language, like O'Reilly's other 'thick books,' but also provides a deep dive into JavaScript development. However, if you're just starting out and will be using one of the various libraries (like jQuery), this book may not (yet) be for you.

Read More

Review: JavaScript: The Good Parts by Douglas Crockford

  • April 29, 2011
  • James Skemp
The following is a review of JavaScript: The Good Parts, written by Douglas Crockford. Focused discussion on the parts of JavaScript to learn more about At the beginning of last month Scott Hanselman had a Hanselminutes episode titled "JavaScript and jQuery: Moving beyond Alert()." During this episode he spoke with two JavaScript ... (experts? gurus?) users, and this book was mentioned as one to read if you wanted to get a better understanding of JavaScript.

Read More

Function to Parse a Microsoft JSON DateTime returned from a WCF service in JavaScript

  • July 4, 2010
  • James Skemp
When a DateTime is converted to JSON in a WCF Web service (WebHttp in this particular case) it's semi-difficult to convert that to something we can use when we return the date to a client via JavaScript. For example: "LastPlayed":"\/Date(1278187099000-0400)\/" After almost an hour of research and goofing around with this, I've come up with the following, which seems to work just fine on Internet Explorer 8, Firefox 3.6, and Chrome 5.

Read More

JavaScript object dump

  • March 27, 2010
  • James Skemp
I thought I posted this before, but I guess I did not. Here's one way to dump a JavaScript object for analysis (if you don't have access to Firebug, or a similar tool). Note it only dumps one level of data, and the code below is specifically for dumping an exception (catch ex), but swap ex in the three spots one spot with whatever object you'd like dumped. var objectInfo = "

Read More

Regular Expression tester - JavaScript

  • January 21, 2008
  • James Skemp
In a previous post, I posted the code I used for a ColdFusion regular expression tester. This time I've got an attempt at a JavaScript version. There's a number of TODOs, but ... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>JavaScript Regular Expression Tester</title> <style type="text/css">  #form_help {   float:right;   font-size:.8em;   width:50%;  }  #form_results {   margin:1em;   width:45%;  }  .highlight {   background-color:#ff9;  }  #form_highlighttext {   border:1px dashed #ccc;   margin-left:1em;   width:45%;  } </style> <script type="

Read More

Gmail and Firefox 2.0.0.5 - issues with JavaScript?

  • July 24, 2007
  • James Skemp
Over the past couple of days I've noticed issues with the Inbox view of Gmail being extremely slow on Firefox (2.0.0.5, the current version). Disabling JavaScript makes the load much faster (naturally), but even switching to Internet Explorer (7) works (with JS on). With Firefox 2.0.0.5 already having a security issue, I wonder if updating was a good decision in this case. Perhaps 2.0.0.5 was released a bit too quickly?

Read More

Browser support for different versions of JavaScript

  • January 19, 2007
  • James Skemp

After a number of Google searches, I've been unable to find a listing of what browsers support what versions of JavaScript. The few sites I did find were AnyBrowser.com and Mozilla.org. Unfortunately, the information they provide is pretty focused. In this article I'll be going over this information, and trying to dig up more.

Read More

Review of 'Ajax for Web Application Developers' by Kris Hadlock (2006)

  • December 13, 2006
  • James Skemp
The short stick: New to Ajax? You may want to look elsewhere ... I've been working on the Web for a handful+ of years, but save for a brief stunt back in the late 90s, I haven't had much use for JavaScript (with the exception of a few one/two-liners). As such, I came to this book as a new-comer to Ajax. I also like to learn by way of example, instead of explanation, so code examples are a big plus, if not a requirement.

Read More