Announcement Announcement Module
Collapse
No announcement yet.
IE8/jQuery Not Playing Ball Page Title Module
Move Remove Collapse
Search Search Module
Collapse

Advertisement Advertisement Module
Collapse

Featured Images Featured Images Module
Collapse

Mediabistro Creative Sites Mediabistro Creative Sites Module
Collapse
Latest Topics Latest Topics Module
Collapse

  • KitchWitch
    Reply to Critique for my own logo.
    KitchWitch
    Hi Farmgeek and welcome to GDF.

    We ask all new members to read very important links here and here. These explain the rules, how the forum runs and a few inside jokes. No, you haven't done...
    Today, 04:38 AM
  • KitchWitch
    Reply to Illustrator CS6 - hide / remove part of a circle
    KitchWitch
    Hi Juc1 and welcome to GDF.

    We ask all new members to read very important links here and here. These explain the rules, how the forum runs and a few inside jokes. No, you haven't done anything...
    Today, 04:37 AM
  • KitchWitch
    Reply to Becoming a freelance graphic designer after studying architecture?
    KitchWitch
    Hi Roksraka and welcome to GDF.

    We ask all new members to read very important links here and here. These explain the rules, how the forum runs and a few inside jokes. No, you haven't done...
    Today, 04:36 AM
  • Flipkidh
    Reply to Phone Skin
    Flipkidh
    Thank you all for your concern about the copyright, but that's not the help I was looking for. Besides, this is actually for personal use. I came to this forum to find a perspective on the Art and design,...
    Today, 03:25 AM
  • farmgeek
    Critique for my own logo.
    farmgeek
    Howdy all! I'm a newb designer and GDFer. Thank you for an awesome forum and resource.

    I'm so far self-taught, or should I say... self-learning. I get a small job here and there and am...
    Today, 02:19 AM
Advertisement Advertisement Module
Collapse

Sponsors Sponsors Module
Collapse

X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • IE8/jQuery Not Playing Ball

    Code:
    $("#submitButton").click(function(){
      $.post("/dosomething.php",
             {action:"go",email:$("#email").val()},
             function(html){ alert(html); },
             "html");
      return false;
    })
    The 'dosomething.php' script returns '1' on success, or an error message on failure (for example, 'Invalid email address'.) However when the script is going to return '1' (ie. it succeeds) IE8 ignores the 'return false;' line and sends the visitor to the script directly... any ideas why this would be? Doesn't happen in anything else I've tested

  • #2
    The only help I can offer is that you should be using the .submit() function on the form element, not a click function on the submit button.

    http://docs.jquery.com/Events/submit

    Other than that, I'm not really sure what you're doing. Why validate the form with PHP?

    There are loads of jQuery validation plugins (scripts) out there.
    Last edited by vanishdesign; 09-15-2009, 03:58 PM.
    Swedish Meatball Pornography

    Comment


    • #3
      Dah, sometimes I really should RTFM. That fixed the issue, all works perfectly now, thanks a lot

      (And I'm using PHP for compatibility; I'll add some pretty client-side validation later...)

      Comment

      Mediabistro A division of Prometheus Global Media home | site map | advertising/sponsorships | careers | contact us | help courses | browse jobs | freelancers | content | member benefits | reprints & permissions terms of use | privacy policy Copyright © 2014 Mediabistro Inc.
      Working...
      X