Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    using special characters as function arguments

    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 exceptions.
    can anyone help me out in doing this??????

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,042
    Thanks
    0
    Thanked 251 Times in 247 Posts
    try:

    onBlur="HelloWorld(document.validation.elements['http://www.hotmail.com&?ppp'])">

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

  • #3
    New to the CF scene
    Join Date
    Feb 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    that worked glenn

    BINGO thats stud answer glenn.....
    it worked ...
    Thanks a lot. I had to complete this module by today.

    Reason.
    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...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •