交互式 HTML 超鏈接不起作用我有一個腳本,它結合了 vlistboxes 和在數據表中有超鏈接的按鈕框。 我將數據表保存到一個報告中,該報告是一個交互式 html 文件。 當我另存為交互式 html 時,超鏈接被禁用。 有沒有辦法啟用它們? 當我將數據表保存為常規 html 時,超鏈接有效但 vlistboxes 具有不同的單元格大小並且報告看起來很糟糕。 有沒有辦法修復 vlistboxes 的單元格大小? 我嘗試將 vlistboxes 放在固定大小的 lineup boxes 中。 它在日誌中看起來不錯,但是一旦我保存為 html,格式就會丟失。
代碼已附上,非常感謝任何幫助。
回复:交互式 HTML 超鏈接不起作用你好@SKR ,
為此,表達式需要是簡單的網絡表達,例如:
網絡(“ http://test.new.com/ ");
打開(圖像路徑,png);
將不起作用,因為 Open 在交互式 HTML 中不支持 Web 命令。
如果您可以修改代碼以在 URL 中組合圖像文件名並使用 Web 命令而不是 Open,則 Web 命令應如下所示:
網絡(“ http://test.new.com/ image1.png");
這是一個簡單的 Web 表達式,在另存為交互式 HTML 時應該可以使用。
希望有所幫助,
~約翰
回复:交互式 HTML 超鏈接不起作用
<SPAN class="token function">I want to open an image, instead of a web page and modified the code from above like this:<BR /><BR />For</SPAN><SPAN class="token punctuation">(</SPAN> i <SPAN class="token operator">=</SPAN> <SPAN class="token number">1</SPAN><SPAN class="token punctuation">,</SPAN> i <SPAN class="token operator"><</SPAN> <SPAN class="token number">10</SPAN><SPAN class="token punctuation">,</SPAN> i<SPAN class="token operator">++</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token punctuation">(</SPAN>
event <SPAN class="token operator">=</SPAN> <SPAN class="token function">Char</SPAN><SPAN class="token punctuation">(</SPAN> <SPAN class="token punctuation">:</SPAN>event_number<SPAN class="token punctuation">[</SPAN>i<SPAN class="token punctuation">]</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
url <SPAN class="token operator">=</SPAN> <SPAN class="token punctuation">(</SPAN><SPAN class="token function">EvalInsert</SPAN><SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"http://test.new.com/^event^"</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
button_expr <SPAN class="token operator">=</SPAN> <SPAN class="token function">evalinsert</SPAN><SPAN class="token punctuation">(</SPAN><SPAN class="token string">"\[one_button = button box("</SPAN><SPAN class="token operator">^</SPAN>event<SPAN class="token operator">^</SPAN><SPAN class="token string">", </SPAN><SPAN class="token string">New Window( "Name_xxx", open( img_path, "png")))]\"</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
<SPAN class="token function">eval</SPAN><SPAN class="token punctuation">(</SPAN><SPAN class="token function">parse</SPAN><SPAN class="token punctuation">(</SPAN>button_expr<SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
v <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN><SPAN class="token messages"> append</SPAN><SPAN class="token punctuation">(</SPAN>one_button<SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
<SPAN class="token punctuation">)</SPAN>
<SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;<BR /><BR />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!<BR />Any suggestions?<BR /></SPAN>
回复:交互式 HTML 超鏈接不起作用這很好用。 我現在在我的交互式 html 文件中有活動的超鏈接。 感謝及時的支持!!
乾杯,
特斯富
回复:交互式 HTML 超鏈接不起作用與交談後@Melanie_J_Drake關於 JSL,我意識到我的建議並不那麼容易實現。
在她的建議和這次討論的幫助下如何在循環內生成按鈕,我想我應該多幫助你一點。
為您的第一個 For 循環嘗試以下操作:
For( i = 1, i < 10, i++, (
event = Char( :event_number[i]);
url = (EvalInsert( "http://test.new.com/^event^"));
button_expr = evalinsert("\[one_button = button box("^event^", web("^url^"), <<UNDERLINESTYLE></UNDERLINESTYLE>
回复:交互式 HTML 超鏈接不起作用交互式 HTML 只能在其腳本中使用簡單的 Web 表達式來啟用超鏈接按鈕。 您的示例生成的按鈕腳本如下所示:
網絡(“ http://test.new.com/ " || Char(:event_number[i]));
如果您的腳本可以在按鈕腳本中生成帶有簡單 Web 鏈接的按鈕,例如:
網絡(“ http://test.new.com/ ");
當另存為交互式 HTML 時,它們應該可以工作。