Javascript for in statement usage.

I don’t know why I forget the syntax for things like this. var cars = [“Ferrari”,”Subaru”,”Mazda”]; for ( var i in cars ) { alert( cars [i] ); } And since objects in Javascript are also associative arrays you can do things like this. var object = new Object; object.FirstName = “Harvey” object.LastName = “Meeker” …

Continue reading ‘Javascript for in statement usage.’ »

WordPress Google Syntax Highlighting with XHTML

Well, I set up this blog and then wanted a code syntax highlighter, because those are nifty. I installed this plugin and all seemed well. Then though I noticed the little XHTML link on the right side of the blog that is installed there by default and I clicked on it and it went over …

Continue reading ‘WordPress Google Syntax Highlighting with XHTML’ »