views:

359

answers:

1

I have a grid that is embedded within a ContentPane which is in a tabContainer. When loading the itemfilewritestore IE7 pops an error.

Code:

var theData = {identifies : id , items[]}; var theStore = new dojo.data.ItemFileWriteStore({data: theData});

console.debug(theStore); // this throws some weird error

error: {close:function(_81)if(!this.isDirty)........There are unsaved changes present in the store Please save or revert the changes before invoking close.

This error only shows itself in IE7. FF has no problem and renders the data properly. And yes I know there is no data in this code but in the real code the data is added later.

A: 

This issue was not as described. The error was not the store in any way. After digging around more, I found out that the real problem was a parsing on a javascript that was being imported. Going step by step through it the problem was because a JSON object was using the term "class" as an attribute. This seems to be against the IE "standards".

mmontalvo
"class", "default" and a number of other reserved JavaScript words will do this. Glad you caught it. JSON states all keys should be quoted. It is completely legal to use { "class":"foo" } in JSON (and IE)
dante