Skip to content

Instantly share code, notes, and snippets.

@narita1980
Created June 14, 2013 01:55
Show Gist options
  • Save narita1980/5778901 to your computer and use it in GitHub Desktop.
Save narita1980/5778901 to your computer and use it in GitHub Desktop.
クロスドメイン対応済みHTML
<!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