jConfirm and unload event |
[eluser]SPeed_FANat1c[/eluser]
Hi, I have a textarea with TINYMCE editor. When user leaves page but don't save data, I want to show confirmation message. Standart javascript confirm message works fine, but when I use jConfirm, it does not show the question. This jquery plugin is from this site: http://abeautifulsite.net/blog/2008/12/j...t-dialogs/ My code: Code: <scrip type="text/javascript" src="<?php echo base_url()?>js/tiny_mce/tiny_mce.js"></scrip> Have you any idea why this does not work? BTW when I put it out of unsaved() function, the plugin works. it only does not work in unsaved() function.
[eluser]SPeed_FANat1c[/eluser]
I googled about this stuff and it seem that it is not possible use custom dialog becauase of security reasons. And yet I found the simple way to solve this problem, although not in such way I wanted but at least users gets question - simply add plugins : "autosave" to tinyMCE.init. http://wiki.moxiecode.com/index.php/Tiny...s/autosave |
Welcome Guest, Not a member yet? Register Sign In |