Page 1 of 1

Is there a way to prevent the "navigate away" warning?

Posted: Wed Oct 06, 2010 1:56 pm
by Bryan641
Can we suppress the "Are you sure you want to navigate away from this page" warning and just always allow it? What are the implications of doing so?

--Bryan

Re: Is there a way to prevent the "navigate away" warning?

Posted: Thu Oct 07, 2010 10:49 am
by Alex
The following line JavaScript code will suppress the warning:

pui.confirmOnClose = false;

After you do this, when the user closes the browser or navigates away from the the page, a signal will be sent to the server to just end the job.

Re: Is there a way to prevent the "navigate away" warning?

Posted: Thu Oct 07, 2010 1:28 pm
by Bryan641
I tried that several places, and when it didn't work, I searched runtime.js and ended up trying

Code: Select all

pui.skipConfirm=true; 
This worked.
--Bryan

(Note, I would like to allow users to navigate away from the application at will. Are there any negatives associated with allowing this?)

Re: Is there a way to prevent the "navigate away" warning?

Posted: Thu Oct 07, 2010 5:32 pm
by Rob
Once the user navigates away from the page, the session is lost and the Profound UI session controller ends all jobs associated with that session.

It is a little like closing Client access without first signing off.

Re: Is there a way to prevent the "navigate away" warning?

Posted: Thu Oct 07, 2010 10:35 pm
by Alex
Bryan, you are correct. pui.skipConfirm=true is the right way to do it.