Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 138
0 Users 3 Guests Online
Forum Index » Javascript » Help Needed
Posted on Saturday 5th January 2008 at 03:47 PM
gbt91
templates/default/images/noavatar.png's Avatar
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
avatars/1.png's Avatar
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
templates/default/images/noavatar.png's Avatar
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]