[rz] Number to Words

This section contains extensions that were created by [rz] who has sadly passed away.
These extensions are no longer available, but the discussions may still be helpful for some users.
Forum rules
*** IMPORTANT INFO REGARDING [RZ] EXTENSIONS ***

This section contains extensions that were created by [rz] who has sadly passed away.
These extensions are no longer available or supported, but the discussions may still be helpful for some users.
Locked
User avatar
[RZ]
 
 
Posts: 1914
Joined: Tue Nov 04, 2008 12:08 pm

[rz] Number to Words

Post by [RZ] »

[rz] Number to Words v1.0

This extension writes in words a numeric value; useful for special commerce-oriented pages.

Some features:

- Optionally connects with an entry box and automatically handles the proper events to update the value in words.
- Manually updates the value calling the instance via events.
- Options to allow zero values and how to display decimal values.
- Custom texts that are integrated with the value in words.
- Alignments supported.
- Fonts, colors and other styles for the text.

...and more!

Currently supported languages:

- English (United Kingdom, United States).
- Spanish (Spain/Latin America, Puerto Rico).
- Hebrew.
- German.
- Dutch.
- French (France, Belgium, Switzerland).
- Italian.
- Portuguese (Portugal, Brazil).

...and more to come!


HTML 4.01 Transitional
W3C compliant


DEMO


How to use?

1. It is assumed that a value source is present in your page.
2. Drag and drop an instance that matches the desired language.
3. Optionally setup some parameters and leave them as default.
4. Optionally enter the edit box name that it is the value source or call an instance via events from other objects or methods.
5. Preview or publish.

How to connect with an entry box?

1. Drag and drop an edit box.
2. Drag and drop a language instance.
3. Enter the edit box name via the instance properties dialog box.

How to manually call the instance?

1. From any process you can call the language instance as NumberToWordsInstance.display(number);
2. Replace 'NumberToWordsInstance' with the actual instance name.
3. Use the 'number' parameter to specify the value to display in words.

Enjoy!
Locked