We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15001
    • 697 Posts
    Hi everyone,

    There is a small bug when using the ajaxify.js script together with the jQuery Thickbox and for Microsoft Internet Explorer only (version cool.

    See this post for explanations and an example : http://modxcms.com/forums/index.php/topic,43645.msg262130.html#msg262130

    All works fine with other browsers. The example page is valid XHTML.

    Can someone solve this bug ?
      • 15001
      • 697 Posts
      EDIT:
      Solved. Avoiding the caching of the content returned by Ajax could be done by appending to the url a parameter with a random number generated by Javascript.

      Hi everyone,

      Using ajaxify.js on an e-commerce catalog page to refresh a cart view after some "Add to cart" button was clicked, I observe that the returned content often displays a cart view that is not up to date.

      Does this come from the htmlhttprequest.js script from Twinhelix?

      I assume either some caching or an asynchroneous nature of the ajax request.

      The content returned by Ajax is an uncached MODx document, which itself contains an uncached snippet call to TreasureChest’s cart service.
      So everything should be uncached.

      Is there any trick to come over this problem?

      J.
        • 8883
        • 59 Posts
        Hi, nice JS, i'm using it for my search results page. Where I have to add a forced scroll-to-top function?
        Something like:
        $(document).load().scrollTop(0);
        I guess.
        Reason is, because I have a results navigation at the bottom of the page.
        Unfortunately my programming/JS knowledge is bad, so i'm relied on your help pls.
        Thanks
        M.