Re: window.setTimeout()

"Wolfgang Fahl" <[email protected]> Thu, 20 Aug 2009 14:04:57 +0200
Newsgroups gmane.comp.web.httpunit.devel
Organization BITPlan GmbH
Message-ID <[email protected]>
Brad,

you wrote:
> I filed a new feature request #2779750 it was a re-opening of an issue #775336 that had been automatically closed.
> 
> I'd like to get some pointers on how to implement this. I poked around in the code and added System.out.println()s to 
> 
> com.meterware.httpunit.dom.DomWindow.setTimeout(int).
> 
> But they never seemed to run. I added a method called setTimeout2 and test javascript to call it and it does seem to give a no method defined error if the method isn't defined in DomWindow, but once again I didn't see any output to the console. Do the methods in DomWindow actually get called when the javascript is executed? Is the console output being thrown somewhere I'm not looking?
Please supply a patch according to the httpunit-develop 
mailinglist FAQ.

Both JavaScript implementations have preparations for 
this.	
<html>
<head>
<script language="javascript">
function redirect()
{
self.location.replace('yahoo.html');
}
</script>
</head>
<body onload="window.setTimeout('redirect();',0);">
</body>
</html>

What we need is developers working on this ...

Yours
  Wolfgang

BITPlan - smart solutions
Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
Tel. +49 2154 811-480, Fax +49 2154 811-481
Web: http://www.bitplan.de
bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, 
Geschäftsführer: Wolfgang Fahl

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop