I am trying to get xhr value from some router by using jsonp, I want to parse the incoming data.
The return data is not in json type and it is naturally giving a "SyntaxError: missing ; before statement".
The code is:
$.ajax({ type: "GET", url: "http://192.168.xxx.xxx/index.cgi?page=modemStatusData", dataType: "jsonp", success: function(data){ console.log(data); } }); xhr data is: 0.0.0.0##00:A0:BC:42:F6:A5##UT_1.2.1.5.1##UT_7 P3_V1##Scanning##160,871##21,445,571##95,556##14,413,556##000:00:00:00##0##0.0##10%##283713493579##0.0##100%##N/A##0%##Inactive##N/A##0%##Single##1113450013##images/Modem_Status_005_Scanning.png##/images/Satellite_Status_Orange.png##
How can I convert it to text or html? or ignore the error.
Best Regards.