Subj : HTTPUnit and Rhino: TypeError when HTML Form Action is a JavaScript To : netscape.public.mozilla.jseng From : murali_c@sella.it (Muralidharan) Date : Tue Mar 18 2003 09:40 am Hi, I'm trying to develop HTTPUnit tests for my (heavy) JSP application. There's a situation where I have this kind of form:
... ... The script checkValue goes like this: and is placed well within the same HTML file. During submission of this form, Rhino always throws this exception: "TypeError: undefined is not a function" com.meterware.httpunit.ScriptException: URL 'javascript:checkValue()' failed: TypeError: undefined is not a function. (httpunit; line 22) at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.handleScriptException(JavaScript.java:185) Any suggestions as to what may be the problem here? Since I'm new to Rhino I'm not quite familiar with the framework's code, any pointers could help. Thanks and Regards Murali .