Tidbits on development with Yahoo Use Interface AJAX components.

Form Component

With the Dirty Harry Zend Framework wrapper, I wanted to have the ability to do client side validation along with server side validation and submission of form data via ajax. YUI has some of that with the Dialog component, but it has a couple of short comings:

  • Not inline
  • Has no support for client or server validation
  • So I ended up writting a Form component that was based on the guts of the Dialog component. It has no user interface, but rather focuses on the behind the scenes items for the following:

    The Form component is made up of the following files:

    Requires the following YUI (only tested with 2.4.1):

    Also makes use of the following if available:

    Examples of the use of the Form component can be seen in the screenshots for the RLM web application alpha.

    Using the Form component is relatively straight foward:

    The Form component has quite a few configuration options; see the source.