I have a website I'm trying to read some text from another website the data is like below:
CNUM: 4G987
TIE:
TIEA:
XPHONE: 1-111-111-111
XPHONEA:
INFOPHONES:
FAXTIE:
FAX:
PAGER:
PAGERID:
PAGERTYPE:
CELLULAR:
I'm using jquery as the following:
$.getJSON("http://xxx.xxx.com/xxx/wsapi?byInternetAddr=xxx&**callback**=?", function(result){
});
the problem: if put in the link "&callback=?"-----> will be get as JSONP format and Im getting this err:
SyntaxError: identifier starts immediately after numeric literal
if i did this:
$.get("http://xxx.xxx.com/xxx/wsapi?byInternetAddr=xxx&**callback**=?", function(result){
});
I'm getting:
Cross-Origin Request Blocked: The Same Origin Policy disallows
Any suggestion on how to deal with this?