Starting from Blank iOS screen - #19 by ghenne - Questions - VoltBuilder
I added some alert and spotted the problem, I guess:
alert("aAA"); //this is showed
$.when(
$.getJSON("js/cldr/main/it/numbers.json"),
$.getJSON("js/cldr/main/it/currencies.json"),
$.getJSON("js/cldr/main/it/ca-gregorian.json"),
$.getJSON("js/cldr/supplemental/likelySubtags.json"),
$.getJSON("js/cldr/supplemental/timeData.json"),
$.getJSON("js/cldr/supplemental/weekData.json"),
$.getJSON("js/cldr/supplemental/currencyData.json"),
$.getJSON("js/cldr/supplemental/numberingSystems.json")
).then(function () {
alert("a"); //this is not showed
return [].slice.apply(arguments, [0]).map(function (result) {
return result[0];
});
}).then(
....
I tried also an equivalent version, but the result is the same
jQuery.ajax({ dataType: "json", url: "js/cldr/main/it/numbers.json" }),
jQuery.ajax({ dataType: "json", url: "js/cldr/main/it/currencies.json" }),
jQuery.ajax({ dataType: "json", url: "js/cldr/main/it/ca-gregorian.json" }),
$.ajax({ dataType: "json", url: "js/cldr/supplemental/likelySubtags.json" }),
$.ajax({ dataType: "json", url: "js/cldr/supplemental/timeData.json" }),
$.ajax({ dataType: "json", url: "js/cldr/supplemental/weekData.json" }),
$.ajax({ dataType: "json", url: "js/cldr/supplemental/currencyData.json" }),
$.ajax({ dataType: "json", url: "js/cldr/supplemental/numberingSystems.json" })
I tried also to add the “/” at the begininng of the paths, nothing changed.
I tried then
jQuery.getJSON("js/cldr/main/it/numbers.json", function () {
alert("success");
}).error(function (err) { alert("...error " + err.responseText); })
.complete(function () { alert("complete"); })
but the error is “undefined”
If I do
jQuery.ajax({
dataType: "json", url: "js/cldr/main/it/currencies.json",
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
} })
no alert is showed…
Can you help me here?