java script is not working for internet explorer 8
-
hi sir, please help me sir.i want to block integer for textbox1 and character for textbox2.actually what java script i am using works fine for explorer 6,7 and mozilla but not in ie8.and i have enable all the script from tools-internet option-custom.but nothing works.please support. thanks
-
hi sir, please help me sir.i want to block integer for textbox1 and character for textbox2.actually what java script i am using works fine for explorer 6,7 and mozilla but not in ie8.and i have enable all the script from tools-internet option-custom.but nothing works.please support. thanks
Is it possible to show what code you placed for Integer checking? I think you might put a debugger in your code and inspect what the object has when you keypress. Check if event.keyCode is giving proper value or not. :)
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->****
InfoBox Visual Studio 2010 Extension
Windows7 API Code Pack
Simplify Code Using NDepend** -
Is it possible to show what code you placed for Integer checking? I think you might put a debugger in your code and inspect what the object has when you keypress. Check if event.keyCode is giving proper value or not. :)
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->****
InfoBox Visual Studio 2010 Extension
Windows7 API Code Pack
Simplify Code Using NDepend**hi sir, yes why not i can see you my java script.it is below.and i am using this on input textbox keypress event.but one more issue is that it's working fine if i am use it in mozilla or ie 6,7 but not in ie8 only. function number(e) { var key; var keychar; if (window.event){ key = window.event.keyCode; }else if (e){ key = e.which; } else return true; if((key == 8) || (key == 0)) return true; keychar = String.fromCharCode(key); keychar = keychar.toLowerCase(); if((key > 47) && (key < 58)){ return true; }else return false; }