<?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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Seree Woradechjamroen &#187; jquery</title>
	<atom:link href="http://www.iamseree.com/tag/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.iamseree.com</link>
	<description>Keep learning everyday, willing to win and take action</description>
	<lastBuildDate>Tue, 15 May 2012 16:06:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Rails 3 DESTROY did not work! The solution&#8230;</title>
		<link>http://www.iamseree.com/application-development/rails-3-destroy-did-not-work-the-solution</link>
		<comments>http://www.iamseree.com/application-development/rails-3-destroy-did-not-work-the-solution#comments</comments>
		<pubDate>Sun, 05 Jun 2011 19:08:12 +0000</pubDate>
		<dc:creator>Seree</dc:creator>
				<category><![CDATA[Application Development]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ror destroy]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://www.iamseree.com/?p=405</guid>
		<description><![CDATA[<p>Hi there,</p> <p>If you are just beginning with Rails 3 and found some difficulty that made your rails app&#8217;s DESTROY command didn&#8217;t work for your scaffold views.</p> <p>I think this is a quick troubleshooting guide with solution to get pass this stupid thing.</p> Problem #1 : You didn&#8217;t included the default Rails javascript files. <p>- [...]]]></description>
			<content:encoded><![CDATA[<p>Hi there,</p>
<p>If you are just beginning with Rails 3 and found some difficulty that made your rails app&#8217;s DESTROY command didn&#8217;t work for your scaffold views.</p>
<p>I think this is a quick troubleshooting guide with solution to get pass this stupid thing.</p>
<h2>Problem #1 : You didn&#8217;t included the default Rails javascript files.</h2>
<p>- Please make sure you have something like
<pre>javascript_include_tag :defaults</pre>
<p> or at least
<pre>javascript_include_tag 'prototype', 'rails'</pre>
<p>- Because the generated view for DESTROY command is based on those libraries and rails is using Prototype be default.</p>
<p><a href="http://www.iamseree.com/wp-content/uploads/2011/06/prototype.gif"><img class="alignnone size-full wp-image-407" title="prototype" src="http://www.iamseree.com/wp-content/uploads/2011/06/prototype.gif" alt="prototype" width="176" height="82" /></a></p>
<h2>Problem #2 : Javascript conflicted between Prototype and jQuery.</h2>
<p>- Because rails is using Prototype as default javascript library, so, if your view is using jQuery, when you&#8217;ve include both jQuery and Prototype, the DESTROY command will broke!</p>
<p>- Good thing is that Rails 3 is allow you to switch from Prototype to jQuery, the most easiest approach I found is to install gem &#8216;jquery-rails&#8217; via your terminal or using Gemfile.</p>
<p>- After the gem was installed, run the command
<pre>rails g jquery:install</pre>
<p> This will remove prototype and add jQuery into your project tree, if you are using Git, don&#8217;t forget to add those newly added files into your Git.</p>
<p>- Now just include the correct libraries, what I did is&#8230;</p>
<pre>

javascript_include_tag 'jquery.min.js',
'jquery_ujs', ...
</pre>
<p>The DESTROY command should work now without breaking your jQuery integrated views.</p>
<p><a href="http://www.iamseree.com/wp-content/uploads/2011/06/jquery-logo.gif"><img class="alignnone size-full wp-image-408" title="jquery-logo" src="http://www.iamseree.com/wp-content/uploads/2011/06/jquery-logo.gif" alt="jQuery" width="168" height="146" /></a></p>
<h2>Problem #3, missing of &lt;%= csrf_meta_tag %&gt;</h2>
<p>Just in case if you are developing new app with new template, you might forget to include Cross Site Request Forgery tag, DESTROY command will not work, all sessions will be cleared without telling you what&#8217;s wrong.</p>
<p>This is because you are forgot to include the
<pre>&lt;%= csrf_meta_tag %&gt;</pre>
<p> in your template.</p>
<p>Hope this help.</p>
<div align="left" style="float: ; padding: 5px 5px 0px 0px;"><a name="fb_share" type="button" share_url="http://www.iamseree.com/application-development/rails-3-destroy-did-not-work-the-solution"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.iamseree.com/application-development/rails-3-destroy-did-not-work-the-solution/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>In research of a javascript library to be used with ASP.NET on my next project&#8230;</title>
		<link>http://www.iamseree.com/application-development/in-research-of-a-javascript-library-to-be-used-with-aspnet-on-my-next-project</link>
		<comments>http://www.iamseree.com/application-development/in-research-of-a-javascript-library-to-be-used-with-aspnet-on-my-next-project#comments</comments>
		<pubDate>Thu, 16 Oct 2008 06:26:49 +0000</pubDate>
		<dc:creator>Seree</dc:creator>
				<category><![CDATA[Application Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[extjs]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[javascript library]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[yui]]></category>

		<guid isPermaLink="false">http://www.iamseree.com/?p=3</guid>
		<description><![CDATA[<p>Hi fellow readers,</p> <p>Today I come to share with you how I choose a javascript library to be used on my new project.</p> <p>I&#8217;m not talk about choosing just an AJAX library but I want some &#8216;full&#8217; set of library which including both AJAX core and user interface core.</p> <p>Here are my choices before consideration&#8230;</p> [...]]]></description>
			<content:encoded><![CDATA[<p>Hi fellow readers,</p>
<p>Today I come to share with you how I choose a javascript library to be used on my new project.</p>
<p>I&#8217;m not talk about choosing just an AJAX library but I want some &#8216;full&#8217; set of library which including both AJAX core and user interface core.</p>
<p>Here are my choices before consideration&#8230;</p>
<ul>
<li>jQuery</li>
<li>YUI (Yahoo User Interface)</li>
<li>ExtJs</li>
</ul>
<p>Sorry that I didn&#8217;t included other libraries because I&#8217;m not impressed with any other at all.</p>
<p>First, jQuery, this is by far the best AJAX + effect library for me personally. I really love it because it produces a &#8216;short&#8217; script. Especially when compared to YUI.</p>
<p>However, what jQuery lack of is UI components. You have to find out 3rd party for yourself.</p>
<p>So, I decide to move on YUI which currently have a bunch of UI components included.</p>
<p>What I can say about YUI is I really impressed with it. It has a BUNCH of UI included in the library which you can select to use or bypass.</p>
<p>However, most of the script produced by YUI is so &#8216;long&#8217; when compared to jQuery.</p>
<p>So, now, I hold on both YUI and jQuery and finding for a better library in the market.</p>
<p>I finally found ExtJs.</p>
<p>Try yourself and let me know how you feel about it.</p>
<p>I feel the &#8216;MOST&#8217; impress with ExtJs.</p>
<p>Cool UI and effect and I decided to use it in combination with jQuery.</p>
<p>This will help me reduce much time to develop my project.</p>
<p>Technical details will be continued in the next part while I&#8217;m developing my project. <img src='http://www.iamseree.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Talk soon,</p>
<p>Seree W.</p>
<div align="left" style="float: ; padding: 5px 5px 0px 0px;"><a name="fb_share" type="button" share_url="http://www.iamseree.com/application-development/in-research-of-a-javascript-library-to-be-used-with-aspnet-on-my-next-project"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.iamseree.com/application-development/in-research-of-a-javascript-library-to-be-used-with-aspnet-on-my-next-project/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

