<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xibbar</author_name>
  <author_url>https://blog.hatena.ne.jp/xibbar/</author_url>
  <blog_title>福島餃子Ruby親方</blog_title>
  <blog_url>https://xibbar.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Rails</anon>
    <anon>Ajax</anon>
  </categories>
  <description>まるごとAjaxなページを作る場合に 処理を全部Ajaxで呼ばれるコントローラに追い出したくなります。 例えばスケジューラを作っているとすると、 一覧の表示はAjaxで行うとかです。 そういう場合はAjaxをページの表示と同時に 呼び出さなければなりません。 どうするかというと、ビューにjavascriptを直接書きます。 &lt;%= javascript_tag(&quot; window.onload=function default() { new Ajax.Request('/tekitou/list', {asynchronous:true, evalScripts:true}); return …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxibbar.hatenablog.com%2Fentry%2F20070304%2F1172906767&quot; title=&quot;ページの表示と同時にAjaxを呼びたい - 福島餃子Ruby親方&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>https://m.media-amazon.com/images/I/41TF8XWCSNL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-03-04 16:26:07</published>
  <title>ページの表示と同時にAjaxを呼びたい</title>
  <type>rich</type>
  <url>https://xibbar.hatenablog.com/entry/20070304/1172906767</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
