Skip to main content

Bug Tracker

Side navigation

#3487 closed bug (invalid)

Opened October 16, 2008 06:57AM UTC

Closed January 08, 2009 03:45AM UTC

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 () {},

Attachments (0)
Change History (3)

Changed October 17, 2008 02:27PM UTC by flesler comment:1

cc: → ervsun, flesler
need: ReviewTest Case

Should be the other way around.

Do you got this online ? or a small demo that reproduces the problem.

Changed October 28, 2008 12:45PM UTC by renan.saddam comment:2

It is a wrong usage of Javascript.

You can not do {a, b, }, you should do {a, b}.

Changed January 08, 2009 03:45AM UTC by dmethvin comment:3

resolution: → invalid
status: newclosed

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