로그인

이메일
비밀번호
DaeYoung's Blog : 위치로그 : 태그 : 방명록 : 관리자 : 새글쓰기
웹 브라우져 Ajax 지원여부
Web/Ajax, (2007년 04월 26일 12시 51분)
 
<SCRIPT LANGUAGE="JavaScript">
<!--
        var bName= null;
        var bVersion = null;
        var uAgent = self.navigator.userAgent.split(";");
        //window.navigator.userAgent:웹브라우저의 상세정보를 담는다
        var re = /MSIE\s([\d\.]+)/gi;        //정규표현식:/*/gi: *에대한 대소문자 구별없이 모두
        var result=re.exec(uAgent[1]);        //exec() 검색을실행하는 매서드

        if( (result != null) && (result.length==2)){        //Explorer
                bName="MSIE";
                bVersion = parseFloat(result[1]);
        }
        else{                                                        //Mozilla
                re = /rv\:([\d\.\w]+)\)\sGecko/gi;
                result=re.exex(uAgent[4]);
                if((result != null) && (result.length==2)){
                        bName = "Mozilla";
                        bVersion = parseFloat(result[1]);
                }
        }

        if((bName=="MSIE")&&(bVersion >= 1.0)){                        //Explorer 일때 Ajax객체 생성
                myAjax = new ActiveXObject("Microsoft.XMLHTTP");
        }       
        else if( bName=="Mozilla" && bVersion >= 1.0){        //Mozilla 일때 Ajax객체 생성
                myAjax = new XMLHttpRequest();
        }
        else {                                                                                        //그외 지원하지 않음        
                self.alert("브라우저가 Ajax를 지원하지 않습니다.");
        }
        self.document.write("myAjax.readyState : " + myAjax.readyState + "<br/>");
//-->
</SCRIPT>
http://laedu.net/trackback/3
DaeYoung's Blog 블로그에 오신것을 환영해요^^
웹기반 프로그래밍에 관한 것들을 모을 예정이었는데..
«   2024년 09월   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Javax.mail 참고 사이트.
C# TextBox KeyDown, KeyPr...
SID가 여러개 있을때 'ORA...
https://scrapingmaster.blogg...
https://scrapingmaster.blogg.. 2023년
expertdecoders.com.
expertdecoders.com 2023년
expertdecoders.
expertdecoders 2023년
best decaptcha service.
best decaptcha service 2023년
capcher.
capcher 2023년
17
135
1021098