Using DataType: "jsonp xml"
Hello, i have a problem with my project, it always return: Uncaught SyntaxError: Unexpected token <
and here my code, please check. thank you so much.
- function test(){
- $.ajax({
- type: 'GET',
- dataType: "jsonp",
- processData: true,
- crossDomain: true,
- jsonp: true,
- url: "http://huysoi.com/den.xml",
- //converters: {"xml": jQuery.parseXML},
- username: 'admin',
- password: 'admin',
- success: function (responseData, textStatus, jqXHR) {
- console.log('in');
- },
- error: function (responseData, textStatus, errorThrown) {
- alert('POST failed.');
- }
- });