Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Meer info

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

firefox ignore javascript httprequest setRequestHeader ("Content-Encoding", "gzip")

  • 1 antwoord
  • 40 hebben dit probleem
  • 1 weergave
  • Laatste antwoord van AnonymousUser

more options

I am calling JSON files from my Javascript httprequest to represent vertexcoordinates and so on for WebGL. Its work nice with pure json but Firefox ignore *.json.gz files what I requare by setting javascript code:

 function loadModel(JsonUrl,m) {
   var request = new XMLHttpRequest();
   request.open("GET", JsonUrl);
   request.setRequestHeader("Content-Encoding", "gzip");
   request.setRequestHeader("Content-Type", "text/plain");
   request.onreadystatechange = function() {
     if (request.readyState == 4) {
     	      	ModelArray[m][5]=JSON.parse(request.responseText);
     	      	FindMinMax(ModelArray[m][5].vertexPositions);
	      	  

if((m+1)==ModelArray.length && loadSeparate!="true"){ for(m=0;m

I am calling JSON files from my Javascript httprequest to represent vertexcoordinates and so on for WebGL. Its work nice with pure json but Firefox ignore *.json.gz files what I requare by setting javascript code: function loadModel(JsonUrl,m) { var request = new XMLHttpRequest(); request.open("GET", JsonUrl); request.setRequestHeader("Content-Encoding", "gzip"); request.setRequestHeader("Content-Type", "text/plain"); request.onreadystatechange = function() { if (request.readyState == 4) { ModelArray[m][5]=JSON.parse(request.responseText); FindMinMax(ModelArray[m][5].vertexPositions); if((m+1)==ModelArray.length && loadSeparate!="true"){ for(m=0;m

Alle antwoorden (1)

more options

We have a solution join us on live support so we can assist you.