Submitting AJAX forms with return has been created by Arnout Engelen (Aug 04, 2008).

Content:

add an invisible submit link to the page:

<input type="submit" style="display: none;">

add some _javascript_ to the form to hit the ajaxsubmitbutton when the form is submitted:

form.add(new AttributeModifier("onSubmit", true, new Model("document.getElementById('" + ajaxSubmitButton.getMarkupId() + "').onclick();return false;")));

Reply via email to