Reputation: 90191
I'm trying to add a DojoX Grid control to my website, but I can't get it to work. I'd like a simple example to start from, but there doesn't seem to be one anywhere. These are my requirements:
googleapis.com
(or AOL's servers; not the trunk code or the Dojo code hosted one some private server)Amazingly, I can't find anything that meets all three requirements. Does anything know of one?
Upvotes: 0
Views: 5928
Reputation: 1878
Here you go:
Fixed CSS imports a la:
@import "http://ajax.googleapis.com/ajax/libs/dojo/1.2.3/dojox/grid/resources/Grid.css";
Loaded cross domain Dojo:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.2.3/dojo/dojo.xd.js" djConfig="isDebug:false, parseOnLoad: false">
...with parseOnLoad set to false.
Imported function that declares test_store
and gave it a name:
loadStore = function(){ // some sample data
Started everything once all dojo.require
d classes had loaded:
dojo.addOnLoad( function(){ loadStore(); dojo.parser.parse() } );
And that's it: a working Dojo Grid using cross domain library demo.
Upvotes: 1