- Timestamp:
- 09/19/12 21:23:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/smartfact/index.js
r14401 r14416 33 33 var xmlLoad = new XMLHttpRequest(); 34 34 xmlLoad.open('POST', "index.php?load", true); 35 //xmlLoad.setRequestHeader("If-Match", "*"); 35 36 xmlLoad.onload = function() 36 37 { … … 125 126 var xmlPage = new XMLHttpRequest(); 126 127 xmlPage.open('POST', "struct/"+name+'.page', true); 128 //xmlPage.setRequestHeader("If-Match", "*"); 127 129 xmlPage.onload = function () 128 130 { … … 169 171 var xmlCmd = new XMLHttpRequest(); 170 172 xmlCmd.open('POST', uri, true); 173 xmlCmd.setRequestHeader("If-Match", "*"); 171 174 xmlCmd.onload = function () 172 175 { … … 946 949 var xmlText = new XMLHttpRequest(); 947 950 xmlText.open('POST', "data/"+fname+'.data', true); 951 //xmlText.setRequestHeader("If-Match", "*"); 948 952 xmlText.onload = function () 949 953 { 950 if (xmlText.status!=200) 954 // if (xmlText.status==412) 955 // { 956 // timeoutText = setTimeout(refresh_text, 3000); 957 // return; 958 // } 959 960 if (xmlText.status!=200 && xmlText.status!=412) 951 961 { 952 962 alert("ERROR[2] - HTTP request '"+fname+".data': "+xmlText.statusText+" ["+xmlText.status+"]"); … … 1111 1121 var xmlGfx = new XMLHttpRequest(); 1112 1122 xmlGfx.open('POST', "data/"+fname, true); 1123 xmlGfx.setRequestHeader("If-Match", "*"); 1113 1124 xmlGfx.onload = function () 1114 1125 { 1115 if (xmlGfx.status!=200) 1126 // if (xmlGfx.status==412) 1127 // { 1128 // timeoutGraphics = setTimeout(refresh_graphics, 5000); 1129 // return; 1130 // } 1131 1132 if (xmlGfx.status!=200 && xmlGfx.status!=412) 1116 1133 { 1117 1134 alert("ERROR[3] - Request '"+fname+"': "+xmlGfx.statusText+" ["+xmlGfx.status+"]");
Note:
See TracChangeset
for help on using the changeset viewer.