Login  Register

Re: Displaying a xxforms:dialog via javascript

Posted by Alessandro Vernet on Jan 20, 2010; 3:17am
URL: https://discuss.orbeon.com/Displaying-a-xxforms-dialog-via-javascript-tp1018035p1018123.html

You can't display an xxforms:dialog in your handler for  
onbeforeunload. What you can do there is very limited. You can perform  
some cleanup, and return a string which will be displayed in a browser  
dialog along some browser-specific text asking users if they are sure  
they want to close the window.

Alex



On Jan 19, 2010, at 4:00 PM, npujol73 <[hidden email]> wrote:

>
>
> Hi,
>
> I have a xxforms:dialog which I would like to invoke when the user
> navigates away from the page (window.onbeforeunload). Does anybody  
> know how
> to have the xxforms:dialog displayed from a javascript call?
>
> window.onbeforeunload = function () {
>          ??????
>          }
>
> Thanks!
> --
> View this message in context: http://n4.nabble.com/Displaying-a-xxforms-dialog-via-javascript-tp1018035p1018035.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet