0

Why does my script on my computer at work not work on IE11? Is there a way to block JS within the html file?!

I only see the <noscript> message. :-(

15th Nov 2018, 8:30 PM
Vinz Vík
Vinz Vík - avatar
6 ответов
+ 5
Isn't the <noscript> block only shown when JavaScript is disabled in the browser settings? I don't really understand this question, you ask why your script doesn't work, but you also ask if JS can be disabled programmatically. Are you having problem with the script, or looking for confirmation of JS switch by code?
15th Nov 2018, 8:42 PM
Ipang
+ 3
Vinz, best I can advise you now is to save the code into your profile, and share the URL in your original post above. With a code to look at I believe people can understand the problem a bit better, right now they can only wonder and guess. P.S. Since you mentioned the code complains being pasted in an existing file, I think the error message will be helpful to narrow down the problem scope, you might wanna include it, either in your code (as comments), or this thread, for the sake of clarity.
16th Nov 2018, 5:51 PM
Ipang
+ 3
Vinz, I'm afraid I couldn't take any further step to try to help here, and as you mentioned active-x I imagine some parts of the code was specifically written to run on IE or Edge (don't know for sure), because it is Microsoft's proprietary technology. I don't know if I'm all correct, but to my understanding there is no script allowed to switch JS on/off, and that is also the reason of the noscript block (cmiiw) Hope you can find the solution, or maybe someone who ever experienced this see this and say something.
20th Nov 2018, 10:28 AM
Ipang
+ 1
Hey, thx for your answer. I can run the JS code in an empty HTML file. But when i implement it into an existing page it complains and i can only see the <noscript> message. It is the same browser in both cases.
16th Nov 2018, 12:48 PM
Vinz Vík
Vinz Vík - avatar
+ 1
It all works fine when i emulate IE8. I was wondering if something in the page is blocking JS because it also works when i put the script in an empty HTML file. The IE complains about JS and / or activex. I'm sorry I can't put the file in here. Maybe my description was a little bit better this time. :-)
20th Nov 2018, 9:51 AM
Vinz Vík
Vinz Vík - avatar
+ 1
Thanks for the help. I will let you know when i finally got it to work. 👨‍💻
20th Nov 2018, 2:01 PM
Vinz Vík
Vinz Vík - avatar