<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lesamoureuses</author_name>
  <author_url>https://blog.hatena.ne.jp/lesamoureuses/</author_url>
  <blog_title>こんにちはこんにちはmonmonです！</blog_title>
  <blog_url>https://monmon.hateblo.jp/</blog_url>
  <categories>
    <anon>prototype.js</anon>
    <anon>jquery</anon>
    <anon>js</anon>
  </categories>
  <description>Ajaxで持って来たコンテンツに後からイベント追加したいなと思い、Prototype.jsにjQueryの.liveのような機能がないのかなと調べた。 結果、同じような質問があった。 後から生成された要素も含め、class=&quot;foo&quot;を持つ要素に対してのclickイベントをjQueryで書いた場合がこれ。 $(&quot;.foo&quot;).live(&quot;click&quot;, function(e) { // bar }); これと同じ動きをPrototype.jsで書くとこれ。 document.observe('click', function(e, el) { if (el === e.findElement(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmonmon.hateblo.jp%2Fentry%2F20110119%2F1295410235&quot; title=&quot;Prototype.jsでjQueryの.liveのような動きをする書き方 - こんにちはこんにちはmonmonです！&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-01-19 13:10:35</published>
  <title>Prototype.jsでjQueryの.liveのような動きをする書き方</title>
  <type>rich</type>
  <url>https://monmon.hateblo.jp/entry/20110119/1295410235</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
