Question:
Javascript, Text box won't work in IE...how do I fix it? Works in firefox...syntax error?
aaaaa a
2009-05-01 06:57:43 UTC
None of it used to work in IE, but then I figured out that my ID names couldnt be the same name as an object or something like that...changed that and it works...but my text box still won't work in IE...it all works in Firefox..so I guess its a syntax error in jscript? When you put in a number in the text box it should bring up a prompt box...thats the problem..the code works fine it just won't bring up the prompt box in IE...IE also doesn't find an error when running it..but heres my section of the code...where i think the error is...

Calculating the Average if we know how many values we have up front



How Many Values to Average: ?



The Average is: ?.



It seems to look fine...on change it should run the function calc_average1 and put the value in it? but it doesnt...it just looks like it is refreshing the page...in firefox the prompt comes up no problem... heres the function..but I dont think the bug is there...













(REPLACE by the correct form, stupid editor!!!)

EDIT: since you never process the form, you can remove the lines maked with //***
2009-05-01 07:15:34 UTC
You're not submitting your form, and you have no action for it.
?
2016-05-25 09:01:26 UTC
hey, it works on my pc. Nothing is wrong with the code. I tested the code using IE 7/8 and Firefox 3, I didn't find any problem. I know what the problem is. The security features of IE is block your script. if you are able to notice an information bar popping up under the address bar of your IE browser. Alternatively you can fix this issue by : open IE and Click Tools menu >> Click Internet Option >> Click on Security tab >> Click custom level Enable any option that is trying to block or disable web scripts. If you are not sure of what you are doing click on reset and set the level to medium. next goto advanced tab >> Restore defaults. Close and reopen IE and that should work.... please look for any information bar that pops up under the address bar.
2009-05-01 12:07:38 UTC
Here is a smart tool for registry clean and pc optimizing, free scan for ur computer is available now:

http://www.problemap.com/problemap/optimizer/

Perfect Optimizer is a kind of computer optimization software with new concept and multi-function. It has the world's leading technology to scan the computer problems as 2.7 times as the similar products. 1. Effectively repair/fix the majority of your PC's errors and let it be 100% healthy. 2. Comprehensively enhance all aspects of your computer. 3. Optimize your PC and bring its potential performance into 100% full play. 4. Clean up your PC's junk files and 56 kinds of history. 5. Effectively protect your PC and avoid ads procedures, malicious code and Trojans.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...