Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disable submit button after clicking...

Status
Not open for further replies.

Roel018

Programmer
Jun 12, 2002
30
NL
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...



 
Yep !!! It works fine now ;)

Muchos gracias amigo !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top