[jQuery] JSONP timestamp parameter (Answered)
I'm re-posting this message, which I originally posted to the
Development list by my mistake, for those to find on a search for a
similar problem.
Answer included:
---------------------------------------------------
I've written a Picasa Webalbum integration script that uses the JSONP
calls for collecting the necessary data from the Picasa API feeds.
I had to adapt jQuery (v.1.2.3) to NOT include the timestamp
(&_=12345678) to the request because this results in a "Invalid Query
Param" from the API.
I might make it a jQuery plugin, but the above has to change for that.
Can this param be made optional in some way so that I can use the
original jQuery.js (and even the jquery.pack.js) and other users don't
need to adapt their jquery to be able to work with my script.
I hope the above makes any sense...
-------------------
ANSWER:
-------------------
add the "cache" param: cache:true
$.ajax({
cache:true,
})
by Benjamin Sterling
--------------------
Excellent! Thx a lot Benjamin!
My code is now compliant to jQuery :-)
for those interested, demo at: http://www.multiprof.nl/pwi/
(early alpha)
Regards,
JD