<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: HOW-TO: Get Rails and the Yahoo User Interface (YUI) to talk &#8212; Part 1</title>
	<link>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/</link>
	<description>...tales of a software curmudgeon</description>
	<pubDate>Fri, 10 Oct 2008 23:17:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: cpatil</title>
		<link>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-10470</link>
		<pubDate>Sat, 19 Jan 2008 22:16:01 +0000</pubDate>
		<guid>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-10470</guid>
					<description>Hi, I have coded up a library to allow Rails RJS to work with YUI. The library allows seamless usage of link_to_remote and remote_form_for helpers as well as rjs inline rendering with YUI libraries. 
More information &lt;a href=&quot;http://justbarebones.blogspot.com/2008/01/announcing-yuirails.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; . And a small &lt;a href=&quot;http://loop6.com:3000&quot; rel=&quot;nofollow&quot;&gt;demo&lt;/a&gt; as well.</description>
		<content:encoded><![CDATA[<p>Hi, I have coded up a library to allow Rails RJS to work with YUI. The library allows seamless usage of link_to_remote and remote_form_for helpers as well as rjs inline rendering with YUI libraries.<br />
More information <a href="http://justbarebones.blogspot.com/2008/01/announcing-yuirails.html" rel="nofollow">here</a> . And a small <a href="http://loop6.com:3000" rel="nofollow">demo</a> as well.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: StumbleUpon - Your page is now on StumbleUpon!</title>
		<link>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-10427</link>
		<pubDate>Thu, 17 Jan 2008 03:43:09 +0000</pubDate>
		<guid>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-10427</guid>
					<description>&lt;!--%kramer-ref-pre%--&gt;[...] Your page is on StumbleUpon [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://dev.wp-plugins.org/wiki/Kramer"><img src="http://sonjayatandon.com/wp-content/plugins/kramer.php?kramer=gif-icon" class="technorati-balloon" alt="Kramer auto Pingback" style="border:0;" /></a>[&#8230;] Your page is on StumbleUpon [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: zerosum dirt(nap) - YUI Dialog On Rails: First Pass</title>
		<link>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-10011</link>
		<pubDate>Sun, 16 Dec 2007 01:28:24 +0000</pubDate>
		<guid>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-10011</guid>
					<description>&lt;!--%kramer-ref-pre%--&gt;[...] Let's start with something simple. Oh yeah, I should mention that Sonjaya Tandon covered this same sorta stuff and what I'm doing is based on what I found there, but I'm going to do it a little bit differently, and demonstrate how you can leverage RJS. Here we go: [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://dev.wp-plugins.org/wiki/Kramer"><img src="http://sonjayatandon.com/wp-content/plugins/kramer.php?kramer=gif-icon" class="technorati-balloon" alt="Kramer auto Pingback" style="border:0;" /></a>[&#8230;] Let&#8217;s start with something simple. Oh yeah, I should mention that Sonjaya Tandon covered this same sorta stuff and what I&#8217;m doing is based on what I found there, but I&#8217;m going to do it a little bit differently, and demonstrate how you can leverage RJS. Here we go: [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Discover From Your Favorite Topic or Web Page: www.creativeui.com/2007/04/11/yui-part-iii-the-mig</title>
		<link>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-9064</link>
		<pubDate>Sun, 02 Sep 2007 16:27:30 +0000</pubDate>
		<guid>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-9064</guid>
					<description>&lt;!--%kramer-ref-pre%--&gt;[...]  [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://dev.wp-plugins.org/wiki/Kramer"><img src="http://sonjayatandon.com/wp-content/plugins/kramer.php?kramer=gif-icon" class="technorati-balloon" alt="Kramer auto Pingback" style="border:0;" /></a>[&#8230;]  [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: links for 2007-07-04 -- A Tempest of Thoughts</title>
		<link>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-8111</link>
		<pubDate>Wed, 04 Jul 2007 23:31:58 +0000</pubDate>
		<guid>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-8111</guid>
					<description>[...] talk &amp;#226;€” Part 1 How to integrate yui and rails. (tags: yui rails programming ruby javascript)   Last Modified : July 5th, 2007 Filed under : Del.icio.us Navigate : Previous post /  Share: [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] talk &acirc;€” Part 1 How to integrate yui and rails. (tags: yui rails programming ruby javascript)   Last Modified : July 5th, 2007 Filed under : Del.icio.us Navigate : Previous post /  Share: [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: attilio.dona</title>
		<link>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-7244</link>
		<pubDate>Mon, 11 Jun 2007 08:28:43 +0000</pubDate>
		<guid>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-7244</guid>
					<description>Sonjaya,

the call â€świndow.location.reload( false );â€ť in handleSubmit is wrong and apparently seem to work correctly.

The problem arises because the Dialog widget for defaults invoke the Connection Manager in async mode (using xmlHttpRequest). In your example instead you have to use a simple POST in your dialog (or alternativlely you have to register the callback for the response).

To do this use the option postmethod:&quot;form&quot; in the constructor:

YAHOO.example.container.myDialog = new YAHOO.widget.Dialog(&quot;myDialog&quot;, { modal:true, visible:false, width:&quot;500px&quot;, fixedcenter:true, constraintoviewport:true, draggable:true, postmethod:&quot;form&quot; });

In my setup the missing image throws an exception in the web server log:
the image close12_1.gif must be copied under stylesheets/yui.

regards,
Attilio</description>
		<content:encoded><![CDATA[<p>Sonjaya,</p>
<p>the call â€świndow.location.reload( false );â€ť in handleSubmit is wrong and apparently seem to work correctly.</p>
<p>The problem arises because the Dialog widget for defaults invoke the Connection Manager in async mode (using xmlHttpRequest). In your example instead you have to use a simple POST in your dialog (or alternativlely you have to register the callback for the response).</p>
<p>To do this use the option postmethod:&#8221;form&#8221; in the constructor:</p>
<p>YAHOO.example.container.myDialog = new YAHOO.widget.Dialog(&#8221;myDialog&#8221;, { modal:true, visible:false, width:&#8221;500px&#8221;, fixedcenter:true, constraintoviewport:true, draggable:true, postmethod:&#8221;form&#8221; });</p>
<p>In my setup the missing image throws an exception in the web server log:<br />
the image close12_1.gif must be copied under stylesheets/yui.</p>
<p>regards,<br />
Attilio
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: weelink</title>
		<link>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-704</link>
		<pubDate>Tue, 30 Jan 2007 21:39:18 +0000</pubDate>
		<guid>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-704</guid>
					<description>&lt;blockquote&gt;
One thing I am style puzzled about though is that I didnâ€™t move the images over, but things seemed to still work fine.
&lt;/blockquote&gt;

You didn't miss anything. The urls in the stylesheet don't link to the local files but to remote ones:

&lt;code&gt;
.panel .close.nonsecure {
	background-image:url(http://us.i1.yimg.com/us.yimg.com/i/nt/ic/ut/alt3/close12_1.gif);
}

.panel .close.secure {
	background-image:url(https://a248.e.akamai.net/sec.yimg.com/i/nt/ic/ut/alt3/close12_1.gif);
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<blockquote><p>
One thing I am style puzzled about though is that I didnâ€™t move the images over, but things seemed to still work fine.
</p></blockquote>
<p>You didn&#8217;t miss anything. The urls in the stylesheet don&#8217;t link to the local files but to remote ones:</p>
<p><code><br />
.panel .close.nonsecure {<br />
	background-image:url(http://us.i1.yimg.com/us.yimg.com/i/nt/ic/ut/alt3/close12_1.gif);<br />
}</p>
<p>.panel .close.secure {<br />
	background-image:url(https://a248.e.akamai.net/sec.yimg.com/i/nt/ic/ut/alt3/close12_1.gif);<br />
}<br />
</code>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Yahoo! User Interface Library şÍRails</title>
		<link>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-515</link>
		<pubDate>Tue, 16 Jan 2007 01:16:48 +0000</pubDate>
		<guid>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-515</guid>
					<description>&lt;!--%kramer-ref-pre%--&gt;[...] http://developer.yahoo.com/yui/   http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/ [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://dev.wp-plugins.org/wiki/Kramer"><img src="http://sonjayatandon.com/wp-content/plugins/kramer.php?kramer=gif-icon" class="technorati-balloon" alt="Kramer auto Pingback" style="border:0;" /></a>[&#8230;] <a href='http://developer.yahoo.com/yui/' rel='nofollow'>http://developer.yahoo.com/yui/</a>   <a href='http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/' rel='nofollow'>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/</a> [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Digg / News / Upcoming</title>
		<link>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-514</link>
		<pubDate>Mon, 15 Jan 2007 22:53:49 +0000</pubDate>
		<guid>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-514</guid>
					<description>&lt;!--%kramer-ref-pre%--&gt;[...] digg it    http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interf [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://dev.wp-plugins.org/wiki/Kramer"><img src="http://sonjayatandon.com/wp-content/plugins/kramer.php?kramer=gif-icon" class="technorati-balloon" alt="Kramer auto Pingback" style="border:0;" /></a>[&#8230;] digg it    <a href='http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interf' rel='nofollow'>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interf</a> [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Digg / Technology / Upcoming</title>
		<link>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-513</link>
		<pubDate>Mon, 15 Jan 2007 22:45:41 +0000</pubDate>
		<guid>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interface-yui-to-talk-part-1/#comment-513</guid>
					<description>&lt;!--%kramer-ref-pre%--&gt;[...] digg it    http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interf [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://dev.wp-plugins.org/wiki/Kramer"><img src="http://sonjayatandon.com/wp-content/plugins/kramer.php?kramer=gif-icon" class="technorati-balloon" alt="Kramer auto Pingback" style="border:0;" /></a>[&#8230;] digg it    <a href='http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interf' rel='nofollow'>http://sonjayatandon.com/07-2006/how-to-get-rails-and-the-yahoo-user-interf</a> [&#8230;]
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
