All Collections
Developer
Using Disqus on AJAX sites
Using Disqus on AJAX sites
Disqus avatar
Written by Disqus
Updated over a week ago

Reloading a Disqus thread within an AJAX application is possible with the following code:

DISQUS.reset({
  reload: true,
  config: function () {  
    this.page.identifier = "newidentifier";  
    this.page.url = "http://example.com/#!newthread";
  }
});

See the DISQUS API Recipes repo on Github for an example DISQUS.reset recipe.
โ€‹
This method should also be used to set up distinct threads on infinite scroll pages.

Requirements

  • Both variables this.page.identifier and this.page.URL

  • Full hashbang #!

Did this answer your question?