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: anthony at chovy.com (Anthony Ettinger)
- Subject: [Javascript] Radio button Event seems to "lag" in IE
- Date: Thu May 10 17:25:21 2007
I didn't test this, but it would seem to me you can re-calculate with "onchange" event on dollar input and radio buttons. to get the new term selected: var number_of_years = document.forms['myForm'].rad125PaymentSchedule.value; On 5/10/07, Glenn E. Lanier, II <glenn_lanier@xxxxxxxxxxx> wrote: > 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 > > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript > -- Anthony Ettinger Ph: 408-656-2473 http://chovy.dyndns.org/resume.html http://utuxia.com/consulting
- References:
- [Javascript] Radio button Event seems to "lag" in IE
- From: Glenn E. Lanier, II
- [Javascript] Radio button Event seems to "lag" in IE
- Prev by Date: [Javascript] Radio button Event seems to "lag" in IE
- Next by Date: [Javascript] Radio button Event seems to "lag" in IE
- Previous by thread: [Javascript] Radio button Event seems to "lag" in IE
- Next by thread: [Javascript] Radio button Event seems to "lag" in IE
- Index(es):