Skip to content
Archive of posts filed under the JavaScript category.

“Expected identifier, string or number”

Thanks, IE. I just spent pretty much all day tracking down the cause of this error. Conventional wisdom regarding this error is that you have a snippet of JavaScript like (where the comma trailing “42″ is the error): var myObj = { a: “a string”, b: 42, } I didn’t. But IE 8 was still [...]

PL/JSON Library

At work, I write a good bit of PL/SQL to support various web applications that I maintain. That is, I write a lot of web services directly in the database so that I have to maintain less code. Unless there is a good reason not to, and there aren’t many, I default to using JSON [...]

JavaScript Patterns, A Book Review

Around mid-November I got an email from O’Reilly with a discount code on select e-books. One of them caught my interest, so I bought it and have been reading it over the last month. That book is JavaScript Patterns by Stoyan Stefanov. I am only midway through chapter 6, and I was going to wait until [...]

JavaScript Cookie Manager Object

There are plenty of articles out there that detail how to work with browser cookies in JavaScript. This is not one of those. This article is about an object I have written to make working with cookies easier. Working on a problem with some third party software I came across the following code: function getCookie(name) [...]