Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Issue while inputing some East Asian characters in IE9.

    Hi,

    We have an issue while inputting some East Asian characters into textItem in IE9.

    We are using SmartClient_v82p_2012-10-09_PowerEdition, and the input method we are using is
    Chinese (Simplified, PRC) - Chinese Simplified QuanPin(version 6.0).

    Steps to Reproduce:
    1. Input any Chinese character. (For example, press 'q' first, then select any character from the list by the index, e.g. 1).
    2. Press 'w' to show the list of options we are going to input.
    At this moment, the value of the text item (by using getValue() method) is "" in IE even the value we input in step one is presented in this field.

    In our scenario, we need to get the value of the text item at this moment, but we get an empty string instead of the correct value. It works well in Firefox and Safari.

    Please try the following script and check log info. Thanks!

    Code:
    isc.DynamicForm.create({
    	ID: "exampleForm",
    	width: 250,
    	fields: [
    	{title: "Username",
    	 type: "text",
    	 change: function(form, item, newValue, oldValue) {
    		isc.logWarn("value is "+ this.getValue());}
    	 }
            ]
    });
    The log shown in console:
    17:18:48.800:TMR7:WARN:Log:value is null
    17:18:54.080:TMR4:WARN:Log:value is
    17:18:59.295:TMR2:WARN:Log:value is 瑁
    17:19:09.258:IBLR4:WARN:Log:value is 瑁挖

    The second line is the log when we press ‘w’ in step 2, at this moment, the value of this text field is “ ”.

    #2
    The change handler fires before the user-entered value has been logically stored by the form/item. This makes sense in order to allow developers to suppress the change by returning false from the change handler.

    You can use the changed handler rather than the change handler to be notified after the value has been logically stored, meaning that getValue() will return the expected result, or you can look at the newValue parameter passed into change to see the value the user entered.

    Please let us know if this doesn't allow you to get past this issue

    Thanks
    Isomorphic Software

    Comment

    Working...
    X