[loadMethod.htm]



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

    <title>load 메서드로 서버에 데이터 전송 및 받기</title>

    <script src="../js/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script>

    <script type="text/javascript">

        $(document).ready(function () {

            $('#btn').click(function () {

                $('#pnlDisplay').load("05.FrmResponseData.aspx", { 'Msg': $(this).val() });

            });

        });

    </script>

</head>

<body>

    <input type="button" id="btn" value="서버로부터 HTML 가져오기" />

    <div id="pnlDisplay">

    여기에 출력

    </div>

</body>

</html>

 



-------------------------------------------------------------------------------------

 


[실행결과]


--> 첫 화면. 아래그림에서 '버튼'을 마우스로 클릭하면...






--> 아래그림과 같이 '버튼'아래에 출력된다.("load() 메서드"로 서버에 데이터 전송 및 받기를 한 결과이다.)




 

Posted by holland14
: