[Javascript] IE radio buttons don't fire the onchange event

Marcelo Wolfgang grillo at gmail.com
Wed Aug 30 13:16:23 CDT 2006


Hi John,

I've tried removing the div's but IE still doesn't respond to the
first click on the radio input, only for the second one.

if I change the onchange="updateTotal(this)" to
onchange="alert(this)", it trace this = [object, also with
onchange="alert(this.value)" it trace the radio value, so I think the
this object I'm using is correct.

But I can't still figure out why it isn't firing the event when it
should, and only on the second click ( which is a lot weirder ).

Any clues ?

TIA
Grillo

On 8/30/06, John Warner <john at jwarner.com> wrote:
> Your 'this' object appears seems to be the div tag rather then the radio
> button when it arrives at the update(obj) function.
>
> As an experiment remove the div tags around a couple of the radio
> buttons and see what happens.
>
> John Warner
>
>
> > -----Original Message-----
> > From: javascript-bounces at LaTech.edu
> > [mailto:javascript-bounces at LaTech.edu] On Behalf Of Marcelo Wolfgang
> > Sent: Wednesday, August 30, 2006 12:46 PM
> > To: javascript at latech.edu
> > Subject: [Javascript] IE radio buttons don't fire the onchange event
> >
> >
> > Hi list,
> >
> > I'm working on a web page that has some radio buttons with a
> > onchange event, that is acting weird, and I need some advice
> >
> > They work fine in Firefox, but in IE they only fire after
> > there's another click on the page, something like this:
> >
> > - click in one radio (nothing happens)
> > - click anywhere on the page, may be another radio, or the
> > background, the event is fired
> >
> > the page in question is :
> >
> http://work.grillo.tk/gaiolla/checkout_shipping.html
>
> Thanks for any advice.
> Grillo
> _______________________________________________
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>



More information about the Javascript mailing list