[HTML_AJAX-devel] JS API ?
Gilles PIÉTRI
contact at gilouweb.com
Tue Jul 11 01:50:52 PDT 2006
Le Lun 10 juillet 2006 18:29, Joshua Eichorn a écrit :
[snip]
> There isn't an API doc yet for the JS API i hope to have the base api
> documented in the next month or so (it will be on the wiki:
> http://htmlajax.org/HTML_AJAX/API%20Documentation)
>
> There isn't a plan to add in direct support for HTML_QuickForm or
> DB_DataObject_FormBuilder but im happy to help anyone who wants to add
> subpackages to those projects that use HTML_AJAX.
>
> See http://pear.php.net/package/HTML_QuickForm_Livesearch/ as an example
> quickform package that uses HTML_AJAX.
> -josh
>
OK, thanks for your answer. If I have time to write a
DBO_FormBuilder_AjaxCrosslinkEditor or whatever ... I'll make the
community know :)
I have one question still, I've been playing with the formSubmit thing.
The way it seems to work is : allow a "simple" submit, or use a JS
callback. I'm a little bit confused on how I could do something like that
:
I want my form to be submitted (php dbo_formbuilder processed), and once
the form is processed in this page, I want somehow an event to be fired.
What I'm trying to do, is to update/create a crosslink (DBO FormBuilder
again) using ajax, without reloading my main page, and once the crosslink
is saved (using formSubmit), I want my menus to get reloaded (and even
more, I want to select the new value, but that's no big deal).
I've thought of some ugly hacks like having a button, or a timeout that
would call any JS update/reload function for my selects, but I'd like to
know if there's a clean way to do this, using HTML_Ajax or any JS tricks I
haven't thought of.
Regards,
Gilou
More information about the Html_ajax-devel
mailing list