I created a file with the Code <proficient in dojo> on the Internet:
Copy codeThe Code is as follows:
<! DOCTYPE html PUBLIC "-// W3C // dtd html 4.01 Transitional // EN"
Http://www.w3.org/TR/html4/loose.dtd>
<! --
! Excerpted from "Mastering Dojo ",
! Published by The Pragmatic Bookshelf.
! Copyrights apply to this code. It may not be used to create training material,
! Courses, books, articles, and the like. Contact us if you are in doubt.
! We make no guarantees that this code is fit for any purpose.
! Visit http://www.pragmaticprogrammer.com/titles/rgdojo for more book information.
-->
<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8">
<Title> Justa Cigar Wish List </title>
<Style type = "text/css">
@ Import "/zstudio/testdojo/dojoroot/dijit/themes/tundra/tundra.css ";
@ Import "/zstudio/testdojo/dojoroot/dojo/resources/dojo.css ";
@ Import "/zstudio/testdojo/dojoroot/dojox/grid/_ grid/tundrd.d.css ";
</Style>
<Script type = "text/javascript" src = "/zstudio/testdojo/dojoroot/dojo. js"
DjConfig = "parseOnLoad: true"> </script>
<Script>
Dojo. require ("dojo. parser ");
Dojo. require ("dojo. data. ItemFileReadStore ");
Dojo. require ("dojox. grid. Grid ");
</Script>
<Style>
# Grid {
Border: 1px solid #333;
Width: 550px;
Margin: 10px;
Height: 200px;
Font-size: 0.9em;
Font-family: Geneva, Arial, Helvetica, sans-serif;
}
</Style>
</Head>
<Body class = "tundra">
<H1> Justa Cigar Corporation <H3> "Sometimes a cigar is a Justa Cigar! "</H3>
<Div dojoType = "dojo. data. ItemFileReadStore"
JsId = "wishStore" url = "services/cigar_wish_list.json">
</Div>
<Table id = "grid" dojoType = "dojox. grid. Grid" store = "wishStore"
Query = "{wishId: '*'}" clientSort = "true">
<Thead>
<Tr>
<Th field = "description" width = "15em"> Cigar </th>
<Th field = "size"> Length/Ring </th>
<Th field = "origin"> Origin </th>
<Th field = "wrapper"> Wrapper </th>
<Th field = "shape"> Shape </th>
</Tr>
</Thead>
</Table>
</Body>
</Html>
At this time, the page did not produce any results. Open firebug and check: dojox. grid. Grid 404 not Found !!
How is this going on? I opened the dojoroot/dojox/grid/directory and did not find the Grid. js file. There was only one _ Grid. js file.
So I changed dojox. grid. Grid to dojox. grid. _ Grid. I couldn't find it, but there was another inexplicable problem.
Is there a problem with my dojo? The ghost package (included in the preceding document directory) found grid. js in it and decompressed it to the current directory. Try again !!!