Thanks. I will follow yours and Pedro's recommendations and submit form using AjaxButton.
On Thu, Apr 14, 2011 at 12:54 PM, Martin Grigorov <[email protected]> wrote: > if you use (JavaScript) form.submit() then this will reload the whole page. > I.e. there is no way to do anything with JavaScript after submitting the > form. > > On Thu, Apr 14, 2011 at 6:25 PM, Alec Swan <[email protected]> wrote: >> >> Hello, >> >> I have a button on a page which submits a Wicket form by calling >> form.submit() using straight JavaScript. If the form submitted without >> errors, then the JavaScript code should set a cookie. I am looking for >> some ideas on how to detect if the form was submitted successfully or >> not in JavaScript? >> >> Thanks, >> >> Alec >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
