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

  • jessica21
    Steampunk Tea Brand Logo Critique- Trying to choose final concept
    jessica21
    Hello All,

    Background:
    I am making a logo for my boyfriend's tea company, Starlight Tea. It sells high quality loose leaf tea, will have a website, and be in a local cafe (it's more...
    Today, 05:52 AM
  • Buda
    How to cut down on meetings?
    Buda
    I have a client who I am going to design a book for. I met with her about 4-5 months ago to discuss. She emails me each month to tell me she hasn't advanced any further on the project. She's been overseas...
    Today, 05:25 AM
  • skribe
    Reply to Crisp web graphics, how?
    skribe
    It sounds to me like you are hitting a retina issue. When I look at your site the graphics look fine to me on my 25" monitor. I just googled "SquareSpace Retina Support" and quickly...
    Today, 05:24 AM
  • Buda
    Reply to First job out of college, totally overwhelmed and need advice
    Buda
    I have to add, please ask questions if you are unsure. Even confirmation is good so that you know you are on track.

    I have a junior designer that never asks questions. He just battles through...
    Today, 04:38 AM
  • Buda
    Reply to Crisp web graphics, how?
    Buda
    I agree with b, make the images the size you require, then save for web choosing a fairly high setting if that is important to you.
    Today, 04:34 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

       
      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