Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#2927 closed defect (worksforme)

with debugAtAllCosts: true, a json answer turns to true

Reported by: guest Owned by: alex
Priority: high Milestone:
Component: IO Version: 0.4.2
Keywords: debugAtAllCosts json answer request Cc:
Blocked By: Blocking:

Description

I send a request like that : var bindArgs = {

url: someUr;, load: function(type, data, evt) {

makeSthWith(data);

}, mimetype: "text/json"

}; var req = dojo.io.bind(bindArgs);

when debugAtAllCosts: true, "data" is a boolean with "true" value, whereas it should be a list.

Attachments (2)

getXML.html (2.0 KB) - added by guest 13 years ago.
IOfunctions.js (964 bytes) - added by guest 13 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 13 years ago by James Burke

Resolution: worksforme
Status: newclosed

Trying this test with debugAtAllCosts set to true seems fine with JSON responses (Dojo 0.4.2): tests/io/test_BrowserIO.json.html

Closing the bug for now, but feel free to reopen with a more complete test case and describe what type of build are you using (xdomain ajax build, regular widget build, etc..)

Changed 13 years ago by guest

Attachment: getXML.html added

Changed 13 years ago by guest

Attachment: IOfunctions.js added

comment:2 Changed 13 years ago by guest

Resolution: worksforme
Status: closedreopened

I add a test case. So if you add debugAtAllCosts: true, the list of files are not created, as it returns true from the server. Example of what the server must return for one list : ["RNGtoHTMLform.xsl","RNGtoHTMLform_standalone.xsl"]

comment:3 Changed 13 years ago by sjmiles

Resolution: worksforme
Status: reopenedclosed

You've neglected the required call to dojo.hostenv.writeIncludes().

Please refer to the debugAtAllCosts documentation here: http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book122

comment:4 Changed 12 years ago by (none)

Milestone: 0.4.3

Milestone 0.4.3 deleted

Note: See TracTickets for help on using tickets.