2016-03-03 23 views
0

我試圖在Spotfire中的文本區域中創建按鈕以在單擊時註銷。Spotifre創建按鈕使用腳本註銷

所以基本上我想在Web瀏覽器環境中運行Spotfire報告時製作一個「簽名」按鈕。我認爲這需要用腳本完成,但我不知道如何繼續。

任何人都可以分享一些見解,如果這是可能的?

在文本區域

回答

0

創建

<button id='logout'>Log Out</button> 

添加JavaScript:

$(logout).button().on('click',function(){ 
    top.location="/SpotfireWeb/LoggedOut.aspx?logoutByUser=True" 
})