Re: Problem with script that works in IE but not in Firefox
- From: "Dave Anderson" <NPQRWPDWZGSP@xxxxxxxxxxxxx>
- Date: Thu, 27 Sep 2007 09:56:16 -0500
"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.
.
- Prev by Date: Re: JavaScript - How to get an element by class name
- Next by Date: Re: change width of table with no id or class name...
- Previous by thread: Re: JavaScript - How to get an element by class name
- Next by thread: Re: change width of table with no id or class name...
- Index(es):
Loading