Subj : rhino bug? set form element name property To : netscape.public.mozilla.jseng From : dslevine Date : Thu Feb 03 2005 04:50 pm Either a bug or unimplemented feature, I think. I am trying to set the "NAME" property of a hidden for field. this JS:
I am trying to run this with Ant/HttpUnit and Jelly/Jameleon clicking on a link that triggers "javascript:dologin('blah')", and in both cases I get a similar error: java.lang.RuntimeException: No such property: name Any thoughts? Thank you for any and all replies! Dan For HttpUnit, I get the following stack trace: java.lang.RuntimeException: No such property: name at com.meterware.httpunit.scripting.ScriptableDelegate.set(ScriptableDelegate.java:99) at com.meterware.httpunit.FormControl$Scriptable.set(FormControl.java:391) at com.meterware.httpunit.TextFormControl$Scriptable.set(FormControl.java:795) at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.put(JavaScript.java:275) at org.mozilla.javascript.ScriptableObject.putProperty(ScriptableObject.java:1476) at org.mozilla.javascript.ScriptRuntime.setProp(ScriptRuntime.java:842) at org.mozilla.javascript.gen.c31.call(httpunit:13) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c33.call(httpunit:0) at org.mozilla.javascript.gen.c33.exec(httpunit) at org.mozilla.javascript.Context.evaluateReader(Context.java:820) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.evaluateScriptExpression(JavaScript.java:186) at com.meterware.httpunit.scripting.ScriptableDelegate.evaluateExpression(ScriptableDelegate.java:74) at com.meterware.httpunit.WebWindow.getResource(WebWindow.java:167) at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:128) at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:121) at com.meterware.httpunit.WebWindow.sendRequest(WebWindow.java:110) at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:253) at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:232) at com.meterware.httpunit.WebLink.click(WebLink.java:98) .... .