<?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 Calling javascript function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calling-javascript-function/m-p/1157263#M377419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;I need to call javascript function from Qlikview application table or at least open links in the same or parent window.&lt;BR /&gt; &lt;BR /&gt; Calling javascript function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;1. JS macros don’t run on server&lt;BR /&gt; 2. By creating link in expression e.g.: ‘run js &amp;lt;url&amp;gt; javascript:functionName();‘ we get: &amp;lt;a href=”javascript:functionName();” target=”_blank”&amp;gt; run js&amp;lt;/a&amp;gt; which doesn’t work in IE and opens new window.&lt;BR /&gt; We are able to change it in opendoc.htm file using javascript and remove or change the target attribute, but it is not good and stable solution in our opinion.&lt;BR /&gt; &lt;BR /&gt; My question is: How is it possible to remove target=”_blank” from Qlikview application links, or to call javascript function from onclick event.&lt;BR /&gt; &lt;BR /&gt; We need to achive something like this: ‘run js &amp;lt;url target=”_top”&amp;gt;run js’ or better: ‘run js&amp;lt;url onclick=’functionName(); return false;’&amp;gt;#’&lt;BR /&gt; &lt;BR /&gt; In html: &amp;lt;a href=”#” onclick=’functionName(); return false;’&amp;gt;run js&amp;lt;/a&amp;gt;&lt;BR /&gt; or &amp;lt;button onclick="functionName();"&amp;gt;run js&amp;lt;/button&amp;gt;&lt;BR /&gt; &lt;BR /&gt; Thank you a lot for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2016 10:45:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-01T10:45:47Z</dc:date>
    <item>
      <title>Calling javascript function</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-javascript-function/m-p/1157263#M377419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;I need to call javascript function from Qlikview application table or at least open links in the same or parent window.&lt;BR /&gt; &lt;BR /&gt; Calling javascript function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;1. JS macros don’t run on server&lt;BR /&gt; 2. By creating link in expression e.g.: ‘run js &amp;lt;url&amp;gt; javascript:functionName();‘ we get: &amp;lt;a href=”javascript:functionName();” target=”_blank”&amp;gt; run js&amp;lt;/a&amp;gt; which doesn’t work in IE and opens new window.&lt;BR /&gt; We are able to change it in opendoc.htm file using javascript and remove or change the target attribute, but it is not good and stable solution in our opinion.&lt;BR /&gt; &lt;BR /&gt; My question is: How is it possible to remove target=”_blank” from Qlikview application links, or to call javascript function from onclick event.&lt;BR /&gt; &lt;BR /&gt; We need to achive something like this: ‘run js &amp;lt;url target=”_top”&amp;gt;run js’ or better: ‘run js&amp;lt;url onclick=’functionName(); return false;’&amp;gt;#’&lt;BR /&gt; &lt;BR /&gt; In html: &amp;lt;a href=”#” onclick=’functionName(); return false;’&amp;gt;run js&amp;lt;/a&amp;gt;&lt;BR /&gt; or &amp;lt;button onclick="functionName();"&amp;gt;run js&amp;lt;/button&amp;gt;&lt;BR /&gt; &lt;BR /&gt; Thank you a lot for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 10:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-javascript-function/m-p/1157263#M377419</guid>
      <dc:creator />
      <dc:date>2016-07-01T10:45:47Z</dc:date>
    </item>
  </channel>
</rss>

