Include a cache buster in the url (a different value for every request)...
the Date().getTime() value should be good for this
var cacheBuster = new Date().getTime();
var pars =
''table=''+this.config[''table'']+''&op=update&id=''+id
+ ''&timeStamp=''
+ cacheBuster;
On 5/25/06, Fernando <fernando-YZKC1iyWIStfJ/NunPodnw@public.gmane.org>
wrote:>
> Hi, I''m using like this
>
> var pars =
''table=''+this.config[''table'']+''&op=update&id=''+id;
> new Ajax.Request(
> this.config[''url''],
> {
> method: ''get'',
> parameters: pars,
> onSuccess: function(t) {
> t.responseText.evalScripts();
> }
>
> }
> )
>
> my page print <script> alert( the currect time ) </script>
>
> My problemn is....
> That I''m getting cached values, always the same time... I need to
reopen
> the browser for new values....
>
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs