<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Rails Forum - Ruby on Rails Help and Discussion Forum - Pass JS return value to partial?]]></title>
		<link>http://railsforum.com/viewtopic.php?id=38842</link>
		<description><![CDATA[The most recent posts in Pass JS return value to partial?.]]></description>
		<lastBuildDate>Thu, 13 May 2010 11:12:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Pass JS return value to partial?]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=124294#p124294</link>
			<description><![CDATA[<p>You have misconceptions about the role of Javascript in web applications. What you are trying to do does not make sense.</p>]]></description>
			<author><![CDATA[dummy@example.com (henning)]]></author>
			<pubDate>Thu, 13 May 2010 11:12:12 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=124294#p124294</guid>
		</item>
		<item>
			<title><![CDATA[Pass JS return value to partial?]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=124114#p124114</link>
			<description><![CDATA[<p>Within my view I would like to call a JS function which returns a value that I can then pass to a partial. Can&#039;t figure out how to do this or even if you can. Any suggestions? Thanks in advance.</p><p>Example ( assume ../views/foo/show.html.erb):</p><p>...<br />&lt;script language=&quot;JavaScript&quot;&gt;<br />&nbsp; &nbsp;function foo(){<br />&nbsp; &nbsp; &nbsp; return 5;<br />&nbsp; &nbsp;}<br />&lt;/script&gt;</p><p>&lt;%= render partial =&gt; &quot;my_partial&quot;,&nbsp; locals =&gt; {:ref_no =&gt; javascript_tag &quot;foo()&quot;} %&gt;<br />...</p>]]></description>
			<author><![CDATA[dummy@example.com (AgentSmith)]]></author>
			<pubDate>Mon, 10 May 2010 14:46:00 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=124114#p124114</guid>
		</item>
	</channel>
</rss>
