Hi, i have the following code, and can someone tell me why the buildLayout() function isn't called?
Any ideas??
Regards,
Martin
Computing Help And Info:
Code:
Early in the script is:
if(response == "Login Successful"){
to = setTimeout(showUpdate(),1000);
}
function showUpdate(){
document.getElementById("buildStatus").innerHTML = "Building Layout... Please Wait...";
clearTimeout(to);
//build layout for logged in users
setTimeout(buildLayout(),2000);
}
function buildLayout(){
document.getElementById("layoutStatus").innerHTML = "User Panel... Done!";
}
Regards,
Martin
Computing Help And Info: