This question is locked. New answers and comments are not allowed.
Hi All - complete noob to this world so please forgive my ignorance.
I set up Cloud Data and add four rows of data to two types. I have successfully (albeit rudimentary) coded some javascript to pull the data and build <select> form element - issue is I only see 2 rows returned and not 4 as I would have expected - what I am I doing worng? Thanks ~T
My JS
I set up Cloud Data and add four rows of data to two types. I have successfully (albeit rudimentary) coded some javascript to pull the data and build <select> form element - issue is I only see 2 rows returned and not 4 as I would have expected - what I am I doing worng? Thanks ~T
My JS
var count = 0;
var el = new Everlive({
apiKey: '**************************',
scheme: 'https'
});
var casinos = el.data('casinos');
casinos.get()
.then(function (data) {
BindDataToSelectCasinos(data);
}, function (err) {
alert(err.message);
});
function BindDataToSelectCasinos(e) {
var jsonStr = JSON.stringify(e);
var json = JSON.parse(jsonStr)
$('#casinos');
$.each(e, function () {
$('#casinos').append(
$("<
option
></
option
>").text(json.result[count].CasinoName).val(json.result[count].Id)
);
count = count + 1;
});
count = 0
}