Quantcast
Channel: OKWAVE 最新質問([技術者向] コンピューター/205)【本日】
Viewing all articles
Browse latest Browse all 38062

【jquery】クロスドメイン間の突破について

$
0
0
jquery.xdomainajax.js を使って、クロスドメインの突破を行おうとしております。 jquery.xdomainajax.js については、 http://www.kaasan.info/archives/1858 をご覧頂ければと思います。 本題はといいますと、 例えば、「hoge」としか書かれていないファイルが http://hogehoge.jp/a.html にあったとします。 そして、javascriptへ、 $.ajax({ url:'http://hogehoge.jp/a.html', // http://から始まるURLを指定 type: 'GET', success: function(res) { alert(res.responseText); } }); 記載することにより、alertで、「hoge」と表示させたいのです。 しかしながら、 ※以下本文 <html> <head> <meta content="HTML Tidy for Java (vers. 26 Sep 2004), see www.w3.org" name="generator"/> <title/> </head> <body> <p>hoge</p> </body> </html> ※以上 と表示されてしまいます。 どこを、どのように変更すれば「hoge」のみの表示が可能になるのでしょうか? 何卒、ご教授の程宜しくお願いします。

Viewing all articles
Browse latest Browse all 38062

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>