Well, a proxy is not possible right now. A small question regarding the
caching you mentioned. My URL for successful queries could be same, for
example, http://my.site.com/app/gettime, but obviously, the response need
not.

How can I make sure the responses are not cached? (And I don't control the
remote server, so I can't change the URL :) )

Thanks for the help.
Shine on!

-----

The code to do this is really simple. In fact, the very first jQuery plugin
was this one that I wrote a year ago:

http://mg.to/2006/01/25/json-for-jquery

Be sure to read the comments for some IE memory issues and other notes.
Also, the code uses "(new Date).getTime()" to generate a unique callback
function name. This was a really bad idea! Besides not always being unique
(if you make two JSON calls in quick succession), it wreaks havoc with
caching, since each JSON call will have a different URL. The code I'm
currently using takes a callback function name as an argument to the
$.json() call.

A server-side proxy like the one Jake posted is also a great way to do this,
if that approach works for you.

-Mike


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/



-- 
View this message in context: 
http://www.nabble.com/Same-site-Restrictions-on-Ajax%3A-Does-%24.getScript-help--tf3469847.html#a9687549
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to