jslib/vorlagen.js
@@ -42,6 +42,7 @@ Inhalt gefüllt ist */ this.vorlage_laden_und_fuellen = function(vurl, inhalt, cb) { /* $.ajax({ url: vurl, type: "GET", @@ -50,6 +51,16 @@ self.cache[vurl] = vorlage; self.vorlage_fuellen(vurl, inhalt, cb); }); */ var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { self.cache[vurl] = this.responseText; self.vorlage_fuellen(vurl, inhalt, cb); } }; xmlhttp.open("GET", vurl, true); xmlhttp.send(); }; }