jquery - JSONP not working for me throwing an error Uncaught SyntaxError: Unexpected token } -
After
im trying to get a feed or at least one breakthrough, but this is not working for me any reason To
$ (function () {$ .ajax ({url: 'http://www.canadiantire.ca/ws/ajax_call.jsp?proc_class=com.ctc.ajax. CTCRequestAjaxHandler & amp; action = getTabProductInfo & amp; in place = hi & amp; pTab = 1 & amp; pSku = 0853086,0853694,0853693,0853076,0853082,0853662 & amp; callback = ', type:'? 'Datatype:' jsonp ', jsonp:' jsonp ', success: work (cautious (' success');}, error: work () {warning ("sorry, i can not feed");} })}} ); itemprop = "text"> After you have just typed it in the browser
To open the URL and see that this jsonp is not returning SOME APIs that serve jsonp require a specific callback value or other parameters. Not all APIs however serve jsonp. See API documentation If you try to request json as well then you do not have a cross domain error server since the CORS is enabled.
Not all APIs are accessible through ajax and to come back using a proxy
Comments
Post a Comment