Bug Tracker

Opened 11 years ago

Closed 11 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",

data: {foo:test?,foo:test?},

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 11 years ago by flesler

Cc: ervsun flesler added
need: ReviewTest Case

Should be the other way around. Do you got this online ? or a small demo that reproduces the problem.

comment:2 Changed 11 years ago by renan.saddam

It is a wrong usage of Javascript. You can not do {a, b, }, you should do {a, b}.

comment:3 Changed 11 years ago by dmethvin

Resolution: invalid
Status: newclosed

IE does not allow a trailing comma, but this is not something jQuery controls.

Note: See TracTickets for help on using tickets.