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

Latest Topics Latest Topics Module
Collapse

  • Mr.Mag00
    Reply to Gaussian blur changing with image size!
    Mr.Mag00
    There are holes in my knowledge. I am quite disorganized. I'm severely dyslexic... so when I run into a roadblock, I just do whatever I can to get around it... even if it means using something like...
    Today, 04:49 PM
  • PrintDriver
    Reply to I am here for business purposes.
    PrintDriver
    I'm curious what you do for business?
    Do you charge for your services and do you pay your employees a living wage?
    Think about that as you hire young designers that could use the money...they...
    Today, 01:21 PM
  • PanToshi
    Reply to I am here for business purposes.
    PanToshi
    Hi Chris and welcome to GDF.

    If you are looking to hire a graphic designer for your (paying) job, please post an ad in the classified section. Make sure to leave an email contact address,...
    Today, 10:48 AM
  • hbliss23
    Reply to Design Team Issue - How Should Tasks Be Handled?
    hbliss23
    Thanks for the responses! And my apologies for the huge block of text, I'm not sure why my phone doesn't add the line breaks automatically. But actually no, my work in this organisation is on a voluntary...
    Today, 07:59 AM
  • ChrisLF
    I am here for business purposes.
    ChrisLF
    Hi everyone my name is Christian. The reason why I have come to this forum is because I am a business owner with my mom currently owning two locations. The prices that we are being charged for on graphic...
    Today, 06:42 AM

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 © 2015 Mediabistro Inc.
      Working...
      X