/ 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.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
function LoadmainContent () {
$('div#maincontent').hide('clip',100,function() {
$(this).load('some_page.tmp' + '?rnd='+ String((new Date()).getTime()).replace(/\D/gi, ''),function() {
$(this).show('scale',800);
}
});
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                