Why "bye (1)"; in the answer of XmlHttpRequest?

Possible duplicate:
Why does Google add while (1); to their JSON answers?

I play firebug with google calendar. I found that some kind of XHR request has a response as shown below:

while(1);[['us','bW9yZ2FuLmNoZW5nbW9AZ21haWwuY29t 20090320/20090904 63378122163']] 

It looks like JSON with a jQuery statement prefix.

I'm not sure why there is such an XHR answer on Google Calendar. Is there any known AJAX practice about this?

+47
json javascript ajax
May 16 '09 at 2:05 a.m.
source share

No one has answered this question yet.

See similar questions:

3915
Why does Google add while (1); in your JSON answers?
6
XSRF-protected session logon (cross-site-request-forgery) session in GWT
four
How does `while (1) {}` help prevent CSRF?
2
What does (1) do in Gmail
0
What type is json gzip

or similar:

5129
How to return a response from an asynchronous call?
4523
"Thinking in AngularJS" if I have jQuery background?
3915
Why does Google add while (1); in your JSON answers?
1986
What is JSONP and why was it created?
1693
Why is using a "for ... in" with array iteration a bad idea?
1511
Why ++ [[]] [+ []] + [+ []] returns the string "10"?
190
Why do people put code like "throw 1, <not evil>" and "for (;;)"; before json answers?
187
What triggers the Ajax response, for example: for (;;); {json data} 'mean?



All Articles