You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
703 B
32 lines
703 B
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
|
|
<title>onunload ajax requests (trac-14379)</title>
|
|
<script src="../../jquery.js"></script>
|
|
<script src="../iframeTest.js"></script>
|
|
</head>
|
|
<body>
|
|
<form id="navigate" action="../iframe.html"></form>
|
|
<script>
|
|
jQuery( window ).on( "unload", function() {
|
|
var ajaxStatus;
|
|
jQuery.ajax({
|
|
url: "../name.html",
|
|
async: false,
|
|
complete: function( xhr, status ) {
|
|
ajaxStatus = status;
|
|
}
|
|
});
|
|
startIframeTest( ajaxStatus );
|
|
});
|
|
|
|
jQuery(function() {
|
|
setTimeout(function() {
|
|
document.getElementById( "navigate" ).submit();
|
|
}, 0 );
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|