1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script src="../js/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#btn .btnLoad").click(function() {
            $('#ctlGrid').load("01.HtmlSamplePage.htm");        // 비동기적으로 페이지로드
            window.alert("이 메시지는 먼저 출력됨. Why? 비동기."); // 메시지박스가 먼저 출력 가능
        });
    });   
</script>   
 
<div id="btn">
    <div class="btnLoad">
HTML읽어오기 버튼</div>
</div>
<div id="ctlGrid">
</div>

샘플 페이지

샘플 페이지입니다.

------------------------
IE, 파폭에서는 정상적으로 작동하나 크롬에서는 디폴트 설정 때문인지 작동 안 함.  
Posted by 파노카페
: