Показать сообщение отдельно
  #8 (permalink)  
Старый 26.12.2011, 10:15
sinistral
Посмотреть профиль Найти все сообщения от melky
 
Регистрация: 28.03.2011
Сообщений: 5,418

есть плагин для jquery, который реализует "кроссдоменный AJAX" с помощью JSONP

<!DOCTYPE html>
<html>
<head>
  
<script class="jsbin" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="https://raw.github.com/padolsey/jQuery-Plugins/master/cross-domain-ajax/jquery.xdomainajax.js"></script>
  
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
</style>
</head>
<body>
  <p id="hello">Сейчас загрузится !</p>
<script>
$.get("http://google.com/", function(data){ $("#hello").html(data.responseText.replace(/google/ig, "гуголь")); });

</script>
</body>
</html>
Ответить с цитированием