|
I am using json to fetch the data from the server to the phonegap app . When i send the single array, the data is fetched correctly .This is the output of json.
Now when i merge the 2 array through php array_merge at server side and than echo the json_encode . The data appears something like this
On phonegap when i get the data through ajax i only able to get the data of first array .
Where as i tested the code by accessing webpage and it shows all the
data but when i putt it on phonegap it only show the first array . |
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
$.ajax({
type: "GET",
cache: false,
url: "xxxx?id="+id,,
success: function(data){
var obj = jQuery.parseJSON(data);
var json = $.parseJSON(data);
/* When i putt the alert here alert(json);
It shows me all the values
*/
$(json).each(function(i,val){
$.each(val,function(k,v){
/*
But here it only give the first array . This woks ok with the webpage but on phonegap i am getting only first array .
*/
});
});
}
});You received this message because you are subscribed to a topic in the Google Groups "phonegap" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phonegap/65-99ZpDYG0/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to phonegap+u...@googlegroups.com.