<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Does JavaScript works in HTML Nprinting in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Does-JavaScript-works-in-HTML-Nprinting/m-p/114928#M4119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are creating an HTML template with Javascript in the header section. When you embbed it into the email body Qlik NPrinting will send only the &amp;lt;body&amp;gt;&amp;lt;/body&amp;gt; part and delete the &amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;. This is for security reasons and to be sure that the email client will be able to render the report in the message body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you move the code into the body part of the HTML report Qlik NPrinting will send it but it could be removed by the SMTP server or by the email client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest to avoid to use Javascript in email bodies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ruggero&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When applicable please mark the appropriate replies as CORRECT &lt;/SPAN&gt;&lt;A class="jive-link-wiki-small" data-containerid="2001" data-containertype="14" data-objectid="14806" data-objecttype="102" href="https://community.qlik.com/docs/DOC-14806"&gt;https://community.qlik.com/docs/DOC-14806&lt;/A&gt;&lt;SPAN&gt;. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2018 13:38:54 GMT</pubDate>
    <dc:creator>Ruggero_Piccoli</dc:creator>
    <dc:date>2018-09-11T13:38:54Z</dc:date>
    <item>
      <title>Does JavaScript works in HTML Nprinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Does-JavaScript-works-in-HTML-Nprinting/m-p/114927#M4118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am trying to embed a straight table in email body by using Nprinting,&lt;/P&gt;&lt;P&gt;for merging rows am using JavaScript.its working fine in preview but when i trigger the mail its not working.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Need Help Regarding this. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 09:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Does-JavaScript-works-in-HTML-Nprinting/m-p/114927#M4118</guid>
      <dc:creator>vinay_skpk</dc:creator>
      <dc:date>2018-09-11T09:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Does JavaScript works in HTML Nprinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Does-JavaScript-works-in-HTML-Nprinting/m-p/114928#M4119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are creating an HTML template with Javascript in the header section. When you embbed it into the email body Qlik NPrinting will send only the &amp;lt;body&amp;gt;&amp;lt;/body&amp;gt; part and delete the &amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;. This is for security reasons and to be sure that the email client will be able to render the report in the message body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you move the code into the body part of the HTML report Qlik NPrinting will send it but it could be removed by the SMTP server or by the email client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest to avoid to use Javascript in email bodies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ruggero&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When applicable please mark the appropriate replies as CORRECT &lt;/SPAN&gt;&lt;A class="jive-link-wiki-small" data-containerid="2001" data-containertype="14" data-objectid="14806" data-objecttype="102" href="https://community.qlik.com/docs/DOC-14806"&gt;https://community.qlik.com/docs/DOC-14806&lt;/A&gt;&lt;SPAN&gt;. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 13:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Does-JavaScript-works-in-HTML-Nprinting/m-p/114928#M4119</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2018-09-11T13:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Does JavaScript works in HTML Nprinting</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Does-JavaScript-works-in-HTML-Nprinting/m-p/114929#M4120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Java script will not work on HTML report embedded in email body as all mail clients are switching it off so it does not carry any harmful scripts. Therefore even if you have correct html code with JS it will still not work in mail client, but you might be able to use:"open mail in browser" function to preview it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the code side - Ruggero is right, you need to have your script in BODY section for it to be moved to email content&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 22:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Does-JavaScript-works-in-HTML-Nprinting/m-p/114929#M4120</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2018-09-11T22:01:42Z</dc:date>
    </item>
  </channel>
</rss>

