Ok.. Thanks, thought it was some setup thingy. And works fine now.

regards Nino

Ryan Gravener wrote:
You can set it as soon as the Wicket js object has been created.  You
need to be using wicket 1.3.x for this to work and yes, you will need
to have it set before the onchange.
On Thu, Apr 3, 2008 at 11:00 AM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
this did not do the trick in my onchange:

               target.appendJavascript("Wicket.Window.unloadConfirmation =
false;");
 should it be prepended or when should it be append before the onchange
event in my dropdown? As a kind of setup, I guess?



 Ryan Gravener wrote:

Yes,

append this javascript in your ajax call:
Wicket.Window.unloadConfirmation = false;

On Thu, Apr 3, 2008 at 10:33 AM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:


Hi

 I have a modalwindow which contains a dropdown. I've attached an
ajaxbehavior to the dropdown but when it fires I get a confirmation box
"are
you sure you want to navigate away from this page"...

 Is it supposed to work this way?

 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


 ---------------------------------------------------------------------
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


 ---------------------------------------------------------------------
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to