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

Jeff Howden jeff at jeffhowden.com
Wed Jul 30 01:58:54 CDT 2003


mark,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Mark M
>
> This is the situation - I've got 3 select boxs.
>
> when 1st one changes - it changes values in the 2nd one
> when the 2nd one changes, it makes changes to the 3rd.
>
> 1, and 2 have onChange handlers to do this...
>
> so what should happen is:
>
> 1 gets clicked, on change fires, which changes 2, 2
> onChange fires, which then changes 3.
>
> Now - just by fiddeling with the objects collection
> within the select doesn't make the 'onChange' fire -
> hence the need for fireEvent.
>
> Does that make more sense?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

yes, immensely more sense.

i can certainly see your conundrum.  unfortunately, once you build a script
to rely on fireEvent(), you're pretty much locked into it unless you want to
take on the burden of rewriting the process to make it unnecessary.

you might be able to rig something with the onpropertychange event handler
which has support all the way back to ie5 on the select object.

http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onpropertyc
hange.asp

you'll want to give special attention to the propertyName property of the
event object.

good luck,

.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