Hi All,
We are facing some java script issue in our application. We are using Telrik control. We have some Filter columns to filter data. While giving some data and click on enter button it is giving JScript runtime error in IE. But same steps working in Morzila Firefox.
Attached code for refernece.
Loading
Bibhudutta SenapatiPosted May 16, 2012, 2:08 AM
Thanks for the replay. Please check my attachment. I am using telrik control. Also not using javascript for validation purpose. It is happening only when clicking on enter button in IE.
SenthilkumarPosted May 16, 2012, 1:56 AM
This is typical javascript problem, when you use. Because the front end gives the compilation error when the control no more there in design page. But the javascript doesn't. but gives the critical issue at the run time.
Some times the user write some javascript for the controls and finally they will remove that control. Still javascript code will be there then it throws error.
Always, recommended to check object before use them.
if(document.getElementById('txtusername'))
{
document.getElementById('txtusername').value = 'test';
}
Here if that control exists then only returns true and assign the value. Even if you remove the control will not give any error.
Hope this will help you to fix.
Bibhudutta SenapatiPosted May 16, 2012, 1:52 AM
Posted May 16, 2012, 1:48 AM