Submitting AJAX forms with return has been edited by Arnout Engelen (Apr 06, 2009).

Change summary:

use form.setDefaultButton instead of ugly _javascript_ trickery

(View changes)

Content:

add an invisible submit link to the page:

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

Tell the form which button 'return' should be attached to:

form.setDefaultButton(ajaxSubmitButton);

Reply via email to