Jump to content

Closing uniGUI Application


mos
 Share

Recommended Posts

When a user clicks a button to exit my uniGUI application it currently displays a page: "Web Session Terminated" with a hyperlink to Restart Application.

Instead of the above occurring I would like the browser tab/window to close rather than display the above.

 

What changes do I need to make to force my application to close it's own browser tab/window when exiting?

 

 

Link to comment
Share on other sites

Ordinary javascript cannot close windows willy-nilly. This is a security feature, introduced a while ago, to stop various malicious exploits and annoyances.


This means, with one small exception, javascript must not be allowed to close a window that was not opened by that same javascript.

 

You can use UniApplication.Restart or servermodule.options.soRestartSessionOnTimeout = True

Link to comment
Share on other sites

Hi Hayri,

 

  Thanks for your reply.

 

  My application is actually launched from within another uniGUI application via javascript and so once a user has finished with my application I need to be able to close my tab/window.

  In my situation would I be able to use javascript to close my tab/window when someone clicks on the exit button in my application and if so where would I need to put this javascript so it can be executed?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...