A
Aaron Fude
Hi,
I've inherited this mechanism for logging in in a web application:
<form name="LoginForm" action="WillNotGoHere.jsp"
onSubmit="SubmitImage.src='LoginImage.jsp?Trigger='+pRandomString() +
'&Password='+LoginForm.Password.value;
setTimeout(window.location.reload(true), 500);" method="POST">
I think it's self-explanatory!
The problem is that setTimeout(window.location.reload(true), 500);
doesn't wait for half a second and instead reloads immediately
preventing the login mechanism from completing. (It does complete on
the server eventually, but too late.)
What gives?! and how to fix it?
Many thanks in advance!!!
I've inherited this mechanism for logging in in a web application:
<form name="LoginForm" action="WillNotGoHere.jsp"
onSubmit="SubmitImage.src='LoginImage.jsp?Trigger='+pRandomString() +
'&Password='+LoginForm.Password.value;
setTimeout(window.location.reload(true), 500);" method="POST">
I think it's self-explanatory!
The problem is that setTimeout(window.location.reload(true), 500);
doesn't wait for half a second and instead reloads immediately
preventing the login mechanism from completing. (It does complete on
the server eventually, but too late.)
What gives?! and how to fix it?
Many thanks in advance!!!