yCode Home   Advanced example   Download

yCode spin control v1.0 is a pair of arrows that the user can click to increment or decrement a value displayed in a companion text control. User can also type in a value into text cotnrol directly. The value associated with a spin button control is called its current position. A spin control has upper and lower limits, within which the current position is changed. The increment value is called a step; a step can be any positive number contained within limits.

Show spin properties

Advantages

The most common way to choose a value from a limited range is a SELECT box containing all available options. For example, on a typical travel site, to enter a date, you will need to choose both day and month from SELECT box:

  I need to depart:
  

You can use yCode spin control instead of SELECT boxes:

  I need to depart:
  

  • No messy lists to open - page looks much more neat (especially useful if you have long list of numbers.)
  • Enter value directly into the text control, if you already know your selection.
  • No need to add and remove options (for example, with SELECT box, you would have to add/remove dates in date SELECT box depending on what month is selected. With spin, you would only need to update your limits.)
  • yCode spin can be used anywhere a SELECT box can be used, including tables.
  • Programmer has control over text appearance, similarly to a TEXT box.

Any other functionality can be added upon request. Please contact sales@yCode.com for more information.

Note: the source code for this page is copyrighted.

You can Download the source code and documentation. Should you decide to use it, you can purchase the Intranet/Extranet license by sending $20 to sales@yCode.com - our paypal account:

yCode Home   Advanced example