14 Jul
2006
14 Jul
'06
11:36 p.m.
if we implement this , you could just do a hook_forms call, and do json conversions by just calling the form callback.
much much simpler.
Indeed. I've done a similar redirection of form submission in the ajaxsubmit.module (part of Javascript Tools), where we set a form element which triggers the submit to be redirected to a JSON callback. It required some fancy footwork to handle previews vs. submits with errors vs. successful submits. Functional, but again the planned approach would simplify AJAX submissions as well.