We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42810
    • 8 Posts
    Hi, I've a snippet which refresh every 10s my <div>, working everywhere whith evo but on revo,working only on firefox ....
    Somebody can help me please ?
    <script src="http://ajax.googleapis.com/ajax/
    libs/jquery/1.3.0/jquery.min.js"></script>
    
    <script>
    $.ajaxSetup({
        // remove cache for IE
        cache: false
    });
    var auto_refresh = setInterval(
    window.onload=function()
    {
    $('#bloc').slideUp().load('/interne/contenualeatoireilsontdit.html').slideDown();
    }, 10000);
    </script>
    
    <div id="bloc"></div>



    Sorry for my english, I come from the land of frog eater, lol
    • I would be inclined to consider the link in the load parameter. You might be better off using [[~xxx]] to generate the URL automatically. Does it work at least one time without the repeat?

      I ate frogs in California; tasted like swampy chicken wings. I presume that you are not referring to that locale, though?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 42810
        • 8 Posts
        it works now!!!!!
        It has cache probleme configuration on modx !
        Thank you from France ;-) [ed. note: littlekev34 last edited this post 11 years, 2 months ago.]