A SmartTV application often includes a search or login feature to meet its service purpose. The Samsung SmartTV provides the IME module to collect user data input. The IME can be accessed by using a remote controller, through a virtual keyboard, as shown below.
The first step in using an IME is adding an <input> element on the HTML page.
<input id=“ime_test” type=“text” size=“10” maxlength=“256” height=“30” />
The preceding <input> element displays the user IME input, while also helping in creating an IME object and handling the focus. Make sure to assign a maxlength value to avoid user confusion and IME system errors resulting from endless typing. The maxlength property can have a maximum value of 256 characters.
In addition to the <input> element, the Common Module API needs to be loaded since it includes the IME module. This allows the IME to be called.
The declared Common Module API can be used to receive an IME instance to create an IME object. An <input> element's ID must be immediately ...