[thelist] [js] Arg! No fireEvent() on IE5.0?
Mark M
mark.m at optushome.com.au
Wed Jul 30 06:55:06 2003
Jeff -
Sorry, I must have been unclear, because that misses the point completely.
I need to be able to programatically fire an onChange event within a script.
Hence using fireEvent in the first place.
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?
> Jeff Howden <jeff at jeffhowden.comrote:
>
>
> 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/
>
>
> --
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
-----------------------------------
mark at safefrombees.com
ICQ: 3094740
Safe From Bees
[www.safefrombees.com]
More information about the thelist
mailing list