SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Anybody have a clue why IE and Opera wont prevent this form from submitting?

    Anybody have a clue why IE and Opera wont prevent this form from submitting? http://goo.gl/YUtac

    If you click "Submit Form" in FX/Safari/Chrome it shows how it should work - it is supposed to prevent submission unless the spam question is filled out correctly. However IE/Opera only show the red error if you put a value in the input. But they still do not prevent submission. In IE/Opera it goes strait to the php validation. I have not a clue why this could be. If anyone has any ideas please do tell. Thank you!

    I am using the http://bassistance.de/jquery-plugins...in-validation/

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    If it helps, it seems that the custom google search part is responsible for the problem.

    Why? Because it creates another form, and forms within forms are according to HTML specs) strictly not allowed. The validator is inadvertently trying to get the settings for that google search form.

    Solution: Move the google search part outside of your existing form.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pmw57 View Post
    If it helps, it seems that the custom google search part is responsible for the problem.

    Why? Because it creates another form, and forms within forms are according to HTML specs) strictly not allowed. The validator is inadvertently trying to get the settings for that google search form.

    Solution: Move the google search part outside of your existing form.
    Thats it! Thank you very much. I had never noticed that before. Now to try and figure out how to move the form validly in that mess of tables...


Bookmarks

Posting Permissions

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