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