I am trying to parse some JSON data through AJAX i followed an example from here:
how to parse json data with jquery / javascript?
On the example, they can get it working, but on my exmaple, the
turned blank.
I tried just echoing the php, the JSON displayed with no problem either. Wondering what the problem is.
fefe
>$.ajax({
type: 'GET',
url: 'get.php',
data: { get_param: 'value' },
dataType:'json',
success: function (data) {
var names = data
$('#result').html(data);
}
});
What the JSON result looks like in php:
[{"id":"1","userid":"26","title":"654","description":"654"}]