Login Register

data keyword

dojo 1.0.2: dojo.data.ItemFileReadStore not accepting data keyword in constructor?

I am testing out an upgrade to dojo 1.0.2 and I ran into a problem using loaded JSON data to instantiate an item store. I found a thread online that shows the same problem but no answer:

http://www.nabble.com/data-store-td14248070.html

The code example given apparently worked for one person but, like myself, not for the person using 1.0.2:


dojo.require('dojo.data.ItemFileReadStore');
var data = {data: {
identifier : 'id',
items : [
{ id : 'a', label: "Letter A" },
{ id : 'b', label: "Letter B" },

Syndicate content