H5P caricamento, si prega di attendere...

Ri: H5P caricamento, si prega di attendere...

di Maurizio Belli -
Numero di risposte: 0
Grazie Sergio, francamente non so dove altro sbattere la testa: ho seguito alla lettera i tuo suggerimento ed il risultato è il seguente:
- il codice restituito nel tab network per h5peditor.js è 200
- nella console restituisce l'errore
-- h5peditor.js?ver=2021043000:124 Error while loading script Event {isTrusted: true, type: "error", target: script, currentTarget: script, eventPhase: 2, …}
(anonymous) @ VM430 h5peditor.js:124
script.onerror @ VM430 h5peditor.js:81
- la riga 124 di h5peditor.js riporta wuesto punto del codice:
-- if (libraryData.javascript !== undefined && libraryData.javascript.length) {
libraryData.javascript.forEach(function (path) {
if (!H5P.jsLoaded(path)) {
loadingJs = true;
ns.loadJs(path, function (err) {
if (err) {
console.error('Error while loading script', err); =>>>> riga 124
return;
}
- la riga 81 fa riferimento alla funzione ns.loadJs:
-- ns.loadJs = function (src, done) {
if (H5P.jsLoaded(src)) {
// Already loaded
done();
}
else {
// Loading using script tag
var script = document.createElement('script');
script.type = 'text/javascript';
script.charset = 'UTF-8';
script.async = false;
script.onload = function () {
H5PIntegration.loadedJs.push(src);
done();
};
script.onerror = function (err) {
done(err); =>>>> riga 81
};
script.src = src;
document.head.appendChild(script);
}
}