javascrpt keypress probelm ie7
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi All, I need your help. I developed a mobile web page for pda in asp.net 2.0. From the page user enter the 10 digit barcode number and get the result. My problem is that I am doing auto submit process or OnKeyPress function. When user enter 10 digit number then my JavaScript function called button click event. But its called twice in IE7, its working fine in firefox. Problem is in IE7 browser. My JavaScript code given below. function ScanTiket() { var val=document.getElementById('ctl00_tbBarCode').value; if(val.length==10) { //alert(val.length); var ele = document.getElementById('ctl00_btnGetRecords'); if ((ele !== null) && (ele != 'undefined')) { ele.click(); } } else { return false; } } please help me out. Thanks Rajesh....