Thanks for that, it was helpful in at least determining that the problem is completely different from what I thought it was. In IE, neither the headers nor the Ajax response were the same. It turns out that the ajaxForm() call is not sending the complete data set from the form... it is only sending the form_type input to the server. Any thoughts why?
<form id="insert_person_modal" method="post" action="team_information.php" class="entry" > <fieldset> <input type="hidden" name="form_type" id="insert_person_modal_form_type" value="add" /> <input type="hidden" name="form_name" id="insert_person_modal_form_name" value="insert_person_modal" / ><input type="hidden" name="ajax" id="insert_person_modal_ajax" value="0" /> <ol> <li> <label for="insert_person_modal_first_name">First Name: </ label><input id="insert_person_modal_first_name" name="first_name" value="" type="text" class="validate_required validate_text input " /> </li> <li> <label for="insert_person_modal_last_name">Last name: </ label><input id="insert_person_modal_last_name" name="last_name" value="" type="text" class="validate_required validate_text input " /> </li> <li> <label for="insert_person_modal_email_address">Email address: </ label><input id="insert_person_modal_email_address" name="email_address" value="" type="text" class="validate_email input " size=30 /> </li> <li> <label for="insert_person_modal_telephone_number">Telephone #: </ label><input id="insert_person_modal_telephone_number" name="telephone_number" value="" type="text" class="validate_telephone input " /> </li> <li> <label for="insert_person_modal_cell_phone">Mobile Phone: </ label><input id="insert_person_modal_cell_phone" name="cell_phone" value="" type="text" class="validate_telephone input " /> </li> <li> <label for="insert_person_modal_home_association">Association: </ label><select id="insert_person_modal_home_association" name="home_association" class="validate_number validate_required validate_select input " > <option value="0">select...</option> </select> </li> <li class="hidden"> <label for="insert_person_modal_entered_by">entered_by: </ label><input id="insert_person_modal_entered_by" name="entered_by" value="274" type="hidden" class="hidden validate_required validate_number input " /> </li> <li class="hidden"> <label for="insert_person_modal_entered_on">entered_on: </ label><input id="insert_person_modal_entered_on" name="entered_on" value="2009-12-22 20:13:37" type="hidden" class="hidden validate_required validate_datetime input " /> </li> <li class="hidden"> <label for="insert_person_modal_registration_confirmed">registration_confirmed: </label><input id="insert_person_modal_registration_confirmed" name="registration_confirmed" value="1" type="hidden" class="hidden validate_required validate_number input " /> </li> <li class="hidden"> <label for="insert_person_modal_default_password">default_password: </ label><input id="insert_person_modal_default_password" name="default_password" value="1" type="checkbox" class="hidden validate_required validate_number input " checked="checked" /> </li> </ol> </fieldset> <fieldset class="submit"> <input type="submit" id="insert_person_modal_go" name="insert_person_modal_go" value="Add" /> </fieldset> </form> On Dec 22, 7:29 pm, Mike Alsup <mal...@gmail.com> wrote: > Set a breakpoint in jQuery's httpData function and see why it's > failing. > > Mike > > On Dec 22, 8:11 pm, dirknibleck <paul.ship...@clickonce.ca> wrote: > > > > > I have what I think is a pretty basic function going on that fails in > > IE everytime. The code is below. The javascript is first, followed by > > the ajax response. > > > In IE, the ajaxForm() function doesn't resolve to success, but it does > > in FireFox, Opera and Safari > > > On IE, the error: function() returns "parseerror" from the textStatus > > variable. > > > What can I change to fix this? > > > $('form#insert_person_modal').ajaxForm({ > > dataType: 'json', > > success: function(data, statusText, jqForm){ > > handle_error_array(data.error_array, $(jqForm)); > > if('insert_id' in data){ > > $("div#insert_person_modal_popup").removeShadow > > ().hide(); > > $('#teams_rosters_person_id').val > > (data.insert_id); > > $('#teams_rosters_person_id_autocompletor').val($ > > ('#insert_person_modal_first_name').val() + ' ' + $ > > ('#insert_person_modal_last_name').val()); > > } > > }, > > error: function(XMLHttpRequest, textStatus, errorThrown){ > > alert("error thrown " + errorThrown); > > alert("text status " + textStatus); > > alert("Request " + XMLHttpRequest); > > } > > > }); > > > AJAX request (as JSON): > > > {"error_array":{"home_association":"The Association you have entered > > is not a valid option. Please select another Association and try > > again."}} > > > RESPONSE HEADERS: > > > Date Wed, 23 Dec 2009 00:40:48 GMT > > Server Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.7l DAV/2 PHP/ > > 5.2.5 > > X-Powered-By PHP/5.2.5 > > Expires Thu, 19 Nov 1981 08:52:00 GMT > > Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre- > > check=0 > > Pragma no-cache > > Content-Length 602 > > Keep-Alive timeout=5, max=100 > > Connection Keep-Alive > > Content-Type application/json