try this
http://www.aptana.com/node/336



skyspark wrote:
> 
> Hello, 
> I have been trying out the code from
> http://code.jquery.com/nightlies/jquery-nightly.build.zip
> as a solution for doing server side javascript with dom parsing/ 
> manipulation. when i do sample code,some error happen like this
> 
> r...@sec-portal:/usr/local/apache2/htdocs# java -jar build/js.jar
> Rhino 1.6 release 6 2007 06 28
> js> load('build/runtest/env.js');
> js> window.location = 'test/index.html';
> test/index.html
> js> Exception in thread "Thread-0" org.mozilla.javascript.EcmaError:
> TypeError: Cannot call method "createEvent" of null
> (build/runtest/env.js#29)
>         at
> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3343)
>         at
> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3333)
>         at
> org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3349)
>         at
> org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3368)
>         at
> org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3387)
>         at
> org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2026)
>         at
> org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3080)
>         at script(build/runtest/env.js:29)
>         at script.makeRequest(build/runtest/env.js:650)
>         at
> org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2393)
>         at
> org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
>         at
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
>         at
> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
>         at
> org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
>         at org.mozilla.javascript.Context.call(Context.java:548)
>         at
> org.mozilla.javascript.JavaAdapter.callMethod(JavaAdapter.java:507)
>         at adapter1.run(<adapter>)
>         at java.lang.Thread.run(Unknown Source)
> 
> why it happend? help me. thanks
> 

-- 
View this message in context: 
http://www.nabble.com/window.location-%3D-%27test-index.html%27--error-tp21198825s27240p21199343.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to