B
Bartosz Wegrzyn
I wrote this function to validate the name.
//test name for illegal characters
var illegal = "0123456789!@#$%^&*()-=_+[]\{}|;':,./?><";
for (var i=0;i<strng.length;i++) {
temp = strng.substring(i,i+1);
if (illegal.indexOf(temp) != -1 && strng != "")
{
error = "The name contains illegal characters.\n";
}
How can I include " character in my 'illegal' string.
Are there any other ways to tell string 'illegal' to include only letters.
I am not familiar with this.
If you know any links plesase give it to me.
Thanks
//test name for illegal characters
var illegal = "0123456789!@#$%^&*()-=_+[]\{}|;':,./?><";
for (var i=0;i<strng.length;i++) {
temp = strng.substring(i,i+1);
if (illegal.indexOf(temp) != -1 && strng != "")
{
error = "The name contains illegal characters.\n";
}
How can I include " character in my 'illegal' string.
Are there any other ways to tell string 'illegal' to include only letters.
I am not familiar with this.
If you know any links plesase give it to me.
Thanks