
computer/etc. : 글 21개
- 2010/08/27 javascript date() 관련
- 2010/05/24 XMLhttpReqeust in FF and IE
- 2010/05/17 javascript in explorer6




FireFox와 IE에서 XMLhttpReqeust 사용..
var req = false;
if(window.XMLHttpRequest){
req = new XMLHttpRequest();
}else{
req = new ActiveXObject("Microsoft.XMLHTTP");
}
AJAX,
FireFox,
IE,
XMLHttpRequest


인코딩하는 것이 필요해서 코딩을 했다
output = output +
this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) +
this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);
소스가 대략 이런 구조인데 문자열 연산이 a = a + b; 형태이다..
이렇게 하고 explorer6에서 돌리니까 시간이 엄~청 걸렸다.
파폭이나 익스8에서는 잘 됨...
왜이럴까 하다가 찾아보니까 문자열 연산때문에 그런것같음...
tempoutput = tempoutput +
tempkey.charAt(enc1) + tempkey.charAt(enc2) +
tempkey.charAt(enc3) + tempkey.charAt(enc4);
if(i%100==0){
output = output + tempoutput;
tempoutput = '';
}
이런식으로 나눠서 처리하니까 훨씬 빨라졌음..;
뭐니 익스6..
익스6을 그냥 쓰지 말자...
