Hi,
Since the Manager will be supporting
Snippets Widgets it would be cool to have a set of AJAX widgets to help out where necessary. I’m more for an integrated solution but these snippets could give developers something to play with in the meantime.
I’ve been looking at AjaxTags. They’re for JSP but it would appear that they can be easily converted to work as Snippets.
<form>
Make: <input id="model" name="model" type="text" size="30" class="form-autocomplete" />
Model: <input id="make" name="make" type="text" size="30" />
</form>
[[Ajax:AutoComplete? &baseUrl=`lookup.html` &source=`make` &target=`model` ¶meters=`model={model}` &className=`form-autocomplete` &progressStyle=`throbbing` &minimumCharacters=`1` ]]
The Ajax:AutoComplete snippet allows one to retrieve a list of probable values from a backend servlet (or other server-side control) and display them in a dropdown beneath an HTML text input field. The user may then use the cursor and ENTER keys or the mouse to make a selection from that list of labels, which is then populated into the text field. This snippet also allows for a second field to be populated with the value or ID of the item in the dropdown.
I combination of TV, @EVALs and a blank template can be used to render AJAX responses.
Anyone want to give this a go?
Here’s some info on AjaxTags:
http://ajaxtags.sourceforge.net/
http://ajaxtags.sourceforge.net/usage.html#ajax:anchors
Examples:
http://ajaxtags.no-ip.info/