Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

JQuery is not working in IE

$
0
0

Hi,

I have below code in my html and it works fine when I open that file as website from visual studio. But when I double clicked Test.html and open it in IE, it does not work. 

<html>

<head>

    <meta http-equiv="X-UA-Compatible" content="chrome=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <title>Print Me That Label</title>
    <script src="jquery-1.4.3.min.js" type="text/javascript"> </script>
    <script type="text/javascript">
        function clickMe()
        {
            alert("Cliked");
            var labelXml = "test";
            $(document).ready(function() {
                $.get("DZLabel.xml", function (labelXml) {
                    alert("Cliked1");
                    document.getElementById("labelTextArea").innerText = labelXml;
                }, "text");
            });
        }
    </script>
</head>
<body>
    <label for="labelTextArea">Text on the label:</label>
    <textarea name="labelTextArea" id="labelTextArea" rows='2'></textarea>
    <button id='printButton' onclick="clickMe()">CLICK</button>
</body>
</html>

Here id DZLabel.xml

<?xml version="1.0" encoding="utf-8" ?>

<DieCutLabel Version="8.0" Units="twips">
  <PaperOrientation>Landscape</PaperOrientation>
  <Id>Address</Id>
</DieCutLabel>

Is there anything wrong with my IE setting?

pls help

Thanks

Dee


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>