Page 1 of 1

Profound "Confirm Navigation prompt window"

Posted: Mon Jun 20, 2011 1:01 pm
by nascar88
Is there a way NOT TO SHOW this Prompt window when you refresh your browser. The two options you have is "Leave this Page" or Stay on this page".

Re: Profound "Confirm Navigation prompt window"

Posted: Mon Jun 20, 2011 5:29 pm
by Brian
My first question is why are you refreshing the browser?

There is a very specific reason for that confirmation. If you refresh the screen, it ends your job on the system and starts another. Surely this is not what you want if you are in the middle of a program. So I wonder if this is what you really want.

Re: Profound "Confirm Navigation prompt window"

Posted: Wed Jul 06, 2011 8:20 am
by nascar88
What we are doing is pushing data to our main website using an iframe. The profound program is run inside this iframe and is an inquiry program only. I would like to see an option on the record format that would either tell profound to end the job without prompting for this message or to prompt for this message.

Re: Profound "Confirm Navigation prompt window"

Posted: Wed Jul 06, 2011 9:03 am
by David
There is a way to tell Profound UI not to show that confirmation when the PUI page is being unloaded.

In JavaScript, you can set this flag:

Code: Select all


pui.skipConfirm = true;

This can be done using the "onload" event of a record format, or through an included JavaScript file that runs the code inline.

Re: Profound "Confirm Navigation prompt window"

Posted: Wed Jul 06, 2011 11:34 am
by nascar88
Thanks a lot -- that works great!