I'm trying to play with the ajax call from angular. I tried to make from some rest API.. using
$resource(url, { callback: "JSON_CALLBACK" }, { get: { method: "JSONP" }});
I get the data back.. but I can't get rid of the header.. I keep getting Uncaught SyntaxError: Unexpected identifier
thus the parsing can't be done:
Checking origin: '*' (regex: '[a-z0-9]+')<br>Matched!<br>
{"success":1,"errorMessage":"","message":{"chatBotName":"Huge Dragon",
"chatBotID":"110966","message":"You're repeating yourself.","emotion":null}}
How do I delete this part?
Checking origin: '*' (regex: '[a-z0-9]+')<br>Matched!<br>
from my call back?
Any help would appreciated.
Aucun commentaire:
Enregistrer un commentaire