0

I'm try to POST data with ajax by using DOJO(v. 1.8.1)

request.post("http://someweb.com/service", {
    headers: {
        "Content-Type": "application/x-www-form-urlencoded"
    },
    handleAs: "text",
    sync: false
}).then(function (text) {
       console.log("The server returned: ", text);
});

When POST a data it doesn't show a log message in Tab Console of FireBug but shows in Tab Net instead.

enter image description here

NOTE : I'm already require "dojo/request" and log on dojo ready it's working OK. No any error.

Why it shows in Tab Net and how can I fix it? I have no idea what wrong with my code.

4

0 回答 0