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

  • Kayekaye
    Comment on Seeking critiques
    Kayekaye
    Try a thin rule circle for the sun inside the diamond like sun points. Would have to be heavier the smaller it went. But currently I find very few black only demands for logos like yours. You can always...
    Today, 08:49 PM
  • salsa
    Reply to Happy Last Friday of July!!!!
    salsa
    Happy Friday! I'm going to have to go back and find some of these threads! LOL. How do I miss them? Is there a secret passageway to where all the good stuff is kept? It feels like high school all over...
    Today, 08:31 PM
  • Cosmo
    Comment on Please help with company logo
    Cosmo
    There is way too much going on. Think about that logo the size it needs to be on a business card. Will you still be able to make out all the different elements? Simplify, simplify, simplify.
    ...
    Today, 08:28 PM
  • Cosmo
    Comment on Please help with company logo
    Cosmo
    We are telling you what needs to be done to fix the problem. Unfortunately it's not as simple as "this wire has come loose" or "replace the motor".

    When a client comes...
    Today, 08:26 PM
  • kemingMatters
    Comment on Company name help!
    kemingMatters
    CrE8v spelling for the sake of KrE-8f spelling isn't a distinction it's confusion, it's a business name not a personalized license plate.
    Today, 08:05 PM
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, 02: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

       
      home | site map | advertising/sponsorships | about us | careers | contact us | help courses | browse jobs | freelancers | events | forums | content | member benefits | reprints & permissions about | terms of use | privacy policy | Copyright © 2014 Mediabistro Inc. Mediabistro Inc. call (212) 389-2000 or email us
      Working...
      X