title: jQuery $.post update not working in IE
body: <p>I can't get this update script to work in IE.  Works fine in every other browser.  IE tells me that the update was performed. However, it wasn't.  I've no more hair left to pull out..grr. BTW I've tried <code>$.ajax</code> and <code>$.get</code> too..still no luck.  I'm thinking it may have something to do with the <code>live</code> click handler.  Don't know...I've tried everything..(putting headers for no-cache, attaching a random number to the end of my url string)..nothing fricken works...blasted IE.</p>
  
  <p>This is the <code>$('.save').live('click')</code> function I am using:</p>
  
  <pre><code>$(".save").live("click", function(){
    $.post("update.php", { cache : false, saveID : saveIt.value, saveMo : saveMonth, saveYr : saveYear, saveCtg : saveCt, saveThg : saveTh },
    function(data){
      if(data.success) {
  
        $(textareaThoughts).hide();
        $(saveIt).parents(".dirRowOne").find(".cancel").hide();
        $(saveIt).parents(".dirRowOne").find(".edit, .del").show();
        $(saveIt).hide();
        $("#dirConsole").html(data.message);
  
      } else if(data.error) {
      }
    }, "json");
  return false;
  });
  </code></pre>
  
  <p>Here's the update.php</p>
  
  <pre><code>&lt;?php
  
    if($_POST) {
  
        $data['id'] = $db-&gt;escape_value($_POST['saveID']);
        $data['months'] = trim($db-&gt;escape_value($_POST['saveMo']));
        $data['years'] = trim($db-&gt;escape_value($_POST['saveYr']));
        $data['cottages'] = trim($db-&gt;escape_value($_POST['saveCtg']));
        $data['thoughts'] = trim(htmlentities($db-&gt;escape_value($_POST['saveThg'])));
  
        $id = $data['id'];
        $m = $data['months'];
        $y = $data['years'];
        $c = $data['cottages'];
        $t = $data['thoughts'];
  
        $query = "UPDATE //tablename SET month = '{$m}', year = '{$y}', cottage = '{$c}', thoughts = '{$t}'  WHERE dirID = '{$id}'";
        $result = $db-&gt;query($query);
  
         if($result) {
            $data['success'] = true;
            $data['message'] = "Update Successful!";
         } else {
            $data['error'] = true;
         }
  
   echo json_encode($data);
  
   }
  
  
  ?&gt;
  </code></pre>
  
  <p>This is the JSON response:</p>
  
  <pre><code>{"id":"360","months":"June","years":"1990","cottages":"Cedar","thoughts":"Hello","success":true,"message":"Update Successful!"}
  </code></pre>