<?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>I-Am-Bot &#187; javascript</title>
	<atom:link href="http://iambot.net/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://iambot.net</link>
	<description>Code, technology and life</description>
	<lastBuildDate>Sat, 28 Aug 2010 16:00:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Introducing TinyPop</title>
		<link>http://iambot.net/2010/08/introducing-tinypop/</link>
		<comments>http://iambot.net/2010/08/introducing-tinypop/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 11:34:58 +0000</pubDate>
		<dc:creator>Srinath</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://iambot.net/?p=434</guid>
		<description><![CDATA[&#160; TinyPop is a lightweight (1.5 KB minified) JavaScript for Growl like notifications. It can be used as an alternative to jGrowl when you don't want to use jQuery for a simple task. Details Download Demo]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>TinyPop is a lightweight (1.5 KB minified) JavaScript for <a href="http://en.wikipedia.org/wiki/Growl_%28software%29">Growl</a> like notifications. It can be used as an alternative to <a href="http://www.stanlemon.net/projects/jgrowl.html">jGrowl</a> when you don't want to use jQuery for a simple task. </p>
<p><strong><a href="http://iambot.net/projects/tinypop/">Details</a></strong></p>
<p><strong><a href="http://iambot.net/dScript/download.php?fname=./tinypop.zip">Download</a></strong></p>
<p><strong><a href="http://iambot.net/demo/tinypop/">Demo</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://iambot.net/2010/08/introducing-tinypop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpUserAuth Released!</title>
		<link>http://iambot.net/2010/07/phpuserauth-released/</link>
		<comments>http://iambot.net/2010/07/phpuserauth-released/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 02:04:13 +0000</pubDate>
		<dc:creator>Srinath</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://iambot.net/?p=426</guid>
		<description><![CDATA[It's finally done! The package is up for grabs, with a quick starter guide. Details Download Demo Please go through the project page for more details! The Readme.txt file inside folder "readme" contains instructions for installation and usage Leave your comments/questions/suggestions on the project page. Out.]]></description>
			<content:encoded><![CDATA[<p>It's finally done! The package is up for grabs, with a quick starter guide.</p>
<p><strong><a href="http://iambot.net/projects/phpuserauth/">Details</a></strong></p>
<p><strong><a href="http://iambot.net/dScript/download.php?fname=./phpuserauth.zip">Download</a></strong></p>
<p><strong><a href="http://iambot.net/demo/phpuserauth/">Demo</a></strong></p>
<p>Please go through the project page for more details!</p>
<p>The Readme.txt file inside folder "readme" contains instructions for installation and usage</p>
<p>Leave your comments/questions/suggestions on the project page.</p>
<p>Out.</p>
]]></content:encoded>
			<wfw:commentRss>http://iambot.net/2010/07/phpuserauth-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery cannot cook</title>
		<link>http://iambot.net/2010/04/jquery-cannot-cook/</link>
		<comments>http://iambot.net/2010/04/jquery-cannot-cook/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 14:58:39 +0000</pubDate>
		<dc:creator>Srinath</dc:creator>
				<category><![CDATA[scribbles]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://iambot.net/?p=339</guid>
		<description><![CDATA[I love jQuery. It is more JavaScript that I can ever hope to understand. It's a boon to web developers wanting to make meaningful, cross browser, interactive web apps. That is why it pains me to see it being used for trivial stuff like accessing elements, showing/hiding elements, etc. Case in point: To access elements [...]]]></description>
			<content:encoded><![CDATA[<p>I love <a href="http://jquery.com" target="_blank">jQuery</a>. It is more JavaScript that I can ever hope to understand. It's a boon to web developers wanting to make meaningful, cross browser, interactive web apps. That is why it pains me to see it being used for trivial stuff like accessing elements, showing/hiding elements, etc. Case in point:</p>
<p>To access elements using jQuery, you would use</p>
<blockquote><p>
$("p") - for tag name<br />
$(".first") - for class<br />
$("#menu") - for id
</p></blockquote>
<p>Can that be done without jQuery?</p>
<blockquote><p>
document.getElementsByTagName("p") - for tag name<br />
document.getElementsByClassName("first") - for class<br />
document.getElementById("menu") - for id
</p></blockquote>
<p>Of course the way you would manipulate the elements is different, but can be done easily as well. Appending some HTML content to an element with id "content"is a piece of cake with jQuery:</p>
<blockquote><p>$("#content").append("&lt;p&gt;This is the new content&lt;/p&gt;");</p></blockquote>
<p>And without it:</p>
<blockquote><p>document.getElementById("content").innerHTML += "&lt;p&gt;This is the new content&lt;/p&gt;";</p></blockquote>
<p>That does it. Now how about showing/hiding an element using jQuery</p>
<blockquote><p>
$("#content").show()<br />
$("#content").hide()
</p></blockquote>
<p>and without using it</p>
<blockquote><p>
document.getElementById("content").style.visibility = "visible";<br />
document.getElementById("content").style.visibility = "hidden";
</p></blockquote>
<p>You don't get the fancy animation effect like jQuery, but it does what its supposed to do. Now for the .each() function of jQuery that matches all the occurrences of an element. Lets say you want to set the text of all occurrences of the paragraph element to "Hi". Using jQuery you would do</p>
<blockquote><p>
$("p").each(function() {<br />
       $(this).html("Hi");<br />
}
</p></blockquote>
<p>Lets try that without jQuery</p>
<blockquote><p>
var para = document.getElementsByTagName("p");<br />
for(var i=0;i&lt;para.length;i++) {<br />
para[i].innerHTML = "Hi";<br />
}
</p></blockquote>
<p>There, you wrote an extra line, but it doesn't require a library and should work in almost all browsers.</p>
<p>Now one of the most important features of jQuery - the $(document).ready() function. What it basically does is it allows us to run our Javascript stuff as soon as the DOM is ready, and does not wait for the entire page to load (including images, and other resources which might be time consuming). This means that our scripts can execute a bit faster when compared to using the traditional window.onload method. More on that <a href="http://15daysofjquery.com/quicker/4/" target="_blank">here</a> and <a href="http://www.learningjquery.com/2006/09/introducing-document-ready" target="_blank">here</a>.</p>
<p>document.ready is something that is really neat and I used to have no arguments against it. But thankfully I came across <a href="http://code.google.com/p/domready/" target="_blank">domready</a>, which mimics the function and stands at around 1.7 KB compressed.</p>
<p>Of course jQuery is much much more than all the simple examples I've given. And that is exactly the point I'm trying to make. Using jQuery for straightforward, simple JavaScript manipulation doesn't make sense at all. It definitely isn't worth the extra 50 KB that it uses. However, if you want to do something that uses command chaining, AJAX, advanced selectors and matching, etc then you need to only look at jQuery. And yes, I do love jQuery.</p>
]]></content:encoded>
			<wfw:commentRss>http://iambot.net/2010/04/jquery-cannot-cook/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Lightweight Javascript inline editing</title>
		<link>http://iambot.net/projects/editablejs</link>
		<comments>http://iambot.net/projects/editablejs#comments</comments>
		<pubDate>Sat, 27 Mar 2010 16:48:19 +0000</pubDate>
		<dc:creator>Srinath</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://iambot.net/?p=329</guid>
		<description><![CDATA[Update 2: Core methods rewritten for compatibility with browsers. Check change log for details Update 1: Script updated considerably There are many excellent scripts to edit something inline using javascript (like jeditable), but not many that work standalone. If you hate wanting to include a 50 KB library just for this simple functionality, you are [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update 2: Core methods rewritten for compatibility with browsers. Check change log for details</strong></p>
<p><strong>Update 1: Script updated considerably </strong></p>
<p>There are many excellent scripts to edit something inline using javascript (like <a href="http://www.appelsiini.net/projects/jeditable" target="_blank">jeditable</a>), but not many that work standalone. If you hate wanting to include a 50 KB library just for this simple functionality, you are in the right page. This script is tiny (1.7 kB minified) and works on most modern browsers</p>
<p><a href="http://iambot.net/demo/editable/"><strong>Demo</strong></a></p>
<p><a href="../dScript/download.php?fname=./editable.zip" target="_blank"><strong>Download</strong></a></p>
<p><strong>Steps:</strong></p>
<p>1) Include the editable.js file in your page</p>
<p>2) Add the attribute class="editable" to a division, paragraph or table cell &lt;td&gt;</p>
<p>3) Click on the element for it to turn into a text box. Update the value, and press enter to save. Press tab or click anywhere on the page to discard updates and revert to the old value</p>
<p><strong>Changelog</strong></p>
<p><u><em>Version 0.2</em></u></p>
<ul>
<li>Support for all major browsers</li>
<li>Table cell editing more robust</li>
<li>Added support for IE 7 and 8. Uses ie.js for support for getElementsByClassName</li>
</ul>
<p><u><em>Initial Release</em></u></p>
<ul>
<li>The editable box now fits to the size of the original element. You can see that in the <a href="http://iambot.net/demo/editable/">demo</a></li>
<li>Support for inline table cell editing is now included (Proper layout/orientation only work in FF for now. Horribly out of place in other browsers and will be fixed later)</li>
<li>Editing of an element with other HTML tags now works better</li>
</ul>
<p><strong>Gotchas:</strong></p>
<p><del datetime="2010-05-10T04:22:53+00:00">1) Only one element is editable at any instant (I wanted this specific feature for a project I'm working on)</del></p>
<p><del datetime="2010-05-08T09:00:31+00:00">2) The text box doesn't fit to the size of the original element (will be fixed)</del></p>
<p><strong>Tested On:</strong></p>
<p>Windows - Firefox 3.6, IE 7 &amp; 8, Chrome</p>
<p>Mac - Firefox 3.6, Safari 4, Chrome</p>
<p><strong>Terms:</strong></p>
<p>Free to use for personal or commercial purposes, but please give credits</p>
<p><strong>Notes:</strong></p>
<p>I know it can always be better, and I'm just a beginner. So comments, suggestions always welcome!</p>
]]></content:encoded>
			<wfw:commentRss>http://iambot.net/projects/editablejs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple PHP calendar with inline edit</title>
		<link>http://iambot.net/2009/07/simple-php-calendar-with-inline-edit/</link>
		<comments>http://iambot.net/2009/07/simple-php-calendar-with-inline-edit/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 09:01:39 +0000</pubDate>
		<dc:creator>Srinath</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://iambot.net/?p=148</guid>
		<description><![CDATA[I was working on a project which required a simple calendar with inline edit. The calendar is for a school which marks if the day is working or not, and the comment (told ya, its very simple). Needs PHP, jQuery, jQuery jEditable plugin and a MySQL table to store the data. The demo is here. [...]]]></description>
			<content:encoded><![CDATA[<p>I was working on a project which required a simple calendar with inline edit. The calendar is for a school which marks if the day is working or not, and the comment (told ya, its very simple). Needs PHP, jQuery, jQuery jEditable plugin and a MySQL table to store the data.</p>
<p>The demo is <a href="http://iambot.net/demo/calendar/" target="_blank">here</a>. If anyone is interested in the code, drop a comment.</p>
<p>P.S: Yea I suck at CSS. If anyone does a better job, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://iambot.net/2009/07/simple-php-calendar-with-inline-edit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
