<?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>Making Life Simple &#187; javascript</title>
	<atom:link href="http://www.lalitmehta.com/home/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lalitmehta.com/home</link>
	<description></description>
	<lastBuildDate>Thu, 19 Jan 2012 09:13:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Access parent window from modalDialog</title>
		<link>http://www.lalitmehta.com/home/2008/08/15/access-parent-window-from-modaldialog/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=access-parent-window-from-modaldialog</link>
		<comments>http://www.lalitmehta.com/home/2008/08/15/access-parent-window-from-modaldialog/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 20:49:08 +0000</pubDate>
		<dc:creator>lalit</dc:creator>
				<category><![CDATA[general web]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.lalitmehta.com/home/?p=55</guid>
		<description><![CDATA[When you call showModalDialog() you need to pass &#8220;self&#8221;, without the quotes, as the second argument. You can then access the parent(opener) with: var opener = window.dialogArguments; You can then access any function declared in parent window with: opener.myFunction();]]></description>
			<content:encoded><![CDATA[<p>When you call showModalDialog() you need to pass &#8220;self&#8221;, without the quotes, as the second argument.</p>
<p>You can then access the parent(opener) with:<br />
<code>var opener = window.dialogArguments;</code></p>
<p>You can then access any function declared in parent window with:<br />
<code>opener.myFunction();</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lalitmehta.com/home/2008/08/15/access-parent-window-from-modaldialog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rules for Speeding Up Your Web Site</title>
		<link>http://www.lalitmehta.com/home/2007/09/04/rules-for-speeding-up-your-web-site/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rules-for-speeding-up-your-web-site</link>
		<comments>http://www.lalitmehta.com/home/2007/09/04/rules-for-speeding-up-your-web-site/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 03:25:24 +0000</pubDate>
		<dc:creator>lalit</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[general web]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.lalitmehta.com/home/2007/09/04/rules-for-speeding-up-your-web-site/</guid>
		<description><![CDATA[Yahoo Developer Network posted a nice set of rules to speed up your website. The excerpt is as follows: Make Fewer HTTP Requests Use a Content Delivery Network Add an Expires Header Gzip Components Put Stylesheets at the Top Put Scripts at the Bottom Avoid CSS Expressions Make JavaScript and CSS External Reduce DNS Lookups [...]]]></description>
			<content:encoded><![CDATA[<p>Yahoo Developer Network posted a nice set of rules to speed up your website. The excerpt is as follows:</p>
<ol>
<li>  Make Fewer HTTP Requests</li>
<li>  Use a Content Delivery Network</li>
<li>  Add an Expires Header</li>
<li>  Gzip Components</li>
<li>  Put Stylesheets at the Top</li>
<li>  Put Scripts at the Bottom</li>
<li>  Avoid CSS Expressions</li>
<li>  Make JavaScript and CSS External</li>
<li>  Reduce DNS Lookups</li>
<li>  Minify JavaScript</li>
<li>  Avoid Redirects</li>
<li>  Remove Duplicate Scripts</li>
<li>  Configure ETags</li>
</ol>
<p>You can read the full article <a href="http://developer.yahoo.com/performance/rules.html" title="Thirteen Simple Rules for Speeding Up Your Web Site" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lalitmehta.com/home/2007/09/04/rules-for-speeding-up-your-web-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Validate e-mail address with regular expression</title>
		<link>http://www.lalitmehta.com/home/2007/08/02/validate-e-mail-address-with-regular-expression/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=validate-e-mail-address-with-regular-expression</link>
		<comments>http://www.lalitmehta.com/home/2007/08/02/validate-e-mail-address-with-regular-expression/#comments</comments>
		<pubDate>Fri, 03 Aug 2007 00:03:17 +0000</pubDate>
		<dc:creator>lalit</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.lalitmehta.com/home/?p=22</guid>
		<description><![CDATA[/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/ All regular expressions start and end with forward slashes to differentiate them from ordinary string expressions. Most regular expressions start matches at the first character ^ and end at the last $. Now we try to match the mailbox name which can include periods and dashes \w+ states one or more alphanumeric must be [...]]]></description>
			<content:encoded><![CDATA[<p>/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/</p>
<p>All regular expressions start and end with forward slashes to differentiate them from ordinary string expressions. Most regular expressions start matches at the first character ^ and end at the last $.</p>
<p>Now we try to match the mailbox name which can include periods and dashes \w+ states one or more alphanumeric must be at the start of the name. ([\.-]?\w+)* allows periods or dashes to be included in the mailbox name with the trailing \w+ ensuring that those characters can not finish the name. The @ is the mandatory separator.</p>
<p>The domain name can have several .xx or .xyz suffixes such as .com.uk. Once again \w+ ensures that domain starts with an alphanumeric and ([\.-]?\w+)* allows for the dashes and periods. Finally (\.\w{2,3})+ ensures that there is at least one suffix of between 2 and 3 characters preceded by a period.</p>
<p>Note: This is not a completely foolproof validation as it does not account for new domain names of 4 or more characters. Also not all two and three letter combinations are legitimate domains!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lalitmehta.com/home/2007/08/02/validate-e-mail-address-with-regular-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trim a string with all types of spaces</title>
		<link>http://www.lalitmehta.com/home/2007/08/02/trim-a-string-with-all-types-of-spaces/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=trim-a-string-with-all-types-of-spaces</link>
		<comments>http://www.lalitmehta.com/home/2007/08/02/trim-a-string-with-all-types-of-spaces/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 23:51:38 +0000</pubDate>
		<dc:creator>lalit</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.lalitmehta.com/home/?p=21</guid>
		<description><![CDATA[var a = &#8220;151 &#8220;; a = a.replace(/^\s+&#124;\s+$/, &#8220;&#8221;); //a is now &#8220;151&#8243; . Note: \s : Matches a single white space character, including space, tab, form feed, line feed. Equivalent to [ \f\n\r\t\v\u00A0\u2028\u2029]. \S: Matches a single character other than white space. Equivalent to [^ \f\n\r\t\v\u00A0\u2028\u2029].]]></description>
			<content:encoded><![CDATA[<p>var a = &#8220;151    &#8220;;<br />
a = a.replace(/^\s+|\s+$/, &#8220;&#8221;);</p>
<p>//a is now &#8220;151&#8243; .</p>
<p>Note:<br />
\s : Matches a single white space character, including space, tab, form feed, line feed.<br />
Equivalent to [ \f\n\r\t\v\u00A0\u2028\u2029].</p>
<p>\S: Matches a single character other than white space.<br />
Equivalent to [^ \f\n\r\t\v\u00A0\u2028\u2029].</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lalitmehta.com/home/2007/08/02/trim-a-string-with-all-types-of-spaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

