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 <[EMAIL PROTECTED]> 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
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to