Recently I had a little experience makes me tired. Why not, more than 2 days I have not got javascript error in my web program
In ASP.Net, I use a script, which calculates the number of characters from a text box. After the run, the program can work well, both on IE and Mozilla.
With the same script and the same goals, I also created a web page, but this time with PHP. I am testing the program with IE, and no problems. But after a try with Mozilla, the script does not go. Surprised and dizziness. What happened? With the same script, built with PHP can not work, but if made with ASP.NET can be, only in Mozilla, IE works well!
Browsing and serching on the internet, there is no solution.
I try to look more carefully at the script, well, thank you Jesus, I get the error on the identification text boxes.
In IE, atrribut name and id well known, and the same function, while in Mozilla Firefox, the name is the name and id is the id.
Consider this example:
java script command:
document.getElementById(‘txtSisa’)
while in the form:
<input type=”text” name=”txtSisa” size=”2″>
With the above conditions, the program can run well on IE, but fails when running on Mozilla. The program should be changed to (html part) :
<input type=”text” id=”txtSisa” size=”2″>
Hopefully helpful.
Continue reading “Javascript running in Internet Explorer, not run on Mozilla Firefox” »