Re: Problem with script that works in IE but not in Firefox



"Paul van Coller" wrote:
function DisableButton() {
document.forms[0].submit();
window.setTimeout("disableButton('" + window.event.srcElement.id +
"')", 0);
}

function disableButton(buttonID) {
document.getElementById(buttonID).disabled=true;
}

In IE it works great, but for some reason my code won't go past the second
line of the first function when I run the first function in Firefox.

There is still a wide difference between IE and Gecko when it comes to binding events. Take a look here for the Mozilla event reference:
http://developer.mozilla.org/en/docs/DOM:event



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms.

.


Loading