Note that there are some explanatory texts on larger screens.

plurals
  1. POSencha Touch: setting up autoload to include html file
    text
    copied!<p>I have set up a simple panel in Sencha Touch with 2 tabs:</p> <pre><code>ToolbarDemo.views.Homecard = Ext.extend(Ext.TabPanel, { title: "home", iconCls: "home", defaults: { styleHtmlContent: true }, items: [{ title: 'Playlist', scroll: 'vertical', html: 'test' },{ title: 'Comments', scroll: 'vertical', autoLoad: {url: 'disqus.html', scripts: true} }] }); Ext.reg('homecard', ToolbarDemo.views.Homecard); </code></pre> <p>On the 'Comments' tab I am trying to include a disqus.html file which is at the same level as the index.html file for my app, but nothing is showing up. From googling about it would seem that I have entered the autoload code correctly, but perhaps I have missed out another step?</p> <p>Could someone help me on my way?</p> <p>Thanks,</p> <p>Nick</p> <p>Disqus code:</p> <pre><code>&lt;div id="disqus_thread"&gt;&lt;/div&gt; &lt;script type="text/javascript"&gt; /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_shortname = 'monthlymixup'; // required: replace example with your forum shortname // The following are highly recommended additional parameters. Remove the slashes in front to use. var disqus_identifier = 'test'; // var disqus_url = 'http://example.com/permalink-to-page.html'; /* * * 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); })(); &lt;/script&gt; &lt;noscript&gt;Please enable JavaScript to view the &lt;a href="http://disqus.com/?ref_noscript"&gt;comments powered by Disqus.&lt;/a&gt;&lt;/noscript&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload