Textbox Sample

Reference
This sample demonstrates how to modify an existing textbox and turn it into a jsUI-Textbox.
 

Optionally create a SPAN as the caption for the new textbox.
Create an empty HTML textbox on the page, appending the new attribute datatype.

Note: HTML creation for jsUI-Textbox is typically done at design-time, this example is after rendering in order to break the process into steps.
Instantiate the textbox into an empty, global object using the textboxNew method.

Note: Although this example only contains a single textbox, on instantiation, all textboxes below the specified parent object with the datatype attribute will be converted to a jsUI-Textbox.
Handle the keyFailed event to provide feedback when an invalid key is pressed
Reload the page to create a new textbox.


© 2005 Jonathan Wise. Some rights reserved.