[jQuery] jquery ajax post not working

[jQuery] jquery ajax post not working


I am trying to use ajax post to simply send a form field to php and
return it to a div
Here is what I have
$(document).ready(function(){
$("#addLinks").submit(function() {
$.ajax({
url: 'addLinks.php',
type: 'POST',
data: {url: $("#url").val(),title: $
("#title").val() },
error: function(){
alert('Error adding link');
},
success: function(data){
$("#contentcol4").append(data);
     }
})
});
});
the php file contains <? echo $_POST['url'];?>
i keep getting a error of
This XML file does not appear to have any style information associated
with it. The document tree is shown below.
im not sure what to do, I am new to this
Thanks