As I can remember you have to turn the confirmation message off (the modal one) or something in order to make it work with ajax.

richardwilko wrote:
It still seems as though the form is trying to submit in a non-ajax way, as
this is the same as navigating to a different url, which is why your modal
window is asking for confirmation.

You still need prototype for the wicket version, as that is just the js code
wrapped up in a wicket behavior.

try something like this:
$('formId').observe('submit', function(e){ Event.stop(e);}); in your modal
window html, where formId is the dom id of the form causing the trouble.

That should stop any non-ajax submits from the form, however a possibility
is that the wicket code detects the submit before the other code has a
chance to stop it, so this method may not work.

I also found this which may help you http://www.arraystudio.com/as-workshop/disable-form-submit-on-enter-keypress.html http://www.arraystudio.com/as-workshop/disable-form-submit-on-enter-keypress.html Richard

ulrik wrote:
Hmm, it did not work for me..
I tried the wicket version, but it still askes me if I want to navigate
away from the page when I hit enter in the TextField





-----
http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk

--
-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