From: Berg Klaus-P. <kla...@si...> - 2004-09-16 13:42:57
|
Hi all, I'm using htmlunit-1.2.3 with js-1.5R4.1.jar. Newer versions of the Rhino engine seem not to be compatible with this htmlunit release. Loading a page generated by the Liferay portal server I got an ECMA-error: EcmaError: lineNumber=[155] column=[0] lineSource=[ setInterval("blink()", 750);] name=[ReferenceError] sourceName=[/html/js/util.js] message=["setInterval" is not defined.] errorObject=[ReferenceError: "setInterval" is not defined.]com.gargoylesoftware.htmlunit.ScriptException: "setInterval" is not defined. at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:250) because there is really no definition for the setInterval(..) function in the js file mentioned above. Nevertheless, the only place where this function is called is in a conditional statement: if (document.all) { setInterval("blink()", 750); } InternetExplorer has no problems with the page and the js file, so has anyone an idea how to disable ECMA checking in htmlunit, otherwise it seems that I will not be able to load the Liferay page successully with this framework... --Klaus Software development is fundamentally hard. -- Grady Booch |