Heena Jain
Heena Jain

Reputation: 45

jcors-loader.js not working in IE7

Index.html

<html>
    <head>
    <script type="text/javascript" src="/js/jcors-loader.js"></script>
    <script>
        JcorsLoader.load(
                "js/jquery-1.8.0.js",
                "/js/alertme.js",
                function() {
                    $("#result").text("TEST OK");
                }
        );

    </script>
    </head>
    <body>
    <h1 id="result"></h1>
    </body>
    </html>

alertme.js

alert("Loaded");

This works fine in chrome and firefox it displays "TEST OK" and popup...But no message or alert in IE(7,8,9)...Any help will be appreciated.

Upvotes: 1

Views: 117

Answers (2)

Pablo Moretti
Pablo Moretti

Reputation: 1434

I wrote that library, remember these three tips to use it.

  • Not invoke a script add the inline content.
  • Put the script tag after the .
  • IE7 works but blocks onload.

Upvotes: 1

BenM
BenM

Reputation: 4278

First thing to check is that you're not using console.log anywhere in your javascript as this can cause funny issues with IE.

The next thing to do is check the documentation on the library you're using as it may not be compatible with IE 9 and below (have you tried it with IE 10?)

Upvotes: 0

Related Questions