[thelist] testing for empty in javascript or vbscript

Chris W. Parker cparker at swatgear.com
Tue Jul 16 11:46:01 CDT 2002


> -----Original Message-----
> From: Marc Seyon [mailto:seyon at delime.com]
>
> Message from Tom Dell'Aringa (7/15/2002 05:17 PM)
> >Actually, no - this should work, thanks to JS loose types. Do this in
> >a blank document.
> >
> ><script>
> >i = 2
> >zip = "zip" + i;
> >document.write(zip)
> ></script>
> >
> >change i to whatever you want. You will get zip2 or whatever number
> >you input.
>
> You will get "zip1" or "zip2" as a string.

that is exactly what i meant. you will get a string and not a variable.



More information about the thelist mailing list