<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Behaviour of Javascript in a QCH file is not consistent]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">I'm trying to run some javascript in my html documentation. To test this I created a very simple <code>index.html</code> and <code>simple.qhp</code> , generating a .qch with <code>qhelpgenerator simple.qhp -o simple.qch</code> and visualizing it using qtAssistant.  The body of  <code>index.html</code> looks like this :</p>
<pre><code> &lt;p&gt;Hi there, today's the &lt;span id="demo"&gt;&lt;/span&gt; !&lt;/p&gt;
 &lt;script&gt;
     document.getElementById("demo").innerHtml = new Date();
 &lt;/script&gt;
</code></pre>
<p dir="auto">The strange thing is that it's working fine on Arch but not on KDENeon (using system Qt5 installed via pacman/apt). Both Qt version are 5.12.2. Is it because the 2 releases do not ship the same features or is there something else ?</p>
<p dir="auto">[Update]<br />
So I tested using the release version 5.12.2 from qt website (both offline and online) on KDENeon and Windows and it's not working either.<br />
So the question would actually be : is QHelper supposed to support JavaScript ? That would mean Arch's QAssistant executing  JS would be a bug.<br />
[Update2]<br />
QAssistant seems to be the key since Arch's QAssistant can read the .qch file generated by any of mentioned version of <code>qhelpgenerator</code></p>
]]></description><link>https://forum.qt.io/topic/122650/behaviour-of-javascript-in-a-qch-file-is-not-consistent</link><generator>RSS for Node</generator><lastBuildDate>Thu, 01 Oct 2026 17:27:16 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/122650.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Jan 2021 08:35:22 GMT</pubDate><ttl>60</ttl></channel></rss>