Posted on Saturday 5th January 2008 at 03:47 PM | |
gbt91 Junior Member |
Hey Guys i have a problem with this code!! [CODE] function LoginStatus(Status) { if(Status == 1) alert("User not found."); else if(Status == 2) alert("User not verified."); else if(Status == 3) alert("Login in progress..."); else if(Status == 4) alert("Password doesnt match"); } [/CODE] Can someone help me ..i want to reload the page when status==3.. any idea? |
Posted on Saturday 5th January 2008 at 04:51 PM | |
DanielXP Senior Member |
Code function LoginStatus(Status) { if(Status == 1) { alert("User not found."); } else if(Status == 2) { alert("User not verified."); } else if(Status == 3) { alert("Login in progress..."); location.reload(true); } else if(Status == 4) { alert("Password doesnt match") }; } |
Posted on Tuesday 8th January 2008 at 05:47 PM | |
gbt91 Junior Member |
nice Daniel... anyway instead of location.reload i put this [CODE] function LoginStatus(Status) { if(Status == 1) alert("Utente Non trovato."); else if(Status == 2) alert("Utente Non Verificato."); else if(Status == 4) alert("Password/Utente Non Corretto"); else if(Status == 3) window.location.reload(); alert("Login in corso..."); } [/CODE] |