Using problems with Phonegap and Disqus javascript SDK

I am using the Phonegap SDK and Disqus javascript and the following error message appears:

"Unable to send the message http://disqus.com . The recipient has the source file: //."

Any help would be greatly appreciated. I would like to find a solution to work on iOS + Android.

Cordoba / Phonegap 1.9

DISQUS CODE:

    <div id="disqus_thread"></div>
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
        var disqus_shortname = 'phonegap-app'; // required: replace example with your forum shortname

        /* * * DON'T EDIT BELOW THIS LINE * * */
        (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] || document.getElementsByTagName('body')[0]).appendChild(dsq);
        })();
    </script>
    <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
    <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
+5
source share
1 answer

This usually means that you are viewing the page through the file: // URL. You can fix this by showing the page from the local web server.

0
source

All Articles