Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Javascript (http://www.velocityreviews.com/forums/f68-javascript.html)
-   -   radiobuttons and events (http://www.velocityreviews.com/forums/t924030-radiobuttons-and-events.html)

sc 04-05-2006 12:17 PM

radiobuttons and events
 
Here'e the example:

http://tinyurl.com/k3pl7

Why events work so strange with radiobutons ? In that example above it works
as expected only in FireFox. How can I make it working in IE and Opera ?

Regards,
sc





RobG 04-05-2006 01:33 PM

Re: radiobuttons and events
 
sc wrote:
> Here'e the example:
>
> http://tinyurl.com/k3pl7
>
> Why events work so strange with radiobutons ? In that example above it works
> as expected only in FireFox. How can I make it working in IE and Opera ?


The onchange event is supposed to fire when the control's value has
changed *and* it loses focus. IE & Opera's behaviour is therefore
strictly correct but counter-intuitive. Firefox is the opposite.

The fix is to use onclick instead, for radio buttons it is effectively
the same.


--
Rob

Thomas 'PointedEars' Lahn 04-06-2006 02:04 AM

Re: radiobuttons and events
 
sc wrote:

> Here'e the example:
>
> http://tinyurl.com/k3pl7


Don't expect anyone to follow such URIs.


PointedEars


All times are GMT. The time now is 08:12 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.