I'm trying to get this script to work with SpiderMonkey,
http://www.sfu.ca/~jdbates/tmp/jquery/200907020/sauce

It's a port of a script I previously wrote with Python's httplib, but
I prefer to use jQuery

However it complains when I try to run it,

 $ ./sauce
 jquery-1.3.2.min.js:12: ReferenceError: document is not defined
 $

I'm using SpiderMonkey 1.8.0,

 $ js --version
 JavaScript-C 1.8.0 pre-release 1 2009-02-16
 usage: js [-zKPswWxCi] [-b branchlimit] [-c stackchunksize] [-o
option] [-v version] [-f scriptfile] [-e script] [-S maxstacksize]
[scriptfile] [scriptarg...]
 $

Is it possible to use jQuery with SpiderMonkey, or another JavaScript
interpreter?

Reply via email to