<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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>kill3rmedia &#187; Featured</title>
	<atom:link href="http://kill3rmedia.com/category/featured/feed" rel="self" type="application/rss+xml" />
	<link>http://kill3rmedia.com</link>
	<description>Blog and Portfolio</description>
	<pubDate>Sat, 15 Nov 2008 08:24:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Select Cafe</title>
		<link>http://kill3rmedia.com/featured/select-cafe</link>
		<comments>http://kill3rmedia.com/featured/select-cafe#comments</comments>
		<pubDate>Thu, 25 Sep 2008 02:06:39 +0000</pubDate>
		<dc:creator>buddhi</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Logo]]></category>

		<guid isPermaLink="false">http://kill3rmedia.com/?p=84</guid>
		<description><![CDATA[<p><strong>Client:</strong> Select Cafe, Sri Lanka</p>
]]></description>
			<content:encoded><![CDATA[<p><strong>Client:</strong> Select Cafe, Sri Lanka</p>
]]></content:encoded>
			<wfw:commentRss>http://kill3rmedia.com/featured/select-cafe/feed</wfw:commentRss>
		</item>
		<item>
		<title>Sri Lankan Destinations</title>
		<link>http://kill3rmedia.com/featured/sri-lankan-destinations</link>
		<comments>http://kill3rmedia.com/featured/sri-lankan-destinations#comments</comments>
		<pubDate>Fri, 08 Aug 2008 04:22:27 +0000</pubDate>
		<dc:creator>buddhi</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://kill3rmedia.com/?p=47</guid>
		<description><![CDATA[<p><a href="http://kill3rmedia.com/wp-content/uploads/2008/08/sld_01.jpg"  rel="lightbox[47]">[post_image]http://kill3rmedia.com/wp-content/uploads/2008/08/sld_01.jpg[/post_image]</a></p>
<p><strong>Client:</strong> Sri Lankan Destinations, Sri Lanka<br />
<strong>Technologies:</strong> CSS/XHTML, Joomla, PHP, MySQL</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://kill3rmedia.com/wp-content/uploads/2008/08/sld_01.jpg"  rel="lightbox[47]">[post_image]http://kill3rmedia.com/wp-content/uploads/2008/08/sld_01.jpg[/post_image]</a></p>
<p><strong>Client:</strong> Sri Lankan Destinations, Sri Lanka<br />
<strong>Technologies:</strong> CSS/XHTML, Joomla, PHP, MySQL</p>
]]></content:encoded>
			<wfw:commentRss>http://kill3rmedia.com/featured/sri-lankan-destinations/feed</wfw:commentRss>
		</item>
		<item>
		<title>Simple Rails helper for using OnClick on div, tr and other tags</title>
		<link>http://kill3rmedia.com/featured/simple-rails-helper-for-using-onclick-on-div-tr-and-other-tags</link>
		<comments>http://kill3rmedia.com/featured/simple-rails-helper-for-using-onclick-on-div-tr-and-other-tags#comments</comments>
		<pubDate>Tue, 20 May 2008 23:01:00 +0000</pubDate>
		<dc:creator>buddhi</dc:creator>
		
		<category><![CDATA[AJAX]]></category>

		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Ruby / Rails]]></category>

		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[Ruby / Ruby on Rails]]></category>

		<guid isPermaLink="false">http://kill3rmedia.enspark.com/uncategorized/simple-rails-helper-for-using-onclick-on-div-tr-and-other-tags/</guid>
		<description><![CDATA[<p>I came across the issue of making set of div tags&#8217; onClick event to be connected with a remote function, yet I couldn&#8217;t find a helper method to that and I made a simple and stupid helper method by cannibalizing&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I came across the issue of making set of div tags&#8217; onClick event to be connected with a remote function, yet I couldn&#8217;t find a helper method to that and I made a simple and stupid helper method by cannibalizing link_to_remote and link_to_function helper methods.</p>
<p>usage: just like using link_to_remote, yet we don&#8217;t specify &#8220;name&#8221;, since there&#8217;s no text going inside the tag except the onclick event info</p>
<pre lang="ruby">
<pre class="brush: ruby">
//e.g:
&lt;&lt;%= onclick_to_remote :url =&gt; my_restful_url %&gt;; class=&quot;my_1&quot;&gt;;
</pre>
</pre>
<p>I works for me and get the work done.. arguments such as :with are supported.. Posting it here hoping someone will find it useful or may be improve it as well.<br />
check out the pastie for better viewing pleasure and understanding http://pastie.caboo.se/200546</p>
<pre>
<pre class="brush: ruby">
def onclick_to_remote(options = {})
*args = remote_function(options)
function = args[0] || &#039;&#039;
function = update_page(&amp;amp;block) if block_given?
&quot;onclick=\&quot;#{function}; return false;\&quot;&quot;
end
</pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kill3rmedia.com/featured/simple-rails-helper-for-using-onclick-on-div-tr-and-other-tags/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
