<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>NeoCat</author_name>
  <author_url>https://blog.hatena.ne.jp/NeoCat/</author_url>
  <blog_title>Okiraku Programming</blog_title>
  <blog_url>https://neocat.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>JavaScriptから外部ドメインにあるAPIを呼び出すために使われるJSONPですが、scriptタグを動的に追加する方法（下記の記事など）JSONPの取得時にサーバ過負荷などでエラーが出た場合、エラー処理ができないという欠点がありました。 クロスドメインJavaScript呼び出しをクラス化, クロージャにも対応 - Okiraku Programming scriptタグに onerror= という属性を付加するとエラー発生時にスクリプトを実行させることができるブラウザもあります。しかし試してみると、 Firefox: サーバがステータス4xx, 5xxを返した際にonerrorが実行…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fneocat.hatenablog.com%2Fentry%2F20110206%2F1296934235&quot; title=&quot;JSONPの動的取得+エラー処理 - Okiraku Programming&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-02-06 04:30:35</published>
  <title>JSONPの動的取得+エラー処理</title>
  <type>rich</type>
  <url>https://neocat.hatenablog.com/entry/20110206/1296934235</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
