I am trying to load jquery in Rhino, as shown on this link here . But I keep getting the following error:
line 1086: uncaught JavaScript runtime exception: TypeError: Cannot call method "importNode" of null
I think jQuery does not load at all, but I have no idea why. I am using the same index.html file that the author posted in the original control.
Here is the trace from my Rhino console:
js> load( "/temp/env.js" ); js> window.location = '/temp/index.html'; /temp/index.html js> load( "/temp/jquery.js" ); js: "/temp/jquery.js", line 1086: uncaught JavaScript runtime exception: TypeError: Cannot call method "importNode" of null at /temp/jquery.js:1086 at /temp/jquery.js:1079 at /temp/jquery.js:16 at <stdin>:41
Any ideas?
javascript jquery rhino
javamonkey79
source share