#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)
Change History (6)
comment:1 Changed 14 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Changed 14 years ago by
Attachment: | getXML.html added |
---|
Changed 14 years ago by
Attachment: | IOfunctions.js added |
---|
comment:2 Changed 14 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
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 14 years ago by
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
You've neglected the required call to dojo.hostenv.writeIncludes().
Please refer to the debugAtAllCosts documentation here: http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book122
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..)