<?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: Interactive HTML hyperlink doesnt work in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-hyperlink-doesnt-work/m-p/29367#M19399</link>
    <description>&lt;P&gt;After talking with &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4451"&gt;@Melanie_J_Drake﻿&lt;/a&gt; about JSL, I realised my suggestion wasn't so easy to implement.&lt;/P&gt;
&lt;P&gt;With her advice and help from this discussion &lt;A href="https://community.jmp.com/t5/Discussions/How-to-generate-buttons-within-a-loop/td-p/9823" target="_self"&gt;How-to-generate-buttons-within-a-loop&lt;/A&gt;, I figured I should help you out a bit more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following for your first For loop:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 1, i &amp;lt; 10, i++, ( 
	event = Char( :event_number[i]);
	url = (EvalInsert( "http://test.new.com/^event^"));
	button_expr = evalinsert("\[one_button = button box("^event^", web("^url^"), &amp;lt;&amp;lt;underlinestyle)]\");
       eval(parse(button_expr));
  	v &amp;lt;&amp;lt; append(one_button);
  )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2016 19:22:59 GMT</pubDate>
    <dc:creator>John_Powell_JMP</dc:creator>
    <dc:date>2016-11-18T19:22:59Z</dc:date>
    <item>
      <title>Interactive HTML hyperlink doesnt work</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-hyperlink-doesnt-work/m-p/29332#M19378</link>
      <description>&lt;P&gt;I have a script which combines to vlistboxes with button boxes that have hyperlinks in a data table. I save the data table into a report which is an interactive html file. When I save as interactive html, the hyperlinks are disabled. Is there a way to enable them? When I save the data table as regular html, the hyperlinks work but the vlistboxes have different cell sizes and the report looks awful. Is there a way to fix the cell sizes of vlistboxes? I tried putting the vlistboxes in lineup boxes with a fixed size. It looks fine in the journal but once I save to html the formatting is lost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is atttached, any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 23:16:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-HTML-hyperlink-doesnt-work/m-p/29332#M19378</guid>
      <dc:creator>tsolomon</dc:creator>
      <dc:date>2016-11-17T23:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive HTML hyperlink doesnt work</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-hyperlink-doesnt-work/m-p/29350#M19392</link>
      <description>&lt;P&gt;Interactive HTML can only enable hyperlink buttons with a simple web expression in their script. Your example produces button scripts that look like:&lt;/P&gt;
&lt;P&gt;Web("&lt;A href="http://test.new.com/" target="_blank"&gt;http://test.new.com/&lt;/A&gt;" || Char(:event_number[i]));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your script could produce buttons with simple web links in their button script like:&lt;/P&gt;
&lt;P&gt;Web("&lt;A href="http://test.new.com/" target="_blank"&gt;http://test.new.com/&lt;/A&gt;");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They should work when saved as Interactive HTML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2016 15:36:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-HTML-hyperlink-doesnt-work/m-p/29350#M19392</guid>
      <dc:creator>John_Powell_JMP</dc:creator>
      <dc:date>2016-11-18T15:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive HTML hyperlink doesnt work</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-hyperlink-doesnt-work/m-p/29367#M19399</link>
      <description>&lt;P&gt;After talking with &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4451"&gt;@Melanie_J_Drake﻿&lt;/a&gt; about JSL, I realised my suggestion wasn't so easy to implement.&lt;/P&gt;
&lt;P&gt;With her advice and help from this discussion &lt;A href="https://community.jmp.com/t5/Discussions/How-to-generate-buttons-within-a-loop/td-p/9823" target="_self"&gt;How-to-generate-buttons-within-a-loop&lt;/A&gt;, I figured I should help you out a bit more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following for your first For loop:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 1, i &amp;lt; 10, i++, ( 
	event = Char( :event_number[i]);
	url = (EvalInsert( "http://test.new.com/^event^"));
	button_expr = evalinsert("\[one_button = button box("^event^", web("^url^"), &amp;lt;&amp;lt;underlinestyle)]\");
       eval(parse(button_expr));
  	v &amp;lt;&amp;lt; append(one_button);
  )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2016 19:22:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-HTML-hyperlink-doesnt-work/m-p/29367#M19399</guid>
      <dc:creator>John_Powell_JMP</dc:creator>
      <dc:date>2016-11-18T19:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive HTML hyperlink doesnt work</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-hyperlink-doesnt-work/m-p/29379#M19403</link>
      <description>&lt;P&gt;This works great. I now have active hyperlinks in my intteractive html file. Thanks for the prompt support!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Tesfu&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2016 21:13:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-HTML-hyperlink-doesnt-work/m-p/29379#M19403</guid>
      <dc:creator>tsolomon</dc:creator>
      <dc:date>2016-11-18T21:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive HTML hyperlink doesnt work</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-hyperlink-doesnt-work/m-p/215002#M42988</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;&lt;SPAN class="token function"&gt;I want to open an image, instead of a web page and modified the code from above like this:&lt;BR /&gt;&lt;BR /&gt;For&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; i &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; i &lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;10&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; i&lt;SPAN class="token operator"&gt;++&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; 
	event &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Char&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;event_number&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	url &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;EvalInsert&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"http://test.new.com/^event^"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	button_expr &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;evalinsert&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"\[one_button = button box("&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;^&lt;/SPAN&gt;event&lt;SPAN class="token operator"&gt;^&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;", &lt;/SPAN&gt;&lt;SPAN class="token string"&gt;New Window( "Name_xxx", open( img_path, "png")))]\"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
       &lt;SPAN class="token function"&gt;eval&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;parse&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;button_expr&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  	v &lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt; append&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;one_button&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;&lt;BR /&gt;This works fine in the jmp report. However, when I create manually an interactive html the links do not work anymore, but give the message: "Disabled script button", when I try to hit the button!&lt;BR /&gt;Any suggestions?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 13:49:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-HTML-hyperlink-doesnt-work/m-p/215002#M42988</guid>
      <dc:creator>SKR</dc:creator>
      <dc:date>2019-06-27T13:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive HTML hyperlink doesnt work</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-hyperlink-doesnt-work/m-p/403753#M65431</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15212"&gt;@SKR&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this to work, the expression needs to be a&amp;nbsp;&lt;SPAN&gt;simple web expression, like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Web("&lt;A href="http://test.new.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://test.new.com/&lt;/A&gt;");&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Open(image_path, png); &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;will not work, because Open does not have support in Interactive HTML like the Web command.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you could modify your code to combine the image file name in the URL and use the Web command instead of Open, the Web command should look something like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Web("&lt;A href="http://test.new.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://test.new.com/&lt;/A&gt;image1.png");&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is a simple web expression, which should work when saved as interactive HTML.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope that helps,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;~John&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 22:05:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-HTML-hyperlink-doesnt-work/m-p/403753#M65431</guid>
      <dc:creator>John_Powell_JMP</dc:creator>
      <dc:date>2021-07-25T22:05:37Z</dc:date>
    </item>
  </channel>
</rss>

