1

DISQUS を切り抜いて読み込んで表示し、AJAX が提供するページで簡単にリロードします。

var id = this.getIdentifier(),
        disqus_shortname = 'myportal',
        disqus_identifier = id,
        disqus_title = id,
        disqus_url = "http://" + document.domain + "/#!" + id;

if ($('head script[src="http://' + disqus_shortname + '.disqus.com/embed.js"]').length == 0) {
        (function () {
                var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
                dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
                (document.getElementsByTagName('head')[0]).appendChild(dsq);
        })();
}

if (typeof DISQUS != "undefined") {
        DISQUS.reset({
                reload: true
        });
}

それでも、同じスレッドを他の URL (同一の場所) にロードしようとすると、空白の (新しい) 議論が生じます。

それらの両方に類似のスレッドをロードしようとしています:

var id = "Disqusion about coding";
DISQUS.reset({
        reload: true,
        config: function () {
                this.page.identifier = id;  
                this.page.url = "http://myportal.com/#!" + id;
        }
});

別の新しい脅威を与えます。

4

2 に答える 2