Oh boy, yet another question about IE 7 and Ajax. I've read numerous posts about IE caching and whatnot and I still cannot get this code to work in IE 7. I've tried cache busting and disabling it with Ajax setup but on success, data is what the table looked like before adding a new row. Maybe its something really simple and I'm just overlooking it.
//Submit the addData for PHP processing, remove all the additional rows then hide the div
$('input#addSubmit').click( function() {
$.post( 'shepherd.php?a=save_data', $('form#addForm').serialize());
//The number of rows is abratrairy so we have to find out how many there are
//so we can slice from mainRow to the submit button row
//The mainRow is the 2nd index
var addLength = $("table#addTable tr").length - 1;
$("table#addTable tr").slice(3,addLength).remove();
rowCount = 2;
lastRow = $('tr#mainRow');
//Remove values from the main row
$(".addMainData").val("")
//Pull an updated version of the main table then delete the current one
$.post( 'shepherd.php?a=refresh_table&buster=' + new Date().getTime(),
function(jquery_data) {
//alert(jquery_data);
$('div#mainContent').empty().html(jquery_data);
});
$("div#addDiv").hide(400);
});