hi all, im having trouble getting through all of this if statement block in firefox. the internet explorer code works. here is the firefox version first:
function disbleTextButton(_varButtonId, _varNewText) {
if(browserType() == "Netscape"){
for (i = 0; i < document.updateForm.getElementsByTagName('*').length; i++) {
obj = document.updateForm.elements;
if (obj.tagName == "INPUT") {
if (obj.type == "image") {
if (obj.name == _varButtonId) {
alert(obj.src);
break;
}
}
}
}
}
i want to get to the alert but cant. the IE explorer code works perfectly. here it is.
for (i = 0; i < document.updateForm.all.length; i++) {
obj = document.updateForm.all;
if (obj.tagName == "INPUT") {
if (obj.type == "image") {
if (obj.name == _varButtonId) {
alert(obj.src);
break;
}
}
}
}
any help would be great.
function disbleTextButton(_varButtonId, _varNewText) {
if(browserType() == "Netscape"){
for (i = 0; i < document.updateForm.getElementsByTagName('*').length; i++) {
obj = document.updateForm.elements;
if (obj.tagName == "INPUT") {
if (obj.type == "image") {
if (obj.name == _varButtonId) {
alert(obj.src);
break;
}
}
}
}
}
i want to get to the alert but cant. the IE explorer code works perfectly. here it is.
for (i = 0; i < document.updateForm.all.length; i++) {
obj = document.updateForm.all;
if (obj.tagName == "INPUT") {
if (obj.type == "image") {
if (obj.name == _varButtonId) {
alert(obj.src);
break;
}
}
}
}
any help would be great.