Subj : document.createElement... To : netscape.public.mozilla.jseng From : Jalpesh Patadia Date : Tue Sep 23 2003 06:36 pm I was using the HTTPUnit classes, (which in turn use rhino to execute javascript) to execute some jsp's containing javascript. I was getting an javascript error using in my pages, and the error is described below. It seems that createElement is not supported by the rhino classes. Basically I was trying to append new hidden input types to my form using javascript. Now this page seems to work fine using Mozilla 1.1 and higher, but rhino seems to be unhappy about it. On looking at the source code, it seemed that the createElement method is not yet supported - but I could be wrong. Has anybody ran into this problem ? If this is not solvable, is there a way around this ? Thanks, jalpesh. ========================================= TypeError: createElement is not a function. (httpunit; line 52) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:590) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:550) at org.mozilla.javascript.NativeGlobal.typeError1(NativeGlobal.java:560) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2188) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2173) at org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:62) at org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:55) at org.mozilla.javascript.Context.evaluateString(Context.java:781) at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.getURLContents(JavaScript.java:176) at com.meterware.httpunit.scripting.ScriptableDelegate.evaluateURL(ScriptableDelegate.java:73) at com.meterware.httpunit.WebWindow.getResource(WebWindow.java:165) at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:125) at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:118) at com.meterware.httpunit.WebWindow.sendRequest(WebWindow.java:107) at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:245) at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:224) at com.meterware.httpunit.WebLink.click(WebLink.java:90) at TypeManagementTestClass.testAddProperty(TypeManagementTestClass.java:122) .