Eintrag

z-wave jqmobile

Achtung: für IE ist hier eine kleine Änderung notwendig:

mobile_zwave.js:

// to workaround problem with jQuery mobile initialization when accessed by URL with hash (#allsensors, happens after reload)
//if (document.baseURI != document.URL) {
//document.location.href = document.baseURI;
//return;
//}

Der Workaround funktioniert zumindest mit Firefox, Iron, IE, Opera

var iHash = document.URL.indexOf(‚#‘);
if(iHash != -1) {
document.location.href = document.URL.substr(0,iHash);
return;
}

Dieser Eintrag ist vom Autor unter CC BY 4.0 lizensiert.