Ext与Jquery的整合

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!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 runat="server">
    
<title></title>
    
<link rel="Stylesheet" type="text/css" href="css/ext-all.css" />
    
<script language="javascript" type="text/javascript" src="script/jquery.js"></script>
    
<script language="javascript" type="text/javascript" src="ExtJQuery/ext-jquery-adapter.js"></script>
    
<script language="javascript" type="text/javascript" src="script/ext-base.js"></script>
    
<script language="javascript" type="text/javascript" src="ExtJQuery/ext-all.js"></script>
    
<script language="javascript" type="text/javascript" src="ExtJQuery/ext-lang-zh_CN.js"></script>
</head>
<body>
    
<form id="form1" runat="server">
    
<div id="myDiv">Div Content</div> 
    
</form>
</body>
</html>
<script language="javascript" type="text/javascript">
    Ext.onReady(
function() {
        Ext.MessageBox.alert(
'Message', $("#myDiv").html());
    }

    );
    
</script>
posted on 2008-12-07 23:12  一路前行  阅读(622)  评论(0编辑  收藏  举报