Created
June 14, 2013 01:55
-
-
Save narita1980/5778901 to your computer and use it in GitHub Desktop.
クロスドメイン対応済みHTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>クロスドメイン対応</title> | |
<script src="http://code.jquery.com/jquery-2.0.0.min.js"></script> | |
<script type"text/javascript"> | |
$(document).ready(function(){ | |
var strUrl = 'http://www.google.co.jp'; | |
$.get('load.php', { url: strUrl}) | |
.done(function(data) { | |
$('#result').append('<p>' + data + '</p>'); | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<h1>検索結果の表示サンプル</h1> | |
<div id="result"></div> | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment