Form validation with jquery

Discussion in 'jQuery' started by sanyi007, Jan 16, 2011.

  1. #1
    Hi all!
    I'm just starting to learn jquery and javascript, as i need it for form validation. My question is: i copied the source of this jquery validation form the same as it was on the example page:

    My problem is that it is not working the same way at localhost, nor at cpanel hosting. Validation simply not happening (while on the example page it happens on the fly). I didn't modify anything in the example, so i am confused in here.

    Please help! Thanks for every answers!
     
    sanyi007, Jan 16, 2011 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It certainly works locally with Firefox. What browser are you using?
    Can you post what you copied? Something may have changed when it was saved.
     
    Cash Nebula, Jan 17, 2011 IP
  3. sanyi007

    sanyi007 Peon

    Messages:
    189
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi!
    I got the problem: The url to the validate plugin has changed (redirects to new url, but it seems that in that way jquery not working), but it is not mentioned on the example page:
    So that was the culprit! Changed the validate scripts url to the one mentioned above, and now everything works!
     
    sanyi007, Jan 17, 2011 IP
  4. fardesi

    fardesi Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hmmm why not store the file locally... that external URL is gona change at one point.
     
    fardesi, Jan 18, 2011 IP
  5. sanyi007

    sanyi007 Peon

    Messages:
    189
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yes, but i'm still just testing functionality, and learning the basics. (and thought that if the example page works on jquery documentation, there has to be something serious problem on my end because the same source was not working at localhost)
     
    sanyi007, Jan 19, 2011 IP
  6. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    srisen2, Feb 2, 2011 IP