Posted By

Tyde on 10/07/11


Tagged

ajax load cash Non


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jillella


Ajax non load cash


 / Published in: jQuery
 

From time to time I need a Ajax function to not cashe the template it load. I only have notest this problem in IE.

  1. function LoadmainContent () {
  2. $('div#maincontent').hide('clip',100,function() {
  3. $(this).load('some_page.tmp' + '?rnd='+ String((new Date()).getTime()).replace(/\D/gi, ''),function() {
  4. $(this).show('scale',800);
  5. }
  6. });
  7. }

Report this snippet  

You need to login to post a comment.