[jQuery] Re: Q: on handling GET JSON

2008-01-23 Thread Kynn Jones
On Jan 23, 2008 7:44 AM, Kynn Jones <[EMAIL PROTECTED]> wrote: In fact, what the post does... > I meant to write "In fact, what the posted code does..." Sorry for the typo. kynn

[jQuery] Re: Q: on handling GET JSON

2008-01-23 Thread Kynn Jones
Thanks, but I don't follow what you write here. The test !s.url.indexOf("http") evaluates to !0 == TRUE when the s.url begins with "http". It is then that

[jQuery] Re: Q: on handling GET JSON

2008-01-22 Thread Hamish Campbell
> This code suggests to me that jQuery expects such data to come only from > relative URLs, but I don't understand what justifies this expectation. security? Prevent XSS attacks most likely.

[jQuery] Re: Q: on handling GET JSON

2008-01-22 Thread h0tzen
i think the key-check is this: !s.url.indexOf("http") "file://foo/bar" cant be requested via XHR, so