Right here we go FireFox has now a new version which is out as well as Microsoft IE7
In the coding side of things for a IE7
form
<form onSubmit="return checkrequired(this)">
Inside main body
script>
function checkrequired(which){
var pass=true
if (document.images){
for (i=0;i<which.length;i++){
var tempobj=which.elements[i]
if (tempobj.name.substring(0,=="required"){
if (((tempobj.type=="text"||tempobj.type=="textarea") &&tempobj.value=='')||(tempobj.type.toString().cha rAt(0)=="s"&&tempobj.selectedIndex==-1)){
pass=false
break
}
}
}
}
if (!pass){
alert("One or more of the required elements are not completed. Please complete them, then submit again!")
return false
}
else
return true
}
</script>
On Submit return IE7 will work with the coding as FireFox wont! any clue for the new coding to work for both IE7 and FireFox
In the coding side of things for a IE7
form
<form onSubmit="return checkrequired(this)">
Inside main body
script>
function checkrequired(which){
var pass=true
if (document.images){
for (i=0;i<which.length;i++){
var tempobj=which.elements[i]
if (tempobj.name.substring(0,=="required"){
if (((tempobj.type=="text"||tempobj.type=="textarea") &&tempobj.value=='')||(tempobj.type.toString().cha rAt(0)=="s"&&tempobj.selectedIndex==-1)){
pass=false
break
}
}
}
}
if (!pass){
alert("One or more of the required elements are not completed. Please complete them, then submit again!")
return false
}
else
return true
}
</script>
On Submit return IE7 will work with the coding as FireFox wont! any clue for the new coding to work for both IE7 and FireFox
Comment