1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Exists] AjaxProgress Hook

Discussion in 'Closed Suggestions' started by Wootalyzer, Feb 4, 2011.

  1. Wootalyzer

    Wootalyzer Active Member

    It would be nice to have some sort of hook into AjaxProgress. On some pages, we have a script running which polls every 5 seconds for a status message, and our users complain about the flashing progress bar in the top right.

    As far as I can tell, it's impossible to change this functionality without modifying the stock xenforo js. You can't prototype XenForo.AjaxProgress, and you can't hide the overlay for only specific requests, so what would be the recommended way of handling this situation?
     
  2. Mike

    Mike XenForo Developer Staff Member

    You can disable it on a per request basis. Look at the "global" option: http://api.jquery.com/jQuery.ajax/ You can pass that to our XenForo.ajax method in the options object.
     
    digitalpoint likes this.
  3. Wootalyzer

    Wootalyzer Active Member

    Wow, you learn something new every day! I would have never thought to look in the calling method *facepalm*
     

Share This Page