<?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>The Viamentis Blog &#187; Javascript</title>
	<atom:link href="http://blog.viamentis.com/articles/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.viamentis.com</link>
	<description>Curious About Everything</description>
	<lastBuildDate>Mon, 12 Jul 2010 11:16:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>If wishes were horses&#8230;</title>
		<link>http://blog.viamentis.com/articles/2008/11/18/if-wishes-were-horses/</link>
		<comments>http://blog.viamentis.com/articles/2008/11/18/if-wishes-were-horses/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 08:58:04 +0000</pubDate>
		<dc:creator>Vamsee</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Lisp]]></category>
		<category><![CDATA[yui]]></category>

		<guid isPermaLink="false">http://blog.viamentis.com/?p=205</guid>
		<description><![CDATA[As it happens, I wondered if I could get to work with jQuery in a previous post. Looks like I turned lucky, and I was contacted recently to work on a javascript-heavy project. Initially we started working with jQuery, but due to the nature of the project, where in jQuery needs to live together with [...]]]></description>
			<content:encoded><![CDATA[<p>As it happens, I wondered if I could get to work with jQuery in a previous post. Looks like I turned lucky, and I was contacted recently to work on a javascript-heavy project. Initially we started working with jQuery, but due to the nature of the project, where in jQuery needs to live together with several other js frameworks, and Prototype being one of them, we quickly ran into conflicts.</p>
<p>There are several tricks to make sure jQuery doesn&#8217;t conflict with other frameworks, but none of them actually worked satisfactorily. We ended up using <a href="http://developer.yahoo.com/yui/">YUI</a> instead because one of its&#8217; strong points is a non-conflicting namespace. Another stroke of luck &#8211; I have been meaning to work with YUI too, but finally got the chance. A pretty tight deadline meant I had to get up to snuff with a lot of JS concepts that I understood only hazily, and it was great fun working with JS again.</p>
<p>JS is a very powerful language, and it&#8217;s very true that it&#8217;s a language that wears the syntax of Java, but it&#8217;s actually a kind of Lisp. It is very much like functional languages in its&#8217; design, where functions are first class objects, of course with closures etc. Plus, YUI makes it even more fun &#8211; it has a complete set of controls which help you build very rich UIs. Also, if you&#8217;re interested in JS at all, I recommend reading <a href="http://yuiblog.com/">YUI Blog</a> &#8211; a veritable gold mine of JS-related info. A very enlightening blog.</p>
<div id="pfButton"><a href="http://blog.viamentis.com/articles/2008/11/18/if-wishes-were-horses/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button-both.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.viamentis.com/articles/2008/11/18/if-wishes-were-horses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interesting: jRails</title>
		<link>http://blog.viamentis.com/articles/2008/10/09/interesting-jrails/</link>
		<comments>http://blog.viamentis.com/articles/2008/10/09/interesting-jrails/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 06:21:56 +0000</pubDate>
		<dc:creator>Vamsee</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jrails]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[prototype]]></category>

		<guid isPermaLink="false">http://blog.viamentis.com/?p=199</guid>
		<description><![CDATA[Now, this is interesting. I tried jQuery a while back, and have been looking for an excuse to use it in one of our projects. Since Rails is so closely married to Prototype, it&#8217;s not so easy having two different js frameworks to maintain. Until now. jRails looks interesting, promises to be a drop-in replacement [...]]]></description>
			<content:encoded><![CDATA[<p>Now, this is interesting. I tried jQuery a while back, and have been looking for an excuse to use it in one of our projects. Since Rails is so closely married to Prototype, it&#8217;s not so easy having two different js frameworks to maintain. Until now. <a href="http://ennerchi.com/projects/jrails">jRails </a>looks interesting, promises to be a drop-in replacement for Prototype.js. Now things should get exciting.</p>
<div id="pfButton"><a href="http://blog.viamentis.com/articles/2008/10/09/interesting-jrails/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button-both.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.viamentis.com/articles/2008/10/09/interesting-jrails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scriptaculous &#8211; a Javascript library</title>
		<link>http://blog.viamentis.com/articles/2008/03/14/scriptaculous-a-javascript-library/</link>
		<comments>http://blog.viamentis.com/articles/2008/03/14/scriptaculous-a-javascript-library/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 12:34:01 +0000</pubDate>
		<dc:creator>divya</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Library]]></category>
		<category><![CDATA[Prototype.js]]></category>
		<category><![CDATA[scriptaculous]]></category>

		<guid isPermaLink="false">http://blog.viamentis.com/articles/2008/03/14/scriptaculous-a-javascript-library/</guid>
		<description><![CDATA[Scriptaculous is a Javascript library for providing Web 2.0 effects in web pages. Scriptaculous is built on top of the Prototype library(prototype.js).Effects provided by scriptaculous include Visual effects like Appear,Higlight, Shake etc of DOM elements. It also provides advanced functions like Slider, Drag &#38; Drop and Autocomplete for text boxes. A drop and drop shopping [...]]]></description>
			<content:encoded><![CDATA[<p>Scriptaculous is a Javascript library for providing Web 2.0 effects in web pages. Scriptaculous is built on top of the Prototype library(prototype.js).Effects provided by scriptaculous include Visual effects like Appear,Higlight, Shake etc of DOM elements. It also provides advanced functions like Slider, Drag &amp; Drop and Autocomplete for text boxes.</p>
<p>A drop and drop shopping cart example can be <a href="http://demo.script.aculo.us/shop">see here</a></p>
<p>Scriptaculous can be downloaded from <a href="http://script.aculo.us/dist/scriptaculous-js-1.8.1.tar.gz">here</a>&#8230;</p>
<p>Download and link the scriptaculouos.js file to your html page. Using scriptaculous effects is very easy</p>
<p>Example:</p>
<p><code>Effect.Appear('element_id');  (element_id is the id of a DOM element)</code></p>
<p>Similar examples with demo can be seen <a href="http://wiki.script.aculo.us/scriptaculous/show/CombinationEffectsDemo">here</a></p>
<p>Scriptaculous library by itself is simple, but Ruby on Rails makes it even simpler. Rails has wrappers around scriptacuolus methods.</p>
<p>Examples:<br />
<code>i <img src='http://blog.viamentis.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> nclick =&gt; visual_effect(:highlight, 'msg', :duration =&gt; 1.0)</code></p>
<p><code>ii. &lt;%= draggable_element 'idOne', :revert =&gt; true %&gt;</code></p>
<div id="pfButton"><a href="http://blog.viamentis.com/articles/2008/03/14/scriptaculous-a-javascript-library/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button-both.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.viamentis.com/articles/2008/03/14/scriptaculous-a-javascript-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
