Regarding TextItem

Hi Isomorphic,

    My Issue is regarding TextItem, When I type the characters fast, the cursor in TextItem get Misplaced i.e it focuses to the begining of TextItem.

Here is the sample code
Please help me in this regards. It gives problem in IE

isc.DynamicForm.create({
        ID:"dyn1",
        left:50,
        top:50,
        numCols:3,
        backgroundColor:"#FFFFFF", 
        cellSpacing:5,
        autoDraw:false,
        fields:[
        	{
        	name:"txtAppln_name",
        	title:"Test",
        	required:false,
               showTitle:true,
        	_constructor:"TextItem",  
        	keyPress:"function1()",
           	redrawOnChange:false
                	
        	},
                        	{
        	name:"btnAppln_submit",
        	type:"button",
        	startRow:false,
        	title:"Submit",
        	click:"function2 ()",
        	showIf:"dyn1.getValue('txtAppln_name') != null"
        	}
                   })
    ]
});

I am calling a function on key press..

You’ll need to show what function1() is doing.

isc.DynamicForm.create({
        ID:"dyn1",
        left:50,
        top:50,
        numCols:3,
        backgroundColor:"#FFFFFF", 
        cellSpacing:5,
        autoDraw:false,
        fields:[
        	{
        	name:"txtAppln_name",
        	title:"Test",
        	required:false,
               showTitle:true,
        	_constructor:"TextItem",  
        	keyPress:"function1()",
           	redrawOnChange:false
                	
        	},
                        	{
        	name:"btnAppln_submit",
        	type:"button",
        	startRow:false,
        	title:"Submit",
        	click:"function2 ()",
        	showIf:"dyn1.getValue('txtAppln_name') != null"
        	}
                   })
    ]
});     

function function1()
{
    if((dyn1.getValue('txtAppln_name') == null))  
    {
    dyn1.getField('cmbAame').clearValue();
    dyn1.getField('ptxtAppl_pwd').hide();
    dyn1.setValue('stxtAppl_statusdist',' ');
    dyn1.getField('stxtAppl_statusdist').hide();
    dyn1.getField('btnAppln_submit').hide();
   } 

}

This the Code of function1 here i am checking whether the text feild is empty r nt .. if it is empty then i am hiding all the feilds.