SyntaxError: expected expression, got '<'
Solved
hcp7kuz
Posted messages
238
Registration date
Status
Member
Last intervention
-
hcp7kuz Posted messages 238 Registration date Status Member Last intervention -
hcp7kuz Posted messages 238 Registration date Status Member Last intervention -
Hello,
I’d like to include an external file on my page with Ajax. I’ve managed to make the request, I can see the result in Firefox’s console, but I can’t display it; the following error message appears in the console:
SyntaxError: expected expression, got '<'
[Text...]
And my Ajax code: $.ajax({ type: "GET", url: "http://example.com/", data: data, crossDomain: true, dataType: 'jsonp', success: function(msg){ $('#resultat').html(msg); } }); Thanks for your help, hcp7kuz