Opened 15 years ago
Closed 15 years ago
#3487 closed bug (invalid)
Hi,I find a little bug
Reported by: | ervsun | Owned by: | |
---|---|---|---|
Priority: | trivial | Milestone: | 1.3 |
Component: | ajax | Version: | 1.2.6 |
Keywords: | , | Cc: | ervsun, flesler |
Blocked by: | Blocking: |
Description
CODE eg: $.ajax ({
global: true,
processData: true,
async: true, cache: false,
ifModified :false, timeout :6000,
dataType: "json", contentType: "application/x-www-form-urlencoded",
type: "GET",
url: "data.json",
beforeSend: function (XMLHttpRequest) { }, success: function (data, textStatus) {
pp(data, textStatus);
}, error: function (XMLHttpRequest, textStatus, errorThrown) {
},
complete: function (XMLHttpRequest, textStatus) {
},
})
This bug is about "," ,At the end of $ajax config
If you write like this "complete: function () {}" then IE6 show error, Firefox and opera is good.
But If write like "complete: function () {}," then all is fine. check it out please.
complete: function () {} complete: function () {},
Change History (3)
comment:1 Changed 15 years ago by
Cc: | ervsun flesler added |
---|---|
need: | Review → Test Case |
comment:2 Changed 15 years ago by
It is a wrong usage of Javascript. You can not do {a, b, }, you should do {a, b}.
comment:3 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
IE does not allow a trailing comma, but this is not something jQuery controls.
Should be the other way around. Do you got this online ? or a small demo that reproduces the problem.