Hi all,
I'm trying to call a function and to disable the submit button all at the same time and still having the form been submitted..
I use onclick="doShowLoading();this.disabled=true;" in my button, and this workd perfectly in Firefox, however, IE refuses to continue submitting the form .. it does call the function properly and does disable the button but then it all stops and the form is not submitted.. :S..
Does anyone know why ???
I call this function:
function doShowLoading(){
if (document.layers){
document.layimage1.visibility="show"
return(true);
}
else if(document.all||document.getElementById){
(document.getElementById)?
nct=document.getElementById("docimage")
: nct=document.all.docimage
nct.style.visibility="visible";
return(true);
}
}
All I want is IE to continue submitting the form while still calling the function and while still disabling the button...
I'm trying to call a function and to disable the submit button all at the same time and still having the form been submitted..
I use onclick="doShowLoading();this.disabled=true;" in my button, and this workd perfectly in Firefox, however, IE refuses to continue submitting the form .. it does call the function properly and does disable the button but then it all stops and the form is not submitted.. :S..
Does anyone know why ???
I call this function:
function doShowLoading(){
if (document.layers){
document.layimage1.visibility="show"
return(true);
}
else if(document.all||document.getElementById){
(document.getElementById)?
nct=document.getElementById("docimage")
: nct=document.all.docimage
nct.style.visibility="visible";
return(true);
}
}
All I want is IE to continue submitting the form while still calling the function and while still disabling the button...