using setTimeout when using prototype
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

using setTimeout when using prototype

From: James Black <planiturthian@gmail.com>
Date: Tue Jan 31 2006 - 17:44:07 CET

I have an object, and I define the following:
var processForm=new Object();

processForm=function(inservleturl) {
        this.inservleturl = inservleturl;
        this.submitForm();
}

        processForm.prototype.submitForm2=function() {
        }

        processForm.prototype.submitForm=function() {
               setTimeout("submitStep2()", 20);
        }

How can the submitForm function's setTimeout call submitStep2?

Thank you.
Received on Tue Feb 7 21:28:58 2006