Forum Moderators: open

Message Too Old, No Replies

Explorer checkbox onChange problem

the event is triggered too late

         

orhor

5:22 pm on Jul 7, 2005 (gmt 0)

10+ Year Member



Hi, I have a strange problem with checkbox onChange behavior. This checkbox is displayed in iframe and was created dynamicly via innerHTML method. On the checkbox is applied onChange. In Firefox everything works OK. In Explorer not: When I click on the checkbox and the checkbox becomes unchecked nothing happens (I have only one alert() in the function which is triggered by the onChange). The alert window appears as late as I click somewhere (anywhere) in the iframe.

Is it normal? Have you heard something about this? Any message appreciated. Thank you.

ChadSEO

6:25 pm on Jul 7, 2005 (gmt 0)

10+ Year Member



You could try using the onClick event, instead of onChange. I've had more luck with this in the past, since, as you've noticed, different browsers trigger the onChange event at different times.

orhor

6:30 pm on Jul 7, 2005 (gmt 0)

10+ Year Member



I thought about it, I'll try something like this, thanks. But it's gonna be a bit of coding, cos I really need to watch if the status of the box changed... :-)