View Full Version : using special characters as function arguments

02-21-2003, 01:26 AM
Hi all,
I am bit tired with javascript programming as i have very little knowledge about it.
coming to the point i just have one text box which i generated through a cgi program calling an onblur function. following is the syntax of that box
<INPUT NAME= ""http://www.hotmail.com&?ppp" TYPE = TEXT VALUE = "151" SIZE=4 MAXLENGTH = 4 onBlur="HelloWorld(document.validation.http://www.hotmail.com&?ppp)">

sorry to keep the name as illogical but i wanted to show you what i am doing. i need it by this way.
the page comes up with javascript error giving some :mad: exceptions.
can anyone help me out in doing this??????

02-21-2003, 02:56 AM


but I recommend you to use simple names.
just curious, why do you name your fields like that?

02-21-2003, 07:29 AM
BINGO thats stud answer glenn.....
it worked ...
Thanks a lot. I had to complete this module by today.

we are using a s/w called windchill for Product Data Management, which stores each object in database with unique object id. that unique object id has all of these funny stuffs in it. i want to validate the values on the client side. for validating each value we need its object type (which contains url, special character, object id everything). if it is one text value we can hardcode it but its going to be in tens and thousands so we had to find a dynamic way building a javascript.

Thanks glenn...