Not sure what I'm missing? trying to get html from remote domain (I know about cross domain ext...) but this as worked in the past...
Can't see where I'm going wrong:
CODE:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no">
<link href="http://jqmdesigner.appspot.com/gk/lib/jquery.mobile/1.4.2/flatui/jquery.mobile.flatui.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"> </script>
<title>get the html from a website</title>
<script>
$( document ).ready(function() {
$.get("https://www.miemssalert.com/chats/Default.aspx?hdRegion=5", function(data) {
$(".ui-content").html( data );
alert( "Load was performed." );
})
.done(function() {
alert( "second success" );
})
.fail(function() {
alert( "error" );
})
.always(function() {
alert( "finished" );
});
});
</script>
</head>
<body>
<!-- Page: home -->
<div id="home" data-role="page">
<div data-role="header" data-position="fixed" data-theme="b">
<h3>GET WEB DATA</h3>
</div>
<div role="main" class="ui-content">
</div>
</div>
</body>