2009/10/29 waseem sabjee <waseemsab...@gmail.com>: > The most likely reason is that do is a JavaScript "Key Word" > > On Thu, Oct 29, 2009 at 12:53 PM, lionel28 <lmarte...@haitiwebs.net> wrote: >> >> I am sure most of you guys already know it, but I just found out that IE >> does >> not like the word "do" >> >> I was doing an ajax called and I had >> >> data: { >> do : "uploadgame" >> >> and I kept on getting that error >> >> expected identifier, string or number, >>
As Waseem points out, the error was due to "do" being a JavaScript keyword. You don't state in which browser(s) it worked correctly, but I would bet it was a recent version of Firefox: it will also cause an error in Chrome, and probably in Safari and Opera too. The reason it will work in recent builds of Firefox is that they already incorporate some changes which are due to arrive in the ECMAScript version 5 specification next year, which will allow such reserved words to be used in that context. Regards, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/