Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Issue with one page website showing multiple Disqus threads with hash url

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #165908
    Chris Lowles
    Participant

    Im trying to get a flow on my website going where a hash with a unique name at the end of a url determines what Disqus thread my site loads up.

    At the moment I’ve got this.

    var disqus_shortname = "vijo-threads";
    (function() {
        var dsq = document.createElement("script");
        dsq.type = "text/javascript";
        dsq.async = true;
        dsq.src = "//" + disqus_shortname + ".disqus.com/embed.js";
        (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(dsq);
    })();
    

    I’d like to know since my trys at doing this have failed.

    #165951
    Chris Lowles
    Participant

    Also, I’m aiming for something where a different hash at the end of the url shows a different thread in the Disqus object

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.