毕业论文开发语言企业开发JAVA技术.NET技术WEB开发Linux/Unix数据库技术Windows平台移动平台嵌入式论文范文英语论文
您现在的位置: 毕业论文 >> java技术 >> 正文

Could not load 'dojox.grid.Grid'; last tried 'Grid.js'

更新时间:2013-12-19:  来源:毕业论文

代码:
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
   
    <title>My JSP 'grid.jsp' starting page</title>
   
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">   
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
    <style type="text/css">
     @import "dojoroot/dijit/themes/tundra/tundra.css";
     @import "dojoroot/dojo/resource/dojo.css";
     @import "dojoroot/dojox/grid/_grid/tundraGrid.css";
    </style>
    <script type="text/javascript" src="dojoroot/dojo/dojo.js.uncompressed.js" djConfig="parseOnLoad:true"></script>
    <script type="text/javascript">
       dojo.require("dojo.parser");
       dojo.require("dojo.data.ItemFileReadStore");
       dojo.require("dojox.grid.Grid");
    </script>
    <style type="text/css">
     #grid{
     border:1px solid #333;
     width:550px;
     margin:10px;
     height:200px;
     font-size:0.9em;
     }
    </style>
  </head>
 
  <body  class="tundra">
  <div dojoType="dojo.data.ItemFileReadStore" jsId="wishstore" url="json.json"></div>
  <table id="grid" dojoType="dojox.grid.Grid" store="wishstore" query="{wishId:'*'}"
    clientSort="true">
     <tr>
     <th field="description">description</th>
     <th field="size">size</th>
     <th field="origin">origin</th>
     <th field="wrapper">wrapper</th>
     <th field="shape">shape</th>
    
     </tr>
   
    </table>
 
  </body>
</html>
isn't that dojox.grid.DataGrid???

例子来看应该是dojox.grid.DataGrid
你应该是在看精通dojo的书吧,唉,dojo版本不一样很多js名称都变了。

设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优尔论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。