Skip to navigation

Archive for the 'JavaScript' Category

Variable scope in JavaScript

Wednesday, November 14th, 2007

Here’s a very nice summary of the scope of variables in JavaScript, i.e. where in your script they’re availalbe. An important point that I needed for a script: If you need to declare a variable inside a function but need its scope to be global, omit the var keyword.

Getting around the Penn library proxy to post directly to CiteULike

Wednesday, July 11th, 2007

As I wrote before, one of the few problems with CiteULike is that I cannot post an article with the CiteULike Bookmarklet if I’m accessing a journal via a library proxy server (that’s practically all the time). The CiteULike FAQ give the tip of using Greasemonkey to get around the proxy server problem. I’ve finally […]