But it doesn't get appended to the web page. The error suggests in the response the data type should be XML or JSON? The response text should only be HTML so I changed the data type in the AJAX to "text". That did not help get rid of the error message so I can get the response appended.
Here is the error message in firebug:
todo13.html (line 114)
XML filter is applied to non-XML value (function () {return this.domManip(arguments, !0, function (a) {this.nodeType === 1 && this.appendChild(a);});})
Here is the code for the submit function: function submitForm() {
Maybe you can see the error from the code but If you would like to see the page: http://janisrough.dyndns.biz/todo13.html . I also tried ("ul").append.html(response) and that was wrong also. Can't I just get a text response without XML or JSON?
The logic is to have the submit button post only one line via AJAX to the unordered list. I also have a load script to load all the rows already posted to the database but I want the submit button to only add the one row first. thanks in advance,