From: Erskine, C. <chr...@ed...> - 2004-09-17 17:44:10
|
Since no one has bothered to respond to you on this (I am trying to also work on using the javascript), you can disable the javascript itself by using the line webClient.setJavaScriptEnabled(false); in your code. In looking at the documentation, it is looking like there are a number of objects that are still not implemented such as Buttons, Checkbox, Image and more. Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 Phone: mailto:chr...@ed... -----Original Message----- From: Berg Klaus-Peter [mailto:kla...@si...] Sent: Thursday, September 16, 2004 7:43 AM To: 'htm...@li...' Subject: [Htmlunit-user] How to disable ECMA-Errors in the JavaScript engine? 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 ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |