Dear Forum, I have this panel in which I make an ajax button visible via ajax. Also, I append the following javascript to the AjaxRequestTarget to prevent the user from navigating away:
When the user clicks on the ajax button, I hide it and I no longer prevent him/her from navigating away so I append the following javascript to the AjaxRequestTarget: and this works (I got this answer from http://stackoverflow.com/a/9717750/158499 stackoverflow ). My question is, in wicket, is there any negative consequences to constantly appending the mentioned javascript/jquery code to the AjaxRequestTarget? I just don't know any other way to disabling such behaviour and I applied the one solution I know. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Appending-onbeforeunload-javascript-function-and-then-disabling-it-tp4650203.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
