...

View Full Version : var



petergr
05-27-2004, 04:20 PM
In my code I have this:


document.forms[0].submit();
setTimeout("close(self)",1000);

And it works fine
I need to put var instead of 1000, like this:


function fsubmit() {
var Tval = 1000;
document.forms[0].submit();
setTimeout("close(self)",TVal);
}

And it stops work... What should be done to make it work???
Thank you....

petergr
05-27-2004, 04:27 PM
O, I have found what was wrong... JavaScript is case sensitive ... :)

Rex
05-27-2004, 04:28 PM
Hello Petergr -

(Edited) I was too late with my reply :)

- Rex



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum