這裏是我的index.html試圖訪問谷歌的ExtJS API,但它不工作
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="https://www.google.com/jsapi?key=ABQIAAAApcJBmCUpoKck8JpBmwHQ3xT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQmzpYh64Zi3KQreNTsD6jqiql5rA" type="text/javascript"></script>
<script language="Javascript" type="text/javascript">
//<![CDATA[
google.load("ext-core", "3.0.0");
google.load("jquery", "1.5.1");
//]]>
</script>
<title>Reseller DashBoard</title>
<!-- ** CSS ** -->
<!-- base library -->
<link rel="stylesheet" type="text/css" href="./ext/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="./ext/resources/css/xtheme-gray.css" />
<!-- overrides to base library -->
<!-- ** Javascript ** -->
<!-- ExtJS library: base/adapter -->
<script type="text/javascript" src="./ext/adapter/ext/ext-base.js"></script>
<!-- <script type="text/javascript" src="./ext/ext-all.js"></script>
-->
<!-- ExtJS library: all widgets -->
<!-- overrides to base library -->
<!-- extensions -->
<!-- page specific -->
<script type="text/javascript" src="application.js"></script>
<script type="text/javascript" src="js/Application.DashBoardGrid.js"></script>
<script type="text/javascript" src="js/Application.DashBoardForm.js"></script>
<script type="text/javascript" src="js/Application.ResellerGrid.js"></script>
<script type="text/javascript" src="js/Application.ResellerIroGrid.js"></script>
<script type="text/javascript" src="js/jsfunction.js"></script>
</head>
<body>
<div id="dashboard">
<!-- <table border="1" align="center" width="80%">
<tr>
<th align="center"><b>From Date </b></th>
<th align="center"><input type="text" name="from_date" size=10 value=''>
<img align='absmiddle' style='cursor:hand' src='popcalendar/date-choose.gif' onclick='popUpCalendar(this,document.index.from_date,"yyyy-mm-dd",65,53)'></th>
<th align="center"><b>To Date</th>
<th align="center">
<input type="text" name="to_date" size=10 value=''>
<img align='absmiddle' style='cursor:hand' src='popcalendar/date-choose.gif' onclick='popUpCalendar(this,document.index.to_date,"yyyy-mm-dd",65,53)'></th>
<th><input type="submit" id="datesubmit"name="submit" value="Submit"></th>
</tr>
</table> -->
</div>
</body>
</html>
給我的錯誤
Ext.onReady is not a function
請有什麼建議呢?
是的我有這個功能是在application.js – XMen 2011-03-25 10:01:02
我的歉意 - 我沒有看到其他包括。即使頁面上沒有您自己的JavaScript,您是否也收到了此錯誤? – 2011-03-25 10:04:24
不,這是由於不包括extjs api – XMen 2011-03-25 10:07:03