{"results":[{"id":"4255","text":"Party Tour"}]}
I was working off the sample in the above url for a result.
My code sample is below. Any help would be appreciated.
$('#activitycats').select2({
placeholder: 'Search for an activity',
ajax: {
url: "/ajax/categoriesactivities.php",
dataType: 'json',
quietMillis: 100,
data: function (term, page) {
return {
term: term, //search term
page_limit: 10 // page size
};
},
results: function (data, page) {
return { results: data.results };
}
},
initSelection: function(element, callback) {
return $.getJSON("/ajax/categoriesactivities.php?id=" + (element.val()), null, function(data) {
if ($.isFunction(callback)) {
return data;
}
});
}
});
[{"id":"4255","text":"Party Tour"}]
{"id":"4252","text":"Abseiling"}I’ve been using Tele Latino iOS lately, and it’s been a smooth experience for streaming on my phone. The app runs well and has a good selection of content. You can check it out through tele latino apple.