I am trying to get json on my web page, but the problem is Jason on 127.0.0.1:8111 and I Json callback is required to use but after receiving the data from the localhost: 8111 I am getting a syntax error Unexpected symbol ':'. Here is the code
var wtAPI = 'http: // localhost: 8111 / indicator? Callback =? '; $ .jsonp ({url: wtAPI, type: "GET", callbackParameter: 'callback', datatype: "jsonp", success: function (JSON) {console.log (JSON)}, error: function () {warning ('Error')}
Also tried the standard
$. GetJSON (...)
< P> But the way this is usually not working cuz of different domains and here is my JSON
{"legal": true, "Speed": 70.410828, "Pedal": -0.0,05,646, "pedals1": -0.0,05,646, "pedals2": -0.0,05,646, "pedals3": - 0.0,05,646, "pedals4": -0.0,05,646, "pedals5": -0.0,05,646, "pedals6": -0.0,05,646, "pedals7" : -0.0, 05,646, "pedals8": -0.0,05,646, "stick_elevator": 0.1,40,2 9 4, "stick_ailerons": 0.0,00,214, "vario": 15.9, 53 , 083, "altitude_hour": 74.11, 24, 939, "altitude_min": 74.11, 24, 9 9, "bank": 0.0, 36, 605, "turn": -0.0,00, 850, "Compass": 46.54542 2, "clock_hour": 9.44 million, "clock_min": 27.0 million, "clock_sec": 30.0 million, "manifold_pressure": 1 .3,30,175, "rpm_min": 674.0 million, "rpm_hour": 2,674.21 99 71, "oil_pressure": 88.618,057, "oil_temperature": 88.6,18 , 057, "water temperature": 96.471817, "mix": 1.000000, "fuel_prepress": 8.834542, "gear": 0.500000, "gears_lamp": 1.000000, "flaps": 0.500000, "tr Mir ": 0.170344," Throttle ": 0.883454," Weapon 1 ": 0.000000," weapon2 ": 0.000000," prop_pitch ": 0.9, 70864," supercharger ": 0.000000," radiator ": .9, 74 , 724}
No comments:
Post a Comment