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>
<!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>