您的位置:首页 > Web前端 > JQuery

jquery 1.2 高级应用--ajax

2007-11-07 00:32 831 查看
jquery 1.1中文手册

http://www.cn-cuckoo.com/jquery/cnapi/jquery_a110.xml

http://jquery.org.cn/visual/cn/index.xml

 


<HTML>  


<SCRIPT LANGUAGE="JavaScript" src="jquery1.2.js"></SCRIPT>




<SCRIPT LANGUAGE="JavaScript">...


<!--




$(function ()...{




    $("#loading").ajaxStart(function()...{


            $(this).show();


        });




    $.ajax(...{


        type: "POST",


        url: "demoserver.php",


        data: "name=John&location=Boston",


        dataType: "html",




        success: function (msg)...{


            $("#msg").html(msg);


        }


        });


        




        $("#loading").ajaxStop(function()...{


            $(this).hide();


        });        


    });


//-->


</SCRIPT>


<BODY>  


<div id="loading" style="display:none">Loading......</div>


<div id="msg"></div>


<div id="error"></div>


<div id="sucess"></div>


</BODY>  


</HTML>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息