Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

My Asp.Net Project hosted in IIS. I am using javascript in my ASP.Net project. It is Running Successfully in IE7, that java Script Functionality is not running in FireFox. I need to run the project in both browsers

IF any one know about this tell me.

Regards
Nanda Kishore.CH
Posted
Updated 1-Aug-12 0:22am
v3
Comments
Sandeep Mewara 1-Aug-12 6:09am    
This is not a well framed question! We cannot work out what you are trying to do from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.

Apart from code not working in FF, no more information shared.

you should check CSS in all the browsers and it must be working in all the browsers.Sometimes application display properly in Chrome and moxilla but not displaying properly in IE.it is browser problem.
 
Share this answer
 
Yes. You need to fix your script so that it's compatible with firefox. There's nothing else we can tell you without being told what is going wrong, seeing the code, etc.
 
Share this answer
 
Check the console in firebug(an addon in firefox). If some javascript error would be their it is a great tool to find out those.

After testing improve question with the actual problem.

Happy Coding..
 
Share this answer
 
function numericValidation(txtvalue) {

var e = event || evt; // for trans-browser compatibility
var charCode = e.which || e.keyCode;
if (!(document.getElementById(txtvalue.id).value)) {
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
else {
var val = document.getElementById(txtvalue.id).value;
if (charCode == 46 || (charCode > 31 && (charCode > 47 && charCode < 58))) {
var points = 0;
points = val.indexOf(".", points);
if (points >= 1 && charCode == 46) {
return false;
}
if (points >= 1) {
var lastdigits = val.substring(val.indexOf(".") + 1, val.length);
if (lastdigits.length >= 2) {
alert("Two decimal places only allowed");
return false;
}
}
return true;
}
else {
alert("Only Numarics allowed");
return false;
}
}
}

This Javascript code not working in mozilla firefox? please help me
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900