How can I call the multiples of value from this query.php,here I got a single value from query.php,but when the multiple values pass means have a issue that mean it's can't read the function
Ajax function:(test.php)
- $.ajax({
- url: "query.php",
- cache: false,
- dataType:'json',
-
- success: function(data) {
-
- $('#latitude').html(data.latitude);
- $('#longitude').html(data.longitude); $('#speed').html(data.speed);
- var latitude = data.latitude;
- var longitude = data.longitude;
- var speed = data.speed;
- var locations=[latitude,longitude];
- allload(latitude,longitude);
- }});
values from query.php
{"latitude":"10.969470","longitude":"79.397572","speed":"0.00"}{"latitude":"8.754737","longitude":"78.191653","speed":"0.00"}{"latitude":"8.754737","longitude":"78.191653","speed":"1.00"}{"latitude":"8.754743","longitude":"78.191617","speed":"0.00"}{"latitude":"8.754747","longitude":"78.191580","speed":"5.00"}