jQuery not working on Internet Explorer

Asked

Viewed 1,685 times

0

I did a little play on Codepen to share on Github. That’s an effect of the elements appearing when you scroll about them.

Codepen was working perfectly on both IE and other browsers, but when I switched to HTML page to play on Github, it was working on all browsers except IE. I honestly do not understand what is happening and this is leaving me perplexed. I am using IE11.

Codepen

HTML

  • 1

    Stackoverflow is preferable if you can include the relevant code in the question itself and create the smallest possible example that still presents the bug. Simply linking to your github means more work to help you and if there’s always a risk that the link will rot in the future.

  • Hello, how are you? I appreciate the answer. I know it is possible to put an excerpt of the code in the post, however, as I do not know which part is in trouble exactly, I did not enter. I hope you understand the situation.

  • This is why we encourage you to try to create a test example that is small enough to fit the question. For free, you often discover the problem all by yourself just by trying to do it :)

  • Okay. I’ll do it from now on.

1 answer

3


By chance when opening index.html in Internet Explorer did you check if there was no security policy preventing the execution of scripts? It’s usually something like.

I tested the example in Codepen and also downloaded the ZIP of your code on github and is working normally in Internet Explorer 11.

The only thing I noticed "wrong" is that there is version 1.10.2 of jQuery in the js folder, but the version that is being used is 1.9.1 that is being referenced externally to the jquery servers.com.

  • First thank you for the answer. I honestly did not know that there was such a possibility of blocking in IE, but it seems very plausible your suggestion. Where could I see about that? There are some other freelances that I’m working on that are happening exactly the same thing, and it has left me very perplexed. But if it is really that it relieves me. And the fact that it worked there relieves me a little. Regarding the version of jQuery, I had made a small test with the previous version, and forgot to fix the src. Hug

  • @user3130064: In the long run, I recommend you find a way to run your tests via some web server. There are a lot of things that don’t work right accessing files via "file://" but that work via "http://". (There are a multitude of servers that you can choose for this. If you want something simple just to test your html one possibility is the python -m SimpleHTTPServer)

  • 1

    As @missingno said, it’s interesting that you use an HTTP server to test your scripts, so you get as close to the production environment as possible. Netbeans, for example, has this feature, including debugging support. As for warning messages, usually they are in the status bar, however I do not know any effective way to show the locks, I recommend looking at the security tab in the "Tools -> Internet Options".

  • OK. I thank you both for your reply.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.