Hi Sylvain This looks excellent !!
On 28 Sep 2005, at 11:33, Sylvain Wallez wrote:
Hi all,I just added a new Ajax block, which uses the Prototype [1] and Scriptaculous [2] JS libraries. This block is meant to hold Ajax- releated resources and classes that can be used by other components and blocks. One of them is of course CForms.A basic sample shows a field-based filechooser, where dynamic suggestion lists allow to autocomplete the input.I also added a very preliminary implementation of suggestion-lists for CForms. You can now write:<fd:field ...> <fd:suggestion-list> <fd:item value="aa"/> <fd:item value="ab"/> ... </fd:suggestion-list> </fd:field>Suggestion lists use the exact same code as selection-list, and you can therefore use any of the available selection lists implementations. Automatic styling for suggestion-list is not yet done, but a simple sample shows how to autocomplete a field. This uses of course the scriptaculous library provided by the Ajax block.All this will be demonstrated next week at the GT :-)
Cool !As you know, I have some code to contribute that uses the same BrowserUpdate mechanism as you use in CForms. An existing TimedBrowserUpdater, that periodically updates parts of the page using a Timer, and (not written yet) LinkedBrowserUpdater, which will be triggered by a link instead of a timer.
Now you have made an AJAX Block, it looks like the right place to put it.
.... but I do not want to get in your way .... I get the feeling that you are in the process of moving from the original ajax libraries used by CForms to the Scriptaculous (etc.) libraries .... and I do not want to get in the way by adding libs that you are moving away from.
My stuff uses a slightly adjusted copy of the BrowserUpdater and (untouched)DOMUtils Objects from cforms.js.
Are you planning on moving those to the Ajax block? Are you planning on replacing them with code from the new libraries?
thanks regards JeremyPS. If you'd like me to back-off and give you more time to experiment, then fine, just let me know ;)
smime.p7s
Description: S/MIME cryptographic signature
