TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
karthika pommudu
NA
321
35k
Urgent...How to call ajax with multiples of value in json
Mar 20 2019 12:38 AM
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'
,
//data: {registration_no: registration_no, latitude : latitude},
success:
function
(data) {
// alert(data.latitude);
$(
'#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"}
Reply
Answers (
2
)
Codeigniter Undefined offset: 0 array
Same image name upload after database