Improved ASP JSON utility

Most of the projects that I have been working on lately did not require any advanced AJAX. Most of the time, stuffing the results of a simple GET into innerHTML has usually been sufficient. Recently, I needed to do some more advanced AJAX work so I started looking into JSON. There a hundreds of helper classes that people have dreamed up already for ASP.NET, however this project was under the Classic ASP (VBScript) umbrella.

I fell upon a nice little utility on aptly called aspjson. It is a nice utility except the implementation of multi-dimensional array support is flawed. Try to JSON an array that has dimensions with more than 10 elements and you will quickly see what I mean.

I rewrote the multi-dimensional array support from scratch and I am releasing the code under the same license as the original author as well as obviously attributing credit to Tuğrul Topuz for his original code.

Download the ASPJSON 2.1 source

Fixing Dreamweaver CS4’s JavaScript Events for XHTML

One of the first things you learn about XHTML is lowercase. Everything is lowercase. Lowercase tags, lowercase attributes, lowercase, lowercase, lowercase…

I guess it wasn’t obvious enough to the developers over at Adobe because Dreamweaver CS4 has this annoying habit of mix-casing all of the JavaScript event handlers.

Continue reading “Fixing Dreamweaver CS4’s JavaScript Events for XHTML”

Undocumented Microsoft ProductID GUIDs

Each Microsoft product is identified internally using a ProductID that is in the form of a Globally Unique Identifier (GUID). Software or updates that refer back to Microsoft products tend to generally establish the relationship using the GUIDs instead of the product name. If you ever wanted develop software that dug into some of Microsoft’s software internals, you’ll quickly find that without a way to map those GUIDs, most of the data is meaningless.

Continue reading “Undocumented Microsoft ProductID GUIDs”