A
andreas.maurer1971
Hi everybody,
I nearly get despaired of the fact that the events I chose and,
according to the MSDN site, are correct, don't fire reliable in IE6.
Is someone able to tell me, which events I can use for the following
situation?
I have a <select> list with dynamically generated options. Latest when
I have changed the (pre-) selected option and loose the focus of the
select-list I want to run a function to find out about the newly
selected option and act accordingly.
I tried the events onblur = somefunction(), onfocus = somefunction(),
onselect = somefunction() and even onselectstart = somefunction() and
used them like follows:
<SELECT ID="IDNAME" SIZE="1" ONFOCUS="somefunction()"
ONBLUR="somefunction()"></SELECT> in nearly every combination, e.g.
only onfocus or combined as above and with and without the "" around
somefunction().
Unfortunately with neither event somefunction() gets called.
Please note that the solution only has to work in IE6 and not in other
browsers.
Thank you very much in advance,
Andy
I nearly get despaired of the fact that the events I chose and,
according to the MSDN site, are correct, don't fire reliable in IE6.
Is someone able to tell me, which events I can use for the following
situation?
I have a <select> list with dynamically generated options. Latest when
I have changed the (pre-) selected option and loose the focus of the
select-list I want to run a function to find out about the newly
selected option and act accordingly.
I tried the events onblur = somefunction(), onfocus = somefunction(),
onselect = somefunction() and even onselectstart = somefunction() and
used them like follows:
<SELECT ID="IDNAME" SIZE="1" ONFOCUS="somefunction()"
ONBLUR="somefunction()"></SELECT> in nearly every combination, e.g.
only onfocus or combined as above and with and without the "" around
somefunction().
Unfortunately with neither event somefunction() gets called.
Please note that the solution only has to work in IE6 and not in other
browsers.
Thank you very much in advance,
Andy