Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Radio button Event seems to "lag" in IE


  • From: john at jwarner.com (John Warner)
  • Subject: [Javascript] Radio button Event seems to "lag" in IE
  • Date: Thu May 10 18:00:49 2007

Seems to work OK for me in IE 7 (WinXP). I enter 10.00 select a button,
then click anywhere else on the page and the value is correct.

John Warner


> -----Original Message-----
> From: javascript-bounces@xxxxxxxxxx 
> [mailto:javascript-bounces@xxxxxxxxxx] On Behalf Of Glenn E. 
> Lanier, II
> Sent: Thursday, May 10, 2007 6:06 PM
> To: '[JavaScript List]'
> Subject: [Javascript] Radio button Event seems to "lag" in IE
> 
> 
> I have a sample page ( 
> http://www.lanierconsulting.net/js/radiotest/javascript1.html 
> ) that works wonderfully under FireFox 1.5. It allows you to 
> specify an amount, then select a number of years (listed as 
> radio buttons -- customer requirement vs. select). After 
> years are selected, it calculates total payment and displays 
> it. So, entering 10 dollars for 3 years means total payment is $30.
>  
> However, IE works differently. If I enter 10 in the amount 
> and select 2 years it calculates 10 dollars (1 year is 
> pre-selected). Then, if I select 4 years, the calculated 
> amount is 20. Navigating back to the amount field displays 
> the correct calculated amount.
>  
> I am calculating when the textbox and radio onChange event is 
> fired (which may be part of my problem -- is there another 
> event to attach to?) and I am determining the selected radio 
> button by 
>  
> document.getElementById('nameOfButton').checked
>  
> for each year.
>  
> Any guidance/critique is appreciated.
>  
> --G
> ________________________________
> Glenn E. Lanier, II | glenn_lanier@xxxxxxxxxxx