Dojo Hint. dojo.data fetch (). Opera problems

Strange problem with dojo.data.

var store = new dojo.data.ItemFileReadStore({ url: "[myUrl]" });

console.log(temp.fetch({
   query:{id:'*'},
   onComplete: functionOnComplete,
   onError: functionOnError
}));

      

functionOnError shows such a trace only in the opera:

message : Statement on line 16: Syntax error
Backtrace:
  Line 16 of linked script http://locarbn.ru/js/dojo/dojo/dojo.js
    function(json){return eval("("+json+")");}
...................................................
opera#sourceloc : 16,
    stacktrace :   ...  Line 16 of linked script http://locarbn.ru/js/dojo/dojo/dojo.js

      

As I understand it, opera does not understand the dojo syntax, how to solve this problem?

I am writing dojox.grid and requesting data via dojo.data.ItemFileWriteStore. Can I do another way?

0


a source to share


2 answers


Dojo seems to overwhelm the content returned from your datastore. Is JSON valid? Can you run it with a simple "eval" in Opera with parsers around it?



0


a source


Hmmm, I think there will be no answer to this question, given that it was written in 2009, but for the sake of argument. If you need to handle bugs and know the internals of Opera DOM support, you want to use dragonfly for a web developer tool .



0


a source







All Articles