Topic awaiting preservation: Calling a function from within a function? |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-09-2002 20:44
Ok - I think I've just been in the sun a little too long.... |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-09-2002 20:53 |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-09-2002 21:02
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 |
posted 07-09-2002 21:13 |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 07-09-2002 21:55
I suspect that since you're passing numbers, and using |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-09-2002 22:16
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 |
posted 07-09-2002 23:37
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 |
posted 07-12-2002 21:42
thats kinda weird. In the good few years Ive been using JS , I never knew you could use switch ! |