<?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 Learnt Today... &#187; JavaScript</title>
	<atom:link href="http://www.ilearnttoday.com/category/information-technology/web-development/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ilearnttoday.com</link>
	<description>This is where I share what I learn day by day...</description>
	<lastBuildDate>Fri, 18 May 2012 13:36:30 +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>A Simple JavaScript To Get English Language Definition From A Dictionary</title>
		<link>http://www.ilearnttoday.com/a-simple-javascript-to-get-english-language-definition-from-a-dictionary</link>
		<comments>http://www.ilearnttoday.com/a-simple-javascript-to-get-english-language-definition-from-a-dictionary#comments</comments>
		<pubDate>Tue, 19 May 2009 17:56:31 +0000</pubDate>
		<dc:creator>Menol</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Menol]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Dictionary]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[javascript:(function(){varword=prompt(Enter Word:);if(word!=null){window.open(http://dictionary.reference.com/browse/+word);}})();]]></category>
		<category><![CDATA[Simple Dictionary]]></category>

		<guid isPermaLink="false">http://www.ilearnttoday.com/?p=414</guid>
		<description><![CDATA[2009-05-19 English is not my first language so I use online dictionaries frequently as a part of my daily routine<a href="http://www.ilearnttoday.com/a-simple-javascript-to-get-english-language-definition-from-a-dictionary" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="color: #c0c0c0;">2009-05-19</span></p>
<p class="MsoNormal" style="text-align: justify;">English is not my first language so I use online dictionaries frequently as a part of my daily routine to clarify and learn unfamiliar words as I read through articles in the Internet.</p>
<p class="MsoNormal" style="text-align: justify;">I have been using www.ditionary.com for a long time and I had the plan to make this work easy by creating a small application to retrieve the definition with support of a web service. This morning suddenly a new idea hit me to use JavaScript to get the word in the first place and load the appropriate URL.</p>
<p class="MsoNormal" style="text-align: justify;"><strong> How Does This Work?</strong></p>
<p class="MsoNormal" style="text-align: justify;">When a user enters a word in the www.dictionary.com interface it redirects the user to the following dynamic URL.</p>
<p class="MsoNormal" style="text-align: justify;"><strong>http://dictionary.reference.com/browse/</strong><strong><em>Target-Word</em></strong></p>
<p class="MsoNormal" style="text-align: justify;"><em><strong>Target-Word</strong></em> is The word we are seeking the definition for</p>
<p class="MsoNormal" style="text-align: justify;">What this JavaScript does is it retrieves the desired word from the user via a prompt, generate the appropriate URL according to the above format and open the new URL in a new window or tab so the time taken (under normal circumstance) to, load the web site, type-in the word, wait till the site redirects you, is saved. Now time is only taken for a single server request/response.</p>
<p class="MsoNormal" style="text-align: justify;"><strong> How To Set This Up?</strong></p>
<p class="MsoNormal" style="text-align: justify;">It’s simple, just <span style="font-size: 10pt; font-family: Arial;">add a new favorite (for IE) or bookmark (for FireFox) in your browser and paste following code as the URL (for IE) or Location (for FireFox):</span></p>
<p class="MsoNormal" style="text-align: justify;"><strong><em><span style="font-size: 10pt; font-family: Verdana;">javascript:(function(){var%20word=prompt(%22Enter Word:%22);if(word!=null){window.open(%22http://dictionary.reference.com/browse/%22+word);}})();</span></em></strong></p>
<div id="attachment_529" class="wp-caption alignleft" style="width: 310px"><a href="http://www.ilearnttoday.com/a-simple-javascript-to-get-english-language-definition-from-a-dictionary/addbookmark-fox" rel="attachment wp-att-529"><img class="size-medium wp-image-529" title="Add bookmark dialog box in firefox" src="http://www.ilearnttoday.com/wp-content/uploads/2009/05/AddBookmark-Fox-300x224.png" alt="Add bookmark dialog box in firefox" width="300" height="224" /></a><p class="wp-caption-text">Add bookmark dialog box in firefox</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-size: 10pt; font-family: Arial;">Now, when you open the favorite/bookmark, it will ask you for the word you want to look for and open the definition in a new window/tab.</span></span></p>
<p>&nbsp;</p>
<div id="attachment_530" class="wp-caption alignleft" style="width: 310px"><a href="http://www.ilearnttoday.com/wp-content/uploads/2009/05/dic-input.png"><img class="size-medium wp-image-530" title="Sample use of the script" src="http://www.ilearnttoday.com/wp-content/uploads/2009/05/dic-input-300x97.png" alt="Sample use of the script" width="300" height="97" /></a><p class="wp-caption-text">Sample use of the script</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-size: 10pt; font-family: Arial;">It’s easier to use if you add the bookmark/favorite as a button into your bookmark/links toolbar</span></span></p>
<p class="MsoNormal">
<div id="attachment_531" class="wp-caption alignleft" style="width: 100px"><a href="http://www.ilearnttoday.com/wp-content/uploads/2009/05/Button.png"><img class="size-full wp-image-531" title="Bookmark button" src="http://www.ilearnttoday.com/wp-content/uploads/2009/05/Button.png" alt="Bookmark button" width="90" height="39" /></a><p class="wp-caption-text">Bookmark button</p></div>
<p class="MsoNormal"><span style="font-family: Arial; font-size: x-small;"><span style="font-family: Arial; font-size: 10pt;"><br />
</span></span></p>
<p style="text-align: justify;">
<p style="text-align: justify;">This small script helps me a lot daily so I hope this would help you too!</p>
<p style="text-align: justify;"><span style="color: #008000;">Was this post helpful to you? How can I improve? &#8211; </span><span style="color: #008000;">Your comment is highly appreciated!</span></p>
<p style="text-align: justify;"><span style="color: #c0c0c0;">Cassian Menol Razeek</span></p>
<p class="MsoNormal" style="text-align: justify;">
<input id="gwProxy" type="hidden" /><!--Session data--><br />
<input id="jsProxy" onclick="jsCall();" type="hidden" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ilearnttoday.com/a-simple-javascript-to-get-english-language-definition-from-a-dictionary/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

