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

    Smile Validation form does not seem to work. Boolean or variable?

    Hello fellow programmers,

    I am having some trouble with my javascript doing what I want it to, which is returning values (true/false || 1/0).

    I haven't used much javasript but I am experienced with C#, Java, Python etc so this is sort of new to me syntax wise.

    Here is what I have so far:
    http://jsfiddle.net/HpSyJ/1/

    note: for some reason css doesn't like jsfiddle :S, the error messages are hidden in my Notepad++ & firefox combo though

    Really all I want is when I hit submit, it runs an alert or changes the error message to visible.

    Can someone please have a quick read over and see if anything jumps out at them?

    Thanks in advance, Andrew
    Last edited by andrewG; 04-18-2011 at 06:47 AM. Reason: had to add note

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,730
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Line 21 - syntax error.
    Line 192 - object does not support this method

    It is your responsibility to die() if necessary….. - PHP Manual
    Last edited by Philip M; 04-18-2011 at 07:43 AM.

  • #3
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    line 21 I counted as
    Code:
    return false;
    i didn't know there was 192 lines could you paste what line that is?

    also what do you mean by your last statement?

    I don't Get() it :P

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,730
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Quote Originally Posted by andrewG View Post
    line 21 I counted as
    Code:
    return false;
    i didn't know there was 192 lines could you paste what line that is?

    also what do you mean by your last statement?

    I don't Get() it :P

    That's what my browser says. I don't plan to wade through the 768 lines of code myself.
    Have you tried using your error console?

    The quote in blue is a joke, OK?
    Last edited by Philip M; 04-18-2011 at 09:05 AM.


  •  

    Posting Permissions

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