From: Erskine, C. <chr...@ed...> - 2004-10-09 13:13:41
|
I was getting entries like 2004-10-08 15:57:47,004 DEBUG js.log - Now build JS function function GargoyleWrapper1223() {printOn() } repeatedly. The print on function is called from inline script code (not buried in an function). function printOn() { if (parent.topFrame != null) { if(parent.topFrame.document.readyState != 'complete') { setTimeout('printOn()', 500); return; } parent.topFrame.topPrintOn(); } } This function not finding the readyState since it is currently not modeled in htmlUnit so it generated and a new wrapper for the setTimeout function. Because of the code, the function was being called every half second to recreate itself. 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: Mike Bowler [mailto:mb...@Ga...] Sent: Friday, October 08, 2004 8:07 PM To: htm...@li... Subject: Re: [Htmlunit-user] Javascript error Erskine, Chris wrote: > I have found that is the only way to debug javascript. My problem is that I > need to find what code is wrapped in GargoyleWrapper15 to find where I have > to start putting my alerts. Code only gets put in a wrapper if it was specified in an event handler (onload, onsubmit etc) or a javascript url. Hopefully there aren't that many of those in the code you're looking at. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |