We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25663 MODX Staff
    • 12,272 Posts
    Another request targeted library that supports fallback to normal forms operation: http://www.ajaxtoolbox.com/
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 32963
      • 1,732 Posts
      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` &parameters=`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/
        xWisdom
        www.xwisdomhtml.com
        The fear of the Lord is the beginning of wisdom:
        MODx Co-Founder - Create and do more with less.
        • 25663 MODX Staff
        • 12,272 Posts
        And finally some decent "unofficial" documentation on Prototype.js, which most of the other projects use and is supposedly some pretty nice code: http://www.sergiopereira.com/articles/prototype.js.html

        Also say a neat article today on 37signals about a pretty cool use for it: http://37signals.com/svn/archives2/implementing_stateful_links.php
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me