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

  • B
    Reply to Label Design sizing.
    B
    Where are you getting the 81.7mm figure? Are you thinking that the 80.3mm ± 1.5mm on the diagram should be the width of the label? If so, why are you thinking that? Do you want the label to wrap exactly...
    Today, 03:58 AM
  • Aquil_
    Reply to Label Design sizing.
    Aquil_
    Oops, guess I answered one of my own questions. That symbol means diameter lol
    Today, 02:58 AM
  • Aquil_
    Label Design sizing.
    Aquil_
    Hi guys! (and gals) These may seem like dumb questions, but I'm trying to develop my skills in design and I've been on a crowdsourcing site just messing around (not really intending to win) but I don't...
    Today, 02:28 AM
  • PrintDriver
    Reply to Hand Lettered Logo
    PrintDriver
    Do you have a reason for making some strokes on the R and the A so thin they become insignificant, and make the logo hard to read. Not having the serifs on the right side of the I make it look like part...
    Yesterday, 09:37 PM
  • DigitalFarmer
    Hand Lettered Logo
    DigitalFarmer
    In the process of building my portfolio I've took on some free work for family friends. One of the jobs was a logo for an odd boutique that sells the usual like clothes, fashion jewelry, etc. The unique...
    Yesterday, 05:41 PM

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