[thelist] [js] Arg! No fireEvent() on IE5.0?

Jeff Howden jeff at jeffhowden.com
Wed Jul 30 00:40:50 CDT 2003


mark,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Mark M
>
> Had a fireEvent("onchange") happening on a select box
> with no issues.
>
> That was, until a user with IE 5.0 came along.
>
> Little did I realise that firevent didn't get
> implemented until 5.5.
>
> So!
>
> Anyone know a way I can let off a 'onChange' event
> without calling 'fireEvent'?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

short of the obvious:  <select onchange="myFoo()"> ???

if not, what about:

oSelect = document.getElementById('mySelect');
oSelect.onchange = function()
{
  myFoo();
}

alternatively, you could change your function to not really on the event
object (i'm assuming that's the need for the fireEvent() function).

more details please.

thanks,

.jeff

——————————————————————————————————————————————————————
Jeff Howden - Web Application Specialist
Résumé - http://jeffhowden.com/about/resume/
Code Library - http://evolt.jeffhowden.com/jeff/code/




More information about the thelist mailing list