S
stefanomarge
This is my javascript function:
function check_update(subCheked){
document.getElementById('pleasewaitScreenTop').style.visibility="visible";
var formLength = document.form1.elements.length;
for(var c = 0; c < formLength; c++){
var searched = document.form1.elements[c].name;
if(document.form1.elements[c].type != "hidden"){
//do something
}
}
if(indError != 0){
document.getElementById('pleasewaitScreenTop').style.visibility="hidden";
}
return ret;
}
this is my html code
<div id="pleasewaitScreenTop" class="waiting">
<img src="../img/loading.jpg" />
</div>
1) The "loading.jpg" img appear on my page just at the end of
"check_update function" execution.
I want the image appear immediately when the "check_update function"
beginning to run.
2) Also, can I reduce the "document.form1.elements[c]" array to have
the same array just with not hidden type elements?
Could someone help me?
Thanks
function check_update(subCheked){
document.getElementById('pleasewaitScreenTop').style.visibility="visible";
var formLength = document.form1.elements.length;
for(var c = 0; c < formLength; c++){
var searched = document.form1.elements[c].name;
if(document.form1.elements[c].type != "hidden"){
//do something
}
}
if(indError != 0){
document.getElementById('pleasewaitScreenTop').style.visibility="hidden";
}
return ret;
}
this is my html code
<div id="pleasewaitScreenTop" class="waiting">
<img src="../img/loading.jpg" />
</div>
1) The "loading.jpg" img appear on my page just at the end of
"check_update function" execution.
I want the image appear immediately when the "check_update function"
beginning to run.
2) Also, can I reduce the "document.form1.elements[c]" array to have
the same array just with not hidden type elements?
Could someone help me?
Thanks