Victor, 

im not sure, try putting an alert in the code to make sure that the submit
event is being observed, and dont bother with the wicket version at until
you know the javascript on its own is working.

alert('formId observe submit');
$('formId').observe('submit', function(e){ alert('form submit');
Event.stop(e); alert('form submit stopped');});


If you dont any alert then the observe code isnt getting called.
If you see the first and not the others then either you are passing in the
wrong form dom Id, or it may be something else entirely (sorry cant be more
specific). maybe prototype isnt loaded correctly?

hope that helps,

Richard


venuko wrote:
> 
> Hi Richard,
> 
> I am trying to use the code from your blog without any modifications, but
> the form is still being submitted normally. What could be a problem?
> 
> --Victor 
> 
> 
> richardwilko wrote:
>> 
>> I wrote a piece on how to stop this on my blog (but it also makes the
>> normal ajax submit button fire, which you might not want).
>> 
>> 
>> http://richard-wilkinson.co.uk/2008/04/05/how-to-stop-non-ajax-form-submits-in-wicket/
>> http://richard-wilkinson.co.uk/2008/04/05/how-to-stop-non-ajax-form-submits-in-wicket/
>>  
>> 
>> 
> 
> 


-----
http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk 
-- 
View this message in context: 
http://www.nabble.com/TextField-inside-a-ModalWindow-problems-tp20363183p20514735.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to