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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Don't know what went wrong ..just simple

    I have a question ... I wanna do if and else in javascript ...simple eh?
    But my problem is ...
    It doesn't go into the statement ..
    and when I put else .. it gave me syntax error too ...
    below is the thing I wanna do
    Code:
    If (isNaN(thenumber))
        	window.alert(isNaN(thenumber));
    when i comment the If ...
    the window alert display true ...but why it didn't just go in ...
    another thing is the when I wanna do else..didn't know why the editor giving me syntax error for the "else" ...
    I tried many ways to do it even putting the {} ..
    anyone has any idea?
    the editor I am using is Aptana Studio 3
    Thanks ...
    hope to get some ideas from anyone ..

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    JavaScript is case-sensitive.

    if(isNaN(thenumber))
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • Users who have thanked WolfShade for this post:

    slen (06-18-2012)


  •  

    Posting Permissions

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