mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
34 lines
676 B
HTML
34 lines
676 B
HTML
<!doctype html>
|
|
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>Network Monitor test page</title>
|
|
</head>
|
|
|
|
<body>
|
|
<p>JSONP test</p>
|
|
|
|
<script type="text/javascript">
|
|
function get(aAddress, aCallback) {
|
|
var xhr = new XMLHttpRequest();
|
|
xhr.open("GET", aAddress, true);
|
|
|
|
xhr.onreadystatechange = function() {
|
|
if (this.readyState == this.DONE) {
|
|
aCallback();
|
|
}
|
|
};
|
|
xhr.send(null);
|
|
}
|
|
|
|
function performRequests() {
|
|
get("sjs_content-type-test-server.sjs?fmt=jsonp&jsonp=$_0123Fun", function() {
|
|
// Done.
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|