![]() Topic awaiting preservation: Calling a function from within a function? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() Ok - I think I've just been in the sun a little too long.... |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() Well, I can't show the whole page - it's HUGE (and secured). But here is some more: |
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() I suspect that since you're passing numbers, and using |
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() Yeah, that's what it was. I just called the function with a quoted value, and PRESTO! it worked. And actually, it WAS working - it was taking the default value of the switch, which was leaving the form fields blank. That's why I wasn't getting an error..... |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() If I were you, instead of calling it with a string, I'd change the cases to numbers. Because if it's >1 or < 5, it'll be converted to a number anyway, and then you might have trouble. |
Paranoid (IV) Inmate From: Dublin, Ireland |
![]() thats kinda weird. In the good few years Ive been using JS , I never knew you could use switch ! |