Monthly Archives: November 2006

Attempt to use JSON

By | November 29, 2006

Ok, so JSON is conceptually simple. See json.org for more info. So I include json.js in a page, then attempt to reference the parseJSON method of a string object and get an error. Why? Is it because I reference the method in another external script file, instead of using inline script in the page itself?… Read More »

Found a solution to the click problem.

By | November 24, 2006

I confirmed that click is not a W3C method for anchor objects. However, thanks to the prototype property of objects you can extend a host object by adding methods to it. The code below does this for anchor elements, although you could do it for any element. Credit to Martin Honnen for his article at… Read More »

My First Post

By | November 24, 2006

Javascript Stuff Tip: Local versus global variables- use the var keyword to declare a variable as local.   Tip: don’t write this:     var x;    because x will be undefined. Write this instead: var x = 0; // or some other initial value. Question: the click method for anchor tags does not appear to work in FireFox.… Read More »