Thursday, October 29, 2009

[jQuery] Re: Just discovered something

Do is a reserved identifier. The same goes for while, if, etc. If you
must use those keys, surround them in strings:
data:{
"do": "se-min-kuk"
}

On 29 Okt, 11:53, 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,
>
> Once I changed that 'do' into something else, it was fixed in IE
> --
> View this message in context:http://www.nabble.com/Just-discovered-something-tp26110812s27240p2611...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

No comments: