Acid.JS Web 2.0 Component Library

Skinnable Form Elements 1.0

Forms.JS is the successor of 6 separate controls for form styling, now consolidated in a single powerful component that will give you total control over the form elements on your page without any additional markup or sophisticated JavaScript. All you have to do is to add a single line of JavaScript in the head section of your webpage, define which elements will be styled, specify skinning region, set a skin, reload the page and leave the rest to Forms.JS. The component will seamlessly add cool Web 2.0 looks to input boxes, buttons, file inputs, checkboxes, radiobuttons and dropdowns.

Demo

Using the region property of Dialogs.JS

The region property of Forms.JS can accept two possible values - page or element ID. If set to page, Forms.JS will style all form controls found on the page. The ID value can be used to style different parts of the page with a different skin, as Forms.JS supports multiple skins on a single page. For example, the form below is styled with the XP skin of the control:

Form Styling on Demand

Forms.JS is shipped with a separate method for form styling upon user interaction (demand()), for example after dynamically added controls on the page, after AJAX or simply upon button click:

click to style the form below

Additional Methods of Forms.JS

The component comes with a bunch of handy methods ready to use methods for form element manipulation. These are described fully in the manual shipped with Forms.JS. The client methods for disable, enable and toggle of skinned form controls are disabled in the lite version of the control.

Form.JS and Accessibility

The controls styled with Forms.JS support all native keyboard showrcuts of the real controls - arrow navigation, spacebar and enter key.

Browser Support

Forms.JS works with all major browsers. Internet Explorer 6 is not supported, and the component does not initialize on that browser, leaving the existing form controls untouched.

  • Internet Explorer 6
  • Internet Explorer 7
  • Internet Explorer 8
  • Mozilla FireFox
  • Opera
  • Google Chrome
  • Apple afari

Differences Between the Lite and Full Version

The Lite version of Forms.JS is displays a trial message at the top of the page, the client methods for enable, disable and toggle of form controls are disabled, and is shipped with three skins only. The full version is fully functional, does not display any trial messages and comes with the full set of 12 skins.