ドットインストール代表のライフハックブログ
![IDEA * IDEA](https://cdn-ak-scissors.b.st-hatena.com/image/square/42fb704d5cf96283a3f043abff7509690ea1fd70/height=288;version=1;width=512/http%3A%2F%2Fwww.ideaxidea.com%2Fwp-content%2Fuploads%2F2010%2F08%2Ffaq.gif)
jQueryでAjaxを行う$.ajax関数に、Yahoo Query Language APIを利用したクロスドメインAjax機能を追加するjQuery Pluginを作りました。ソースはgithubにあります。 https://github.com/yatt/jquery.xdomainrequest インクルードするとこんな感じでクロスドメインのリクエストができるようになります。 $.ajax({ url: ['http://externalsite.com/x.json', 'http://ex.jp/y.json'] dataType: 'xdomain:json' success: function(data){ console.log(data[0].result.count) // x.json console.log(data[1].user.id) // y.json
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く