<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Show Content</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
// this script resides on aaaa.yyyyy.domain.com
document.domain='yyyy.domain.com';
// call to trusted site
var urlx="http://bbbb.yyyy.domain.com";
// turn on x dom calls
jQuery.support.cors = true;
// Launch AJAX request.
$.ajax(
{
url: urlx,
// The type of request.
type: "head",
// The type of data that is getting returned.
dataType: "html",
error:function
(xhr, ajaxOptions, thrownError){
ShowStatus( "Call to URL: '"+urlx+ "' Failed "+xhr.status+" "+thrownError);
},
success: function( strData ){
ShowStatus( "Call to URL: '"+urlx+ "' Success");
}
}
);
});
function ShowStatus( strStatus ){
var jStatusList = $( "#ajax-status" );
jStatusList.prepend( "<p>" + strStatus + "</p>" );
}
</script>
</head>
<body>
<div id="ajax-status" ></div>
</body>
</html>