Dear All,
I discovered last night that IE6 doesn't support the onchange event on
the form object. I had written some script in Firefox, and tested in
IE, and spent a long time trying to debug it, only to discover it is
not supported.
But I came up with a work around, which I post here for posterity:
Firefox version:
with( document.getElementById('myForm') )
{
onchange = function() { doMyStuff(); }
}
Internet Explorer version:
with( document.getElementById('myForm') )
{
for( var i = 0 ; length i ; i++ )
{
var element = elements[i];
element.priorfunc = element.onchange;
element.onchange = function()
{
var ret = true;
if( this.priorfunc )
{
ret = this.priorfunc();
}
doMyStuff();
return ret;
}
}
}
Hurrah!
Stewart
London, UK