<?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>Varshyl Blog &#187; Fun with Javascript</title>
	<atom:link href="http://www.varshyltech.com/blog/category/fun-with-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.varshyltech.com/blog</link>
	<description>Web Simplified....</description>
	<lastBuildDate>Fri, 08 Jul 2011 09:28:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>EBay, PayPal sue Google over trade secrets</title>
		<link>http://www.varshyltech.com/blog/2011/05/ebay-paypal-sue-google-over-trade-secrets/</link>
		<comments>http://www.varshyltech.com/blog/2011/05/ebay-paypal-sue-google-over-trade-secrets/#comments</comments>
		<pubDate>Mon, 30 May 2011 09:49:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Fun with Javascript]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Get Flashy with Flash]]></category>
		<category><![CDATA[Graphic]]></category>
		<category><![CDATA[HR]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[IT in India]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Philanthropist Acts]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Presentations]]></category>
		<category><![CDATA[QA]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[The TEAM]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Web Application]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Ebay]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[PayPal]]></category>

		<guid isPermaLink="false">http://www.varshyltech.com/blog/?p=690</guid>
		<description><![CDATA[NEW YORK (Reuters) &#8211; EBay and its online payment unit, PayPal Inc, on Thursday sued Google Inc and two executives for stealing trade secrets related to mobile payment systems. The two executives, Osama Bedier and Stephanie Tilenius, were formerly with PayPal and led the launch on Thursday of Google&#8217;s own mobile payment system in partnership [...]]]></description>
			<content:encoded><![CDATA[<div>
<div>
<p>NEW YORK  (Reuters) &#8211; EBay and its online payment unit, PayPal Inc, on Thursday  sued Google Inc and two executives for stealing trade secrets related to  mobile payment systems.</p>
<p>The two executives, Osama Bedier and Stephanie Tilenius, were  formerly with PayPal and led the launch on Thursday of Google&#8217;s own  mobile payment system in partnership with MasterCard, Citigroup and  phone company Sprint.</p>
<p>The suit highlights the growing battle by a wide range of companies from traditional finance to Silicon Valley  trying to take a major stake in what has been described as a $1  trillion opportunity in mobile payments. The mobile phone is seen as the  digital personal wallet of the future.</p>
<p>The eBay suit said Bedier worked for nine years at PayPal, most  recently serving as vice president of platform, mobile and new ventures.  He joined Google on Jan. 24 this year.</p>
<p>Tilenius was at eBay from 2001 to October 2009 and served as a  consultant to the company until March 2010. The suit says Tilenius  joined Google in February 2010 as vice president of e-commerce.</p>
<p>Bedier is accused in the suit of having &#8220;misappropriated PayPal  trade secrets by disclosing them within Google and to major retailers.&#8221;</p>
<p>The suit accused Tilenius of recruiting Bedier, thereby breaking a  contractual agreement with eBay. It also claims Bedier attempted to  recruit former colleagues still at PayPal.</p>
<p>Ebay said PayPal and Google worked closely together for three  years until this year on developing a commercial deal where PayPal would  serve as a payment option for mobile application purchases on Google&#8217;s  Android phones.</p>
<p>It said Bedier was the senior PayPal executive leading and  finalizing negotiations with Google on Android during this period.</p>
<p>It also claimed Bedier transferred up-to-date versions of  documents outlining PayPal&#8217;s mobile payment strategies to his non-PayPal  computer just days before leaving PayPal for Google.</p>
<p>&#8220;By hiring Bedier, with his trade secret knowledge of PayPal&#8217;s  plans and understanding of Google&#8217;s weaknesses as viewed by the industry  leader (PayPal), Google bought the most comprehensive and sophisticated  critique of its own problems available,&#8221; the suit said.</p>
<p>Google spokesman Aaron Zamost said the company had not yet  received a copy of the complaint would not be able to comment until it  has had a chance to review it.</p>
<p>Google and PayPal have done battle in the recent past in online  payments via computers with the launch of Google Checkout in 2006, but  Checkout has had a minimal impact on PayPal&#8217;s market dominance.</p>
<p>The suit was filed at Superior Court of the State of California, county of Santa Clara, Case No: CV20l863.</p>
<p>(Reporting by Yinka Adegoke, additional reporting by Jennifer Saba; Editing by Gary Hill, Bernard Orr and Matt Driskill)</p>
</div>
</div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.varshyltech.com%2Fblog%2F2011%2F05%2Febay-paypal-sue-google-over-trade-secrets%2F&amp;title=EBay%2C%20PayPal%20sue%20Google%20over%20trade%20secrets" id="wpa2a_2"><img src="http://www.varshyltech.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.varshyltech.com/blog/2011/05/ebay-paypal-sue-google-over-trade-secrets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Acer Iconia Tab A500 is High Performance, Android Honeycomb Tablet</title>
		<link>http://www.varshyltech.com/blog/2011/05/acer-iconia-tab-a500-is-high-performance-android-honeycomb-tablet/</link>
		<comments>http://www.varshyltech.com/blog/2011/05/acer-iconia-tab-a500-is-high-performance-android-honeycomb-tablet/#comments</comments>
		<pubDate>Mon, 30 May 2011 09:45:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Fun with Javascript]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Get Flashy with Flash]]></category>
		<category><![CDATA[Graphic]]></category>
		<category><![CDATA[HR]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[IT in India]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Philanthropist Acts]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Presentations]]></category>
		<category><![CDATA[QA]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[The TEAM]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Web Application]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[acer]]></category>
		<category><![CDATA[andriod]]></category>
		<category><![CDATA[honeycomb]]></category>
		<category><![CDATA[tablet]]></category>

		<guid isPermaLink="false">http://www.varshyltech.com/blog/?p=688</guid>
		<description><![CDATA[Iconia Tab A500 is one of the few tablets that run on Android 3.0 Honeycomb. The tablet comes in both 3G and WiFi only version with some good features. Hardware and Looks The Acer Iconia Tab A500 has a 10.1 inch touchscreen that offers 1280&#215;800-pixel resolution. On the front you will also see a 2 [...]]]></description>
			<content:encoded><![CDATA[<div>
<div>
<p>Iconia Tab A500 is one of the few  tablets that run on Android 3.0 Honeycomb. The tablet comes in both 3G  and WiFi only version with some good features.</p>
</div>
</div>
<div><ins><ins id="aswift_0_anchor"></ins></ins></div>
<p><strong>Hardware and Looks</strong></p>
<p>The Acer Iconia Tab A500 has a 10.1 inch touchscreen that offers 1280&#215;800-pixel resolution.</p>
<p>On the front you will also see a 2 megapixel camera for video  calling. However, on the front you won’t find any physical buttons.</p>
<p>The normal home and back buttons of any Android device are replaced  by virtual buttons on screen. You can see the buttons in the lower  left-hand corner of the screen.</p>
<p>The advantage of this placement is that if you shuffle between  portrait and landscape orientations, the buttons are always on the lower  left-hand side of the display.</p>
<p>There&#8217;s another button at the lower left corner which gives access to all recently used apps.</p>
<p>On the back of the tablet you will see a 5 megapixel camera. The  built quality of A500 gives a cheap feeling because they have mainly  used plastic.</p>
<p>There is an orientation lock key and volume adjustment key on the top  edge of the tablet. The device also features a Micro SD card slot, a  SIM card slot, micro-USB port and micro-HDMI port.</p>
<p>On top of A500 is a headphone socket. The tablet is 13.3mm thick and  weighs 765g. That means its 164g heavier than the iPad 2. The A500 runs  on the Tegra 2 processor and has 1GB of RAM.</p>
<p><strong>Display and Camera</strong><br />
The 10.1-inch, 1280 x 800 TFT LCD of A500 is a visual delight. Another plus point of the display is its viewing angle.</p>
<p>You can position the tablet at any angle and still the readability  remains very good. Though the readability reduces significantly under  sun, it performs pretty well indoor conditions.</p>
<p>The 5 mega-pixel rear camera takes nice photos under a bright sky and  front camera is just ok. But the main problem is that cameras lose the  focus if you try to capture anything away from it and produces blurry  images. Despite the 720p HD video capturing capability, the captured  video quality is not good at all.</p>
<p><strong>Software and Performance</strong><br />
Acer’s Iconia Tab A500 runs on Android 3.0, a specially customized OS for the tablets and it certainly works like a breeze.</p>
<p>A500 features a great browser with Flash support. You can open  multiple tabs and multi-task. The Honeycomb on screen keyboard is a  delight. It supports multi-touch, so you can touch type.</p>
<p>You can also hold down the shift key or number key to get quick  access to certain characters. The Gmail client, music player, calendar,  photo browser, chat and maps application works brilliantly.</p>
<p>The apps in the Android Market for the Honeycomb devices are not so  many and Google should look into this matter as the common Android apps  can not utilize the screen space of the tablets. The tablet runs on pair  of 3260mAh batteries and offers almost 7 hours of battery life.</p>
<p><strong>Final Verdict</strong><br />
The overall performance of Iconia Tab A500 is good. But there are some  negative points too. It’s a very heavy tablet, battery life is little  poor, and compared to some tablets its price is bit high.</p>
<p>While ASUS Eee Pad Transformer is priced at $400 with almost the same facilities, A500 is priced at $450.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.varshyltech.com%2Fblog%2F2011%2F05%2Facer-iconia-tab-a500-is-high-performance-android-honeycomb-tablet%2F&amp;title=Acer%20Iconia%20Tab%20A500%20is%20High%20Performance%2C%20Android%20Honeycomb%20Tablet" id="wpa2a_4"><img src="http://www.varshyltech.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.varshyltech.com/blog/2011/05/acer-iconia-tab-a500-is-high-performance-android-honeycomb-tablet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wanna play Golf online? &#8211; Try, Boomerang!!</title>
		<link>http://www.varshyltech.com/blog/2010/10/wanna-play-golf-online-try-boomerang/</link>
		<comments>http://www.varshyltech.com/blog/2010/10/wanna-play-golf-online-try-boomerang/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 08:05:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Fun with Javascript]]></category>
		<category><![CDATA[Get Flashy with Flash]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.varshyltech.com/blog/?p=571</guid>
		<description><![CDATA[Developed by Varshyl Technologies Pvt. Ltd., Boomerang is the hardest putting challenge on planet. But what you are about to see takes pressure putting to a previously unimaginable level. Beat the monthly high score, or be a lucky loser in our monthly random draw, and you could WIN a Boomerang Putting Pack for you and your [...]]]></description>
			<content:encoded><![CDATA[<div>
<p style="text-align: center;"><a href="http://www.boomgolf.com/games.htm" target="_blank"><img class="size-medium wp-image-572 aligncenter" title="boom" src="http://www.varshyltech.com/blog/wp-content/uploads/2010/10/boom-300x187.jpg" alt="" width="300" height="187" /></a></p>
<p>Developed by <a href="http://www.varshyltech.com" target="_blank"><strong>Varshyl Technologies Pvt. Ltd.</strong></a>, Boomerang is the hardest putting challenge on planet. But what you are about to see takes pressure putting to a previously unimaginable level. <span style="font-size: small;">Beat the monthly high score, or be a lucky loser in our monthly random draw, and you could WIN a Boomerang Putting Pack for you and your playing partners. Better still, set the yearly high score </span><span style="font-size: small;">and win a customized Boomerang Putter.</span>So, come &amp; play. Good luck &amp; enjoy playing!</p>
</div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.varshyltech.com%2Fblog%2F2010%2F10%2Fwanna-play-golf-online-try-boomerang%2F&amp;title=Wanna%20play%20Golf%20online%3F%20%26%238211%3B%20Try%2C%20Boomerang%21%21" id="wpa2a_6"><img src="http://www.varshyltech.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.varshyltech.com/blog/2010/10/wanna-play-golf-online-try-boomerang/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Print multiple pages with single click..</title>
		<link>http://www.varshyltech.com/blog/2006/05/print-multiple-pages-with-single-click/</link>
		<comments>http://www.varshyltech.com/blog/2006/05/print-multiple-pages-with-single-click/#comments</comments>
		<pubDate>Sat, 13 May 2006 10:46:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fun with Javascript]]></category>

		<guid isPermaLink="false">http://varshyltech.com/blog/?p=15</guid>
		<description><![CDATA[Only by loading a framset with all four pages loaded &#8211; with the onLoad event handler in the frameset using the window print method to print each frame: [form] [input type="button" onClick="if (window.print) location.href='printframeset.htm'"] [/form] And then in printframeset.htm: [html] [head] [script language="JavaScript"][!-- function printAll() { for (var i=0;i[frames.length;i++) if (window.print) frames[i].print(); } //&#8211;][/script] [/head] [...]]]></description>
			<content:encoded><![CDATA[<p>Only by loading a framset with all four pages loaded &#8211; with the onLoad event handler in the frameset using the window print method to print each frame:<br />
[form]<br />
[input type="button" onClick="if (window.print) location.href='printframeset.htm'"]<br />
[/form]<br />
And then in printframeset.htm:<br />
[html]<br />
[head]<br />
[script language="JavaScript"][!--<br />
function printAll() {<br />
for (var i=0;i[frames.length;i++)<br />
if (window.print)<br />
frames[i].print();<br />
}<br />
//&#8211;][/script]<br />
[/head]<br />
[frameset onLoad="printAll()" rows="*,*,*"]<br />
[frame xsrc="apage.htm" mce_src="apage.htm" ]<br />
[frame xsrc="anotherpage.htm" mce_src="anotherpage.htm" ]<br />
[frame xsrc="yetanotherpage.htm" mce_src="yetanotherpage.htm" ]<br />
[/frameset]<br />
[/html]<br />
The previous script has been reported not to work on some platforms (it works perfectly on Netscape Navigator 4.7 on Linux). I assume on some platforms only one print dialogue box at a time can be opened. It might be possible to overcome this with a setTimout, but its going to be difficult to know when to start another one. A set delay of, say, 5 seconds might be too short if the user doesn&#8217;t hit the print button. Anyway try:<br />
[html]<br />
[head]<br />
[script language="JavaScript"][!--<br />
function printAll() {<br />
for (var i=0;i[frames.length;i++)<br />
if (window.print)<br />
setTimeout('frames[' + i + '].print()&#8217;,5000 * i);<br />
}<br />
//&#8211;][/script]<br />
[/head]<br />
[frameset onLoad="printAll()" rows="*,*,*"]<br />
[frame xsrc="apage.htm" mce_src="apage.htm" ]<br />
[frame xsrc="anotherpage.htm" mce_src="anotherpage.htm" ]<br />
[frame xsrc="yetanotherpage.htm" mce_src="yetanotherpage.htm" ]<br />
[/frameset]<br />
[/html]</p>
<p>Note; Repleace[ .] with <,> in code</p>
<p class="MsoNormal">
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.varshyltech.com%2Fblog%2F2006%2F05%2Fprint-multiple-pages-with-single-click%2F&amp;title=Print%20multiple%20pages%20with%20single%20click.." id="wpa2a_8"><img src="http://www.varshyltech.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.varshyltech.com/blog/2006/05/print-multiple-pages-with-single-click/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to call javascript function from PHP Code</title>
		<link>http://www.varshyltech.com/blog/2006/05/how-to-call-javascript-function-from-php-code/</link>
		<comments>http://www.varshyltech.com/blog/2006/05/how-to-call-javascript-function-from-php-code/#comments</comments>
		<pubDate>Thu, 11 May 2006 06:39:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fun with Javascript]]></category>

		<guid isPermaLink="false">http://varshyltech.com/blog/?p=14</guid>
		<description><![CDATA[Hi All, I am back with more tips and tricks of Javascript, to make it &#8220;fun with Javascript&#8221; . Contrary to common layman notion that javascript is not user friendly or not very reliable, it is very reliable and user friendly. Sample this even google and Yahoo use them in there application, this shows the [...]]]></description>
			<content:encoded><![CDATA[<p>Hi All,</p>
<p>I am back with more tips and tricks of Javascript, to make it &#8220;fun with Javascript&#8221; . Contrary to common layman notion that javascript is not user friendly or not very reliable, it is very reliable and user friendly. Sample this even <a href="http://www.google.co.in">google</a> and <a href="http://www.yahoo.com">Yahoo</a> use them in there application, this shows the reliabilty and flexibilty Javascript offer.</p>
<p>Today I shall discuss &#8220;how can we call Javascript function from PHP code without any click event happening on our page&#8221;</p>
<p>Here is sample code:</p>
<p>Write you Javascript function in HEAD</p>
<p>/HEAD/<br />
/SCRIPT LANGUAGE=&#8221;javascript&#8221;/<br />
function ProcA () {<br />
alert (&#8220;message&#8221;);<br />
}<br />
//SCRIPT/<br />
//Head/<br />
<script language="javascript"><!--
function FunctionA () {
alert ("Hey! You called me - FunctionA");
}
// --></script><br />
Calling this function from PHP code -for instance based on a decision.</p>
<p>if ($decision==&#8217;true&#8217;) {<br />
echo &#8220;/SCRIPT LANGUAGE=&#8221;javascript&#8221;/&#8221;;<br />
echo &#8220;FunctionA;n&#8221;;<br />
echo &#8220;//SCRIPT/<br />
}<br />
?></p>
<p>P.S- repleace / with < or > whereever applicable.</p>
<p>Code End here///////////////////</p>
<p>That simple noooooooo:)</p>
<p>If you have any question/queries. Contact us at <a title="website designing india, professional website designing india" href="http://www.varshyltech.com">www.varshyltech.com</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.varshyltech.com%2Fblog%2F2006%2F05%2Fhow-to-call-javascript-function-from-php-code%2F&amp;title=How%20to%20call%20javascript%20function%20from%20PHP%20Code" id="wpa2a_10"><img src="http://www.varshyltech.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.varshyltech.com/blog/2006/05/how-to-call-javascript-function-from-php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calling two function on one click&#8230;</title>
		<link>http://www.varshyltech.com/blog/2006/05/calling-two-function-on-one-click/</link>
		<comments>http://www.varshyltech.com/blog/2006/05/calling-two-function-on-one-click/#comments</comments>
		<pubDate>Wed, 10 May 2006 09:30:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fun with Javascript]]></category>

		<guid isPermaLink="false">http://varshyltech.com/blog/?p=13</guid>
		<description><![CDATA[Hi All, Today I will talk about how can we call two javascript function on one button click. I have seen many case while doing website designing that many times we get situation where we want to check/validate couple of things on one button click, contrary to general notion people have it is very much [...]]]></description>
			<content:encoded><![CDATA[<p>Hi All,</p>
<p>Today I will talk about how can we call two javascript function on one button click.</p>
<p>I have seen many case while doing <a title="website designing india" href="http://varshyltech.com/blog/wp-admin/">website designing</a>  that many times we get situation where we want to check/validate couple of things on one button click, contrary to general notion people have it is very much possible and very easy. It is same way we call single function , except a &#8216;;&#8217; between two function we want to call on button click.</p>
<p>Following sample code will give you an example: here two function are called on &#8216;Submit&#8217; button clik.<br />
input type=&#8221;button&#8221; value=&#8221;Submit&#8221; onClick=&#8221;function1(parameter1);function1(parameter1)&#8221;</p>
<p>////end here</p>
<p>this is it! simple and short:)</p>
<p>-Harish Sharma</p>
<p><a title="website designing" href="http://www.varshyltech.com">Varshyl Tech </a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.varshyltech.com%2Fblog%2F2006%2F05%2Fcalling-two-function-on-one-click%2F&amp;title=Calling%20two%20function%20on%20one%20click%26%238230%3B" id="wpa2a_12"><img src="http://www.varshyltech.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.varshyltech.com/blog/2006/05/calling-two-function-on-one-click/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript to validate input value is an Integer</title>
		<link>http://www.varshyltech.com/blog/2006/05/javascript-to-validate-input-value-is-an-integer/</link>
		<comments>http://www.varshyltech.com/blog/2006/05/javascript-to-validate-input-value-is-an-integer/#comments</comments>
		<pubDate>Wed, 03 May 2006 13:09:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fun with Javascript]]></category>

		<guid isPermaLink="false">http://varshyltech.com/blog/?p=12</guid>
		<description><![CDATA[JavaScript Validation: Script to validate input value is an Integer. We will use Regular Expression and exec() function to do the validation. Sample Code: function validate() { frm = document.form var freg = /(^\d\d*$)/; var Intval = frm.text.value; if(!fr.exec(Intval)) { alert("Only Integer Value allowed"); return false; } } function validate() { frm = document.form var [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><strong>JavaScript Validation: </strong>Script to validate input value is an Integer.</p>
<p class="MsoNormal">We will use Regular Expression and exec() function to do the validation.</p>
<p class="MsoNormal"><u>Sample Code:</u></p>
<p class="MsoNormal"><script language="”JavaScript">
function validate()
{
frm = document.form
var freg = /(^\d\d*$)/;
var Intval = frm.text.value;</p>
<p class="MsoNormal">if(!fr.exec(Intval))
{
<span></span>                    alert("Only Integer Value allowed");
<span></span>                    return false;
}
}
</script></p>
<p class="MsoNormal">
<p class="MsoNormal"><script language="”JavaScript">
function validate()
{
frm = document.form
var freg = /(^\d\d*$)/;
var Intval = frm.text.value;</p>
<p class="MsoNormal">if(!fr.exec(Intval))
{
<span></span>                    alert("Only Integer Value allowed");
<span></span>                    return false;
}
}
</script></p>
<p class="MsoNormal">
<p class="MsoNormal"><script language="”JavaScript">
function validate()
{
frm = document.form
var freg = /(^\d\d*$)/;
var Intval = frm.text.value;</p>
<p class="MsoNormal">if(!fr.exec(Intval))
{
<span></span>                    alert("Only Integer Value allowed");
<span></span>                    return false;
}
}
</script></p>
<p class="MsoNormal">//Code for Form which captures click event and calls ‘validate()’ function.</p>
<p class="MsoNormal">
<p class="MsoNormal">//function validate()</p>
<p class="MsoNormal">//    {</p>
<p class="MsoNormal">//frm = document.form</p>
<p class="MsoNormal">//var freg = /(^\d\d*$)/;</p>
<p class="MsoNormal">//            var Intval = frm.text.value;</p>
<p class="MsoNormal">//if(!fr.exec(Intval))</p>
<p class="MsoNormal">//                        {</p>
<p class="MsoNormal">//                                    alert(&#8220;Only Integer Value allowed&#8221;);</p>
<p class="MsoNormal">//                                    return false;</p>
<p class="MsoNormal">//                        }</p>
<p class="MsoNormal">//      }</p>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal"><script language="”JavaScript"></p>
<p class="MsoNormal">//function validate()</p>
<p class="MsoNormal">//    {</p>
<p class="MsoNormal">//frm = document.form</p>
<p class="MsoNormal">//var freg = /(^\d\d*$)/;</p>
<p class="MsoNormal">//            var Intval = frm.text.value;</p>
<p class="MsoNormal">//if(!fr.exec(Intval))</p>
<p class="MsoNormal">//                        {</p>
<p class="MsoNormal">//                                    alert("Only Integer Value allowed");</p>
<p class="MsoNormal">//                                    return false;</p>
<p class="MsoNormal">//                        }</p>
<p class="MsoNormal">//      }</p>
<p class="MsoNormal">//</script></p>
<p class="MsoNormal">
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p class="MsoNormal"><u>Code Explanation:</u><br />
Create a Regular Expression variable<br />
var freg = /(^\d\d*$)/;</p>
<p class="MsoNormal">Use exec function to see if it matches regular expression – if it return ‘False’ show the message and return false.<br />
if(!fr.exec(Intval))</p>
<p class="MsoNormal">That’s it. Hope this help you guys<span style="font-family: Wingdings"> <img src='http://www.varshyltech.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </span></p>
<p class="MsoNormal"><u>Advertisement:</u> <a href="http://www.varshyltech.com">Varshyl Tech</a> offers <a title="website designing" href="http://www.varshyltech.com/web%20development.html">website designing</a>, <a title="Logo Designing" href="http://www.varshyltech.com/web%20development.html">logo designing</a>, <a title="search engine optimization" href="http://www.varshyltech.com/seo.html">Search engine promotion,</a> <a title="custom software development" href="http://www.varshyltech.com/sw_design.html">custom software development</a> solutions.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.varshyltech.com%2Fblog%2F2006%2F05%2Fjavascript-to-validate-input-value-is-an-integer%2F&amp;title=JavaScript%20to%20validate%20input%20value%20is%20an%20Integer" id="wpa2a_14"><img src="http://www.varshyltech.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.varshyltech.com/blog/2006/05/javascript-to-validate-input-value-is-an-integer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

