Jquery AJAX issue with IE 6 & 7

See my code attached. Any idea's why it's not working in IE 6 & 7 and how I resolve the issue?

It's basically not importing the html when using IE 6 & 7?

<script type="text/javascript">

//Get all results
		type: "POST",
		url: 'add_script.php',
		data: "getall=true",
		success: function(r){$("#postwrap").html(r)},
		error: function(){alert(2);$("#error").text("Could not retrieve posts").fadeIn(300).delay(900).fadeOut(300)}


<div id='postwrap'></div>

//// Code from add_script.php below

<?php if (isset($_POST["add"])) {
	$insertSQL = sprintf("INSERT INTO products2 (product_name) VALUES (%s)",
                       GetSQLValueString($_POST["product_name"], "text"));  
	mysql_select_db($database_conn_cwes, $conn_cwes);
	$Result1 = mysql_query($insertSQL, $conn_cwes) or die(mysql_error());

	mysql_select_db($database_conn_cwes, $conn_cwes);
	$query_rs_products = "SELECT * FROM products2 WHERE active IS NULL ORDER BY product_name ASC";
	$rs_products = mysql_query($query_rs_products, $conn_cwes) or die(mysql_error());
	$row_rs_products = mysql_fetch_assoc($rs_products);
	$totalRows_rs_products = mysql_num_rows($rs_products);


<?php do {

<div id="<?php echo $row_rs_products['id']; ?>"><?php echo $row_rs_products['product_name']; ?> - <span onclick="del(this)" style="color:#0000FF">Delete</span></div>


} while ($row_rs_products = mysql_fetch_assoc($rs_products)); 


Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Do the browsers return any javascript error?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
petewinterAuthor Commented:
Thanks you reminded me to use the console of the browser.

The issue was the last comma needed to be removed in the ajax command.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.