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

  • kemingMatters
    Reply to [ Logo Critique ] Period or not at the end of the tagline?
    kemingMatters
    I also vote keep it BUT I think you should consider bumping it down a few point sizes to soften it's intensity a bit.

    I would also suggest you revisit the kerning and consider joining some...
    Today, 01:26 PM
  • monica100
    Reply to Photos and banner ads...
    monica100
    I thing photoshop is the best tool. You must to save pictures as jpeg or png with the final resolution and then you must to use a tool to reduce image size like optimizesuite.


    Enj...
    Today, 11:43 AM
  • DanCMU
    Reply to [ Logo Critique ] Period or not at the end of the tagline?
    DanCMU
    The period, to me, makes it more of an assertion rather than a suggestion. I know that's not what that's used for (technically speaking) but it makes it pack a little more punch.

    I vote to...
    Today, 11:03 AM
  • PrintDriver
    Reply to Dissertation topic
    PrintDriver
    What's a selfie?
    Just kidding.
    Narcissistic for the most part, more fleeting than a hashtag in general, and somehow people think they can make social statements with them. Society has become...
    Today, 10:48 AM
  • <b>
    Reply to How to choose a scanner?
    <b>
    I agree, the Canoscan is a good scanner -- especially for the price. I've bought a couple of Epson Perfection V700 Photo Scanners for work, and would do so again if they're still made. They've been very...
    Today, 03:54 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, 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

      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. call (212) 389-2000 or email us
      Working...
      X