<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Send Email Notifications for Broken Images Using jQuery Ajax</title>
	<atom:link href="http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/</link>
	<description>Ok, you did not judge the book by it&#039;s cover, great.  Now, read the whole thing before passing judgment.</description>
	<lastBuildDate>Sat, 03 Jan 2009 04:54:23 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: [Web] ???? &#171; ???????</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5553</link>
		<dc:creator>[Web] ???? &#171; ???????</dc:creator>
		<pubDate>Mon, 15 Dec 2008 04:50:15 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5553</guid>
		<description>[...] Send Email Notifications for Broken Images Using jQuery Ajax [...]</description>
		<content:encoded><![CDATA[<p>[...] Send Email Notifications for Broken Images Using jQuery Ajax [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Sterling</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5474</link>
		<dc:creator>Benjamin Sterling</dc:creator>
		<pubDate>Fri, 05 Dec 2008 19:01:54 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5474</guid>
		<description>Thanks for the link Jhon Doe</description>
		<content:encoded><![CDATA[<p>Thanks for the link Jhon Doe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jhon Doe</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5473</link>
		<dc:creator>Jhon Doe</dc:creator>
		<pubDate>Fri, 05 Dec 2008 00:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5473</guid>
		<description>another jquery example
http://www.anieto2k.com/2008/12/01/enviate-notificaciones-cuando-las-imagenes-no-carguen/</description>
		<content:encoded><![CDATA[<p>another jquery example<br />
<a href="http://www.anieto2k.com/2008/12/01/enviate-notificaciones-cuando-las-imagenes-no-carguen/" rel="nofollow">http://www.anieto2k.com/2008/1.....o-carguen/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Sterling</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5460</link>
		<dc:creator>Benjamin Sterling</dc:creator>
		<pubDate>Thu, 04 Dec 2008 15:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5460</guid>
		<description>Loïc, thanks for the input, I&#039;ll have to look into that for myself as some point.</description>
		<content:encoded><![CDATA[<p>Loïc, thanks for the input, I&#8217;ll have to look into that for myself as some point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Informar sobre imágenes perdidas con jQuery &#124; TortugaNinja.com - PHP, blogging, internet y mas</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5456</link>
		<dc:creator>Informar sobre imágenes perdidas con jQuery &#124; TortugaNinja.com - PHP, blogging, internet y mas</dc:creator>
		<pubDate>Wed, 03 Dec 2008 22:18:01 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5456</guid>
		<description>[...] evitar esto, el amigo Benjamin Sterling ha creado un pequeño código de jQuery con el que recibiremos un email si hay un error con alguna [...]</description>
		<content:encoded><![CDATA[<p>[...] evitar esto, el amigo Benjamin Sterling ha creado un pequeño código de jQuery con el que recibiremos un email si hay un error con alguna [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loïc Hoguin</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5452</link>
		<dc:creator>Loïc Hoguin</dc:creator>
		<pubDate>Wed, 03 Dec 2008 12:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5452</guid>
		<description>To followup anon&#039;s comment, the set up could be something like this, running as a daemon: tail -f /var/log/apache/error_log &#124; grep pattern &#124; mail error@example.org

You can easily add a script between grep and mail to check for dupes.

There&#039;s probably some kind of package available with that functionality and more.</description>
		<content:encoded><![CDATA[<p>To followup anon&#8217;s comment, the set up could be something like this, running as a daemon: tail -f /var/log/apache/error_log | grep pattern | mail <a href="mailto:error@example.org">error@example.org</a></p>
<p>You can easily add a script between grep and mail to check for dupes.</p>
<p>There&#8217;s probably some kind of package available with that functionality and more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Sterling</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5448</link>
		<dc:creator>Benjamin Sterling</dc:creator>
		<pubDate>Wed, 03 Dec 2008 03:37:38 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5448</guid>
		<description>My bad David, I read your post and it got me all excited.  Didn&#039;t mean to steal your thunder, and really, I only get about 10 readers a day to my actual posts.  All my other traffic is to my plugins so you can get away with posting with out anyone noticing dup content.

Anon, not sure what part of it is a bad idea, of course this is a bit of a proof-of-concept and there would need to be some dup checking, maybe a database or something.  Not sure how you would set up grep the log files but if it is not instant then it will defeat the purpose.  Imagine you post an article and you &quot;think&quot; you linked an image correctly.  If you don&#039;t have an instant notice process set up, you can go a whole day before you realize that image was never linked.</description>
		<content:encoded><![CDATA[<p>My bad David, I read your post and it got me all excited.  Didn&#8217;t mean to steal your thunder, and really, I only get about 10 readers a day to my actual posts.  All my other traffic is to my plugins so you can get away with posting with out anyone noticing dup content.</p>
<p>Anon, not sure what part of it is a bad idea, of course this is a bit of a proof-of-concept and there would need to be some dup checking, maybe a database or something.  Not sure how you would set up grep the log files but if it is not instant then it will defeat the purpose.  Imagine you post an article and you &#8220;think&#8221; you linked an image correctly.  If you don&#8217;t have an instant notice process set up, you can go a whole day before you realize that image was never linked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anon</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5447</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Wed, 03 Dec 2008 02:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5447</guid>
		<description>this seems like a bad idea to me. why not just grep your logfiles for errors and correct instead of waiting for pages to be viewed?</description>
		<content:encoded><![CDATA[<p>this seems like a bad idea to me. why not just grep your logfiles for errors and correct instead of waiting for pages to be viewed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Walsh</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5446</link>
		<dc:creator>David Walsh</dc:creator>
		<pubDate>Wed, 03 Dec 2008 01:33:03 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5446</guid>
		<description>Benjamin, you bastard!  :)

I wrote a jQuery version I was going to post tomorrow morning!  Way to ruin it!

I&#039;ll post it some time in the future -- please don&#039;t be offended.  Thanks for reading!

David</description>
		<content:encoded><![CDATA[<p>Benjamin, you bastard!  :)</p>
<p>I wrote a jQuery version I was going to post tomorrow morning!  Way to ruin it!</p>
<p>I&#8217;ll post it some time in the future &#8212; please don&#8217;t be offended.  Thanks for reading!</p>
<p>David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Sterling</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5440</link>
		<dc:creator>Benjamin Sterling</dc:creator>
		<pubDate>Mon, 01 Dec 2008 19:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5440</guid>
		<description>I am using http://blog.igeek.info/wp-plugins/igsyntax-hiliter/ so the syntax would be what language you are posting about [css] for css, [js] for javascript and so on.  I am just realizing I don&#039;t have that info anywhere for comments, need to fix that.

thanks.</description>
		<content:encoded><![CDATA[<p>I am using <a href="http://blog.igeek.info/wp-plugins/igsyntax-hiliter/" rel="nofollow">http://blog.igeek.info/wp-plug.....x-hiliter/</a> so the syntax would be what language you are posting about [css] for css, [js] for javascript and so on.  I am just realizing I don&#8217;t have that info anywhere for comments, need to fix that.</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Irish</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5439</link>
		<dc:creator>Paul Irish</dc:creator>
		<pubDate>Mon, 01 Dec 2008 19:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5439</guid>
		<description>Yup good catch. Looks like it wont bubble up. That&#039;s a shame.  

Btw whats the syntax for code? source tag?</description>
		<content:encoded><![CDATA[<p>Yup good catch. Looks like it wont bubble up. That&#8217;s a shame.  </p>
<p>Btw whats the syntax for code? source tag?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Sterling</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5438</link>
		<dc:creator>Benjamin Sterling</dc:creator>
		<pubDate>Mon, 01 Dec 2008 18:32:58 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5438</guid>
		<description>Thanks for following up on that, I was trying a few combination but no luck myself.  When I do:
[js]
$(&#039;*&#039;).error(function(evt){
	console.log( evt );
});
[/js]

Part of the object that gets returned is &quot;bubbles:false,&quot; wonder if that is something in the browser or a jQuery thing.  I will need to look in to it.</description>
		<content:encoded><![CDATA[<p>Thanks for following up on that, I was trying a few combination but no luck myself.  When I do:</p>
<div class="igBar"><span id="ljavascript-1"><a href="#" onclick="javascript:showPlainTxt('javascript-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-1">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'*'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">error</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>evt<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; console.<span style="color: #006600;">log</span><span style="color: #66cc66;">&#40;</span> evt <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Part of the object that gets returned is "bubbles:false," wonder if that is something in the browser or a jQuery thing.  I will need to look in to it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Irish</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5437</link>
		<dc:creator>Paul Irish</dc:creator>
		<pubDate>Mon, 01 Dec 2008 18:21:41 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5437</guid>
		<description>Looks like it&#039;s not possible... Bummer

Here&#039;s the code I tried:

$(document).error(function(evt){
  if ($(evt.target).is(&#039;img&#039;)){
    $.post(&#039;brokenImages.php&#039;,{&#039;image&#039;:this.src,&#039;page&#039;:location.href}, function(data){
      $(&#039;pre&#039;).append(data);
    });
  }
});


(Yup thats a good overview page)</description>
		<content:encoded><![CDATA[<p>Looks like it's not possible... Bummer</p>
<p>Here's the code I tried:</p>
<p>$(document).error(function(evt){<br />
  if ($(evt.target).is('img')){<br />
    $.post('brokenImages.php',{'image':this.src,'page':location.href}, function(data){<br />
      $('pre').append(data);<br />
    });<br />
  }<br />
});</p>
<p>(Yup thats a good overview page)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Sterling</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5436</link>
		<dc:creator>Benjamin Sterling</dc:creator>
		<pubDate>Mon, 01 Dec 2008 18:06:52 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5436</guid>
		<description>Paul, Just found this post http://icant.co.uk/sandbox/eventdelegation/ so I think I understand now what you are getting at.  I don&#039;t know the answer, but I think it would be worth a look at.

edit: this looks to be a good read also: http://www.danwebb.net/2008/2/8/event-delegation-made-easy-in-jquery</description>
		<content:encoded><![CDATA[<p>Paul, Just found this post <a href="http://icant.co.uk/sandbox/eventdelegation/" rel="nofollow">http://icant.co.uk/sandbox/eventdelegation/</a> so I think I understand now what you are getting at.  I don't know the answer, but I think it would be worth a look at.</p>
<p>edit: this looks to be a good read also: <a href="http://www.danwebb.net/2008/2/8/event-delegation-made-easy-in-jquery" rel="nofollow">http://www.danwebb.net/2008/2/.....-in-jquery</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Sterling</title>
		<link>http://benjaminsterling.com/send-email-notifications-for-broken-images-using-jquery-ajax/comment-page-1/#comment-5435</link>
		<dc:creator>Benjamin Sterling</dc:creator>
		<pubDate>Mon, 01 Dec 2008 18:01:58 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=120#comment-5435</guid>
		<description>Paul, I posted a link to an example, there should be three bad images.  I grabbed a few images from flickr to show a longer load time.

Can you explain what you mean by &quot;event delegation&quot;, are you saying do something like cache all the image errors and then send one request?</description>
		<content:encoded><![CDATA[<p>Paul, I posted a link to an example, there should be three bad images.  I grabbed a few images from flickr to show a longer load time.</p>
<p>Can you explain what you mean by "event delegation", are you saying do something like cache all the image errors and then send one request?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
