[thelist] Stupid JS: Working with radio buttons
Peter-Paul Koch
gassinaumasis at hotmail.com
Tue Aug 20 15:00:07 CDT 2002
Sorry, the solution in my previous mail won't work because there still isn't
any array sSize. Do
>---------------------------------------------------------
>function calc() {
> var limit = document.productForm.sSize.length;
if (!limit) {
var formSize = (document.productForm.sSize.checked) ?
document.productForm.sSize.value : 0;
}
else {
> for (i=0;i<limit;i++) {
> if (document.productForm.sSize[i].checked) {
> var formSize = document.productForm.sSize[i].value;
> }
> }
}
> popupWin =
>window.open('/products/calc.asp?sSize='+formSize,'Price_Calculator','wid
>th=400,height=300')
>}
>---------------------------------------------------------
ppk
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
More information about the thelist
mailing list