Dojo notes gird component reference

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.