<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Manikandan's Weblog</title>
	<atom:link href="http://manikandanmv.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://manikandanmv.wordpress.com</link>
	<description>If, else, do, while, switch,.........Javascript, Ajax, JSON, MySQL</description>
	<lastBuildDate>Fri, 06 Nov 2009 13:03:56 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='manikandanmv.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/a11491b5fe3f4f59e1448b740fbdeb6d?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Manikandan's Weblog</title>
		<link>http://manikandanmv.wordpress.com</link>
	</image>
			<item>
		<title>Getting Iframe content in Javascript</title>
		<link>http://manikandanmv.wordpress.com/2009/11/06/getting-iframe-content-in-javascript/</link>
		<comments>http://manikandanmv.wordpress.com/2009/11/06/getting-iframe-content-in-javascript/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 12:58:45 +0000</pubDate>
		<dc:creator>manikandanmv</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[access iframe content]]></category>
		<category><![CDATA[content of iframe]]></category>
		<category><![CDATA[contentWindow]]></category>
		<category><![CDATA[get iframe content]]></category>
		<category><![CDATA[getting iframe content]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[iframe content]]></category>
		<category><![CDATA[iframe content javascript]]></category>
		<category><![CDATA[iframe javascript]]></category>

		<guid isPermaLink="false">http://manikandanmv.wordpress.com/?p=475</guid>
		<description><![CDATA[Iframe is an inline frames, allow you to load the separate html file into an existing document. You can also load the file dynamically with &#8220;src&#8221; attribute. Suppose there is a need to get the iframe content and process it using javascript. The following example helps you to do it and this has been a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=475&subd=manikandanmv&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Iframe is an inline frames, allow you to load the separate html file into an existing document. You can also load the file dynamically with &#8220;<em>src</em>&#8221; attribute. Suppose there is a need to get the iframe content and process it using javascript. The following example helps you to do it and this has been a cross browser solutions for Firefox &amp; IE browsers.<br />
Let&#8217;s load a simple html file inside the iframe, and get that file content with javascript method <em>getIframeContent</em>.</p>
<p>GetIframeDetails.html</p>
<pre class="brush: xml;">

&lt;html&gt;
 &lt;body&gt;
 &lt;iframe id=&quot;testFrame&quot; src=&quot;FrameContent.html&quot; &gt;
 &lt;/iframe&gt;
&lt;a href=&quot;#&quot; onclick=&quot;getIframeContent('testFrame');&quot;&gt;Get the content of Iframe&lt;/a&gt;
 &lt;/body&gt;
&lt;script&gt;
 function getIframeContent(frameId){
 var frameObj = document.getElementById(frameId);
 var frameContent = frameObj.contentWindow.document.body.innerHTML;
 alert(&quot;frame content : &quot;+frameContent);
 }
 &lt;/script&gt;
 &lt;/html&gt;
 </pre>
<p>FrameContent.html</p>
<pre class="brush: xml;">

&lt;html&gt;&lt;body&gt;
 &lt;div id=&quot;testFrameContent&quot; style=&quot;border:1px;&quot;&gt;
 This is simple HTML file which is loaded inside the iframe.
 &lt;/div&gt;
 &lt;/body&gt;
 &lt;/html&gt;
</pre>
<p>what <em>getIframeContent </em>method do?</p>
<pre class="brush: jscript;">

function getIframeContent(frameId){
 var frameObj = document.getElementById(frameId);
 var frameContent = frameObj.contentWindow.document.body.innerHTML;
 alert(&quot;frame content : &quot;+frameContent);
 }
</pre>
<ul>
<li><em>getElementById(frameId)</em> &#8211; get the object reference of iframe</li>
<li> <em>contentWindow</em> &#8211; is a property which returns the window object of the iframe</li>
<li> <em>contentWindow.document</em> &#8211; returns the document object of iframe window.</li>
<li> <em>contentWindow.document.body.innerHTML</em> &#8211; returns the HTML content of iframe body.</li>
</ul>
<p>You can also access any tag element&#8217;s inside the iframe. This can be done by processing with tag names/ids. Let&#8217;s imagine the use case: to retrieve the content of div element inside the iframe. Below statement will retrieve it.</p>
<blockquote><p>frameObj.contentWindow.document.getElementById(&#8220;testFrameContent&#8221;).innerHTML</p></blockquote>
<p>Blogs about dynamically change the iframe heights.</p>
<p><a title="Dynamically change iframe heights" href="http://manikandanmv.wordpress.com/2009/05/25/version-2-dynamically-change-iframe-heights/" target="_blank">http://manikandanmv.wordpress.com/2009/05/25/version-2-dynamically-change-iframe-heights/</a><br />
<a title="Dynamically change iframe heights" href="http://manikandanmv.wordpress.com/2009/04/25/dynamically-change-iframe-heights/" target="_blank">http://manikandanmv.wordpress.com/2009/04/25/dynamically-change-iframe-heights/</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manikandanmv.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manikandanmv.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manikandanmv.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manikandanmv.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manikandanmv.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manikandanmv.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manikandanmv.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manikandanmv.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manikandanmv.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manikandanmv.wordpress.com/475/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=475&subd=manikandanmv&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://manikandanmv.wordpress.com/2009/11/06/getting-iframe-content-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">manikandanmv</media:title>
		</media:content>
	</item>
		<item>
		<title>Shortcut keys for Windows Control Panel</title>
		<link>http://manikandanmv.wordpress.com/2009/10/30/shortcut-keys-for-windows-control-panel/</link>
		<comments>http://manikandanmv.wordpress.com/2009/10/30/shortcut-keys-for-windows-control-panel/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 06:43:54 +0000</pubDate>
		<dc:creator>manikandanmv</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[add or remove program shortcut key]]></category>
		<category><![CDATA[control panel applet shortcuts]]></category>
		<category><![CDATA[control panel keyboad shortcut]]></category>
		<category><![CDATA[control panel shortcut keys]]></category>
		<category><![CDATA[keyboard shortcut for control panel]]></category>
		<category><![CDATA[windows control panel keyboard shortcut]]></category>
		<category><![CDATA[windows control panel shortcuts]]></category>
		<category><![CDATA[windows shortcut keys]]></category>

		<guid isPermaLink="false">http://manikandanmv.wordpress.com/?p=459</guid>
		<description><![CDATA[The following shortcut keys are more useful to quickly access the control panel applets.
Go to Window Start Menu -&#62; Click Run and then type your required applet shortcut key. (Or) Just press windows button + r in the keyboard, a Run window will prompt, here you can enter the corresponding applet shortcut key.



Control Panel Applet [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=459&subd=manikandanmv&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The following shortcut keys are more useful to quickly access the control panel applets.</p>
<p>Go to <strong>Window Start Menu -&gt; Click Run</strong> and then type your required applet shortcut key. (Or) Just press <strong>windows button + r</strong> in the keyboard, a <em>Run window</em> will prompt, here you can enter the corresponding applet shortcut key.</p>
<table style="height:489px;" border="1" cellspacing="2" cellpadding="2" width="404">
<tbody>
<tr>
<td style="text-align:center;"><strong>Control Panel Applet Name<br />
</strong></td>
<td style="text-align:center;"><strong>Shortcut Key<br />
</strong></td>
</tr>
<tr>
<td>Accessibility Options</td>
<td>access.cpl</td>
</tr>
<tr>
<td>Add New Hardware Wizard</td>
<td>hdwwiz.cpl</td>
</tr>
<tr>
<td>Add/Remove Programs</td>
<td>appwiz.cpl</td>
</tr>
<tr>
<td>Date and Time Properties</td>
<td>timedate.cpl</td>
</tr>
<tr>
<td>Display Properties</td>
<td>desk.cpl</td>
</tr>
<tr>
<td>FindFast</td>
<td>findfast.cpl</td>
</tr>
<tr>
<td>Internet Properties</td>
<td>inetcpl.cpl</td>
</tr>
<tr>
<td>Joystick Properties</td>
<td>joy.cpl</td>
</tr>
<tr>
<td>Keyboard Properties</td>
<td>main.cpl keyboard</td>
</tr>
<tr>
<td>Mouse Properties</td>
<td>main.cpl</td>
</tr>
<tr>
<td>Network Properties</td>
<td>ncpl.cpl</td>
</tr>
<tr>
<td>Password Properties</td>
<td>password.cpl</td>
</tr>
<tr>
<td>Phone and Modem options</td>
<td>telephon.cpl</td>
</tr>
<tr>
<td>Power Management</td>
<td>powercfg.cpl</td>
</tr>
<tr>
<td>Regional settings</td>
<td>intl.cpl</td>
</tr>
<tr>
<td>Scanners and Cameras</td>
<td>sticpl.cpl</td>
</tr>
<tr>
<td>Sound Properties</td>
<td>mmsys.cpl sounds</td>
</tr>
<tr>
<td>Sounds and Audio Device Properties</td>
<td>mmsys.cpl</td>
</tr>
<tr>
<td>System Properties</td>
<td>sysdm.cpl</td>
</tr>
<tr>
<td>User settings</td>
<td>nusrmgr.cpl</td>
</tr>
<tr>
<td>TweakUI</td>
<td>tweakui.cpl</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manikandanmv.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manikandanmv.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manikandanmv.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manikandanmv.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manikandanmv.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manikandanmv.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manikandanmv.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manikandanmv.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manikandanmv.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manikandanmv.wordpress.com/459/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=459&subd=manikandanmv&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://manikandanmv.wordpress.com/2009/10/30/shortcut-keys-for-windows-control-panel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">manikandanmv</media:title>
		</media:content>
	</item>
		<item>
		<title>Enabling Tomcat Access Logs</title>
		<link>http://manikandanmv.wordpress.com/2009/10/24/enabling-tomcat-access-logs/</link>
		<comments>http://manikandanmv.wordpress.com/2009/10/24/enabling-tomcat-access-logs/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 07:34:52 +0000</pubDate>
		<dc:creator>manikandanmv</dc:creator>
				<category><![CDATA[tomcat]]></category>
		<category><![CDATA[request log]]></category>
		<category><![CDATA[tomcat access log]]></category>
		<category><![CDATA[tomcat valve]]></category>
		<category><![CDATA[track client informations]]></category>
		<category><![CDATA[track request hits]]></category>
		<category><![CDATA[valve]]></category>

		<guid isPermaLink="false">http://manikandanmv.wordpress.com/?p=455</guid>
		<description><![CDATA[Add the following code snippet in the file $CATALINA_HOME/conf/server.xml. This will creates log files to track client access informations such as user session activity, user authentication information, page hit counts.

&#60;Valve className=&#8221;org.apache.catalina.valves.AccessLogValve&#8221; directory=&#8221;logs&#8221;
prefix=&#8221;localhost_access_log.&#8221; suffix=&#8221;.txt&#8221; pattern=&#8221;common&#8221; resolveHosts=&#8221;false&#8221;/&#62;
The code snippet states that the log file &#8216;localhost_acess_log.txt&#8217; will be placed under $CATALINA_HOME/logs directory.
Restart the tomcat, its working.
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=455&subd=manikandanmv&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Add the following code snippet in the file <em>$CATALINA_HOME/conf/server.xml. </em>This will creates log files to track client access informations such as user session activity, user authentication information, page hit counts.</p>
<blockquote><p>
&lt;Valve className=&#8221;org.apache.catalina.valves.AccessLogValve&#8221; directory=&#8221;logs&#8221;<br />
prefix=&#8221;localhost_access_log.&#8221; suffix=&#8221;.txt&#8221; pattern=&#8221;common&#8221; resolveHosts=&#8221;false&#8221;/&gt;</p></blockquote>
<p>The code snippet states that the log file <em>&#8216;localhost_acess_log.txt&#8217;</em> will be placed under <em>$CATALINA_HOME/logs</em> directory.</p>
<p>Restart the tomcat, its working.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manikandanmv.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manikandanmv.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manikandanmv.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manikandanmv.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manikandanmv.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manikandanmv.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manikandanmv.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manikandanmv.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manikandanmv.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manikandanmv.wordpress.com/455/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=455&subd=manikandanmv&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://manikandanmv.wordpress.com/2009/10/24/enabling-tomcat-access-logs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">manikandanmv</media:title>
		</media:content>
	</item>
		<item>
		<title>Debugging Java Applications with NetBeans</title>
		<link>http://manikandanmv.wordpress.com/2009/09/24/debugging-java-applications-with-netbeans/</link>
		<comments>http://manikandanmv.wordpress.com/2009/09/24/debugging-java-applications-with-netbeans/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 06:08:39 +0000</pubDate>
		<dc:creator>manikandanmv</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[attach debugger]]></category>
		<category><![CDATA[breakpoints]]></category>
		<category><![CDATA[debug java app]]></category>
		<category><![CDATA[debugger commands]]></category>
		<category><![CDATA[debugging java application]]></category>
		<category><![CDATA[debugging java apps with netbeans]]></category>
		<category><![CDATA[fixing code at debugging session]]></category>
		<category><![CDATA[java app debugger]]></category>
		<category><![CDATA[java debugger]]></category>
		<category><![CDATA[java debugger netbeans]]></category>
		<category><![CDATA[java debugging parameters]]></category>
		<category><![CDATA[JDWP]]></category>
		<category><![CDATA[JPDA]]></category>
		<category><![CDATA[netbeans debugger]]></category>
		<category><![CDATA[remote debugging]]></category>
		<category><![CDATA[step through java code]]></category>

		<guid isPermaLink="false">http://manikandanmv.wordpress.com/?p=439</guid>
		<description><![CDATA[Netbeans provides an easy environment for debugging or troubleshooting your Java applications. With netbeans debugger, you can step through the code line by line while viewing status of variables, threads and other informations.  No need to add println() statements for finding problems that occur in your apps. Instead use breakpointss
Following things you can perform with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=439&subd=manikandanmv&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Netbeans provides an easy environment for debugging or troubleshooting your Java applications. With netbeans debugger, you can step through the code line by line while viewing status of variables, threads and other informations.  No need to add println() statements for finding problems that occur in your apps. Instead use breakpointss<br />
Following things you can perform with Netbeans debugger</p>
<ol>
<li>step through application code line by line</li>
<li>step through JDK source code.</li>
<li>using break points, execute specific parts of code at a time</li>
<li>track the value of a variable/expression.</li>
<li>fix code on the fly and apply those code changes and continue the debugging session.</li>
<li>options to suspend threads/execution at an exception.</li>
<li>step back to the beginning of a previously called method. (pop a call in the current call stack).</li>
</ol>
<p><strong>Java Platform Debugger Architecture</strong></p>
<p>It has 3 layers, which provides the infrastructure for debugging applications.</p>
<p><img class="alignnone size-full wp-image-442" title="java platform debugger architecture" src="http://manikandanmv.files.wordpress.com/2009/09/jpda.jpg?w=367&#038;h=263" alt="java platform debugger architecture" width="367" height="263" /></p>
<p><strong>Layer-1:</strong> high-level interface for debugging</p>
<p><strong>Layer-2: </strong>format of information transfer</p>
<p><strong>Layer-3: </strong>low-level native interface, applies code changes at jvm level.</p>
<p><strong> Debugger Parameters</strong></p>
<p>Netbeans debugger allows you to enable remote debugging to already running Java application. For this, you must run your application in debug mode, which requires below parameters.</p>
<p>-Xdebug -Xrunjdwp:transport=dt_socket, server=y, address=<em>&lt;&lt;port number&gt;&gt;</em>, suspend=n</p>
<p><em> Example:</em></p>
<p>java -Xdebug -Xrunjdwp:transport=dt_socket, server=y, address=65535, suspend=n</p>
<table style="height:278px;" border="1" cellspacing="2" cellpadding="2" width="576">
<tbody>
<tr>
<td align="center" valign="top"><strong>Parameter<br />
</strong></td>
<td align="center" valign="top"><strong>Description<br />
</strong></td>
</tr>
<tr>
<td valign="top">-Xdebug</td>
<td valign="top">enables the application to be debugged.</td>
</tr>
<tr>
<td valign="top">-Xrunjdwp</td>
<td valign="top">loads the reference implementation of the JDWP(Java Debug Wire Protocol), which enables remote debugging</td>
</tr>
<tr>
<td valign="top">transport</td>
<td valign="top">name of the transport to be used when debugging the application.dt_socket for a socket connection.</td>
</tr>
<tr>
<td valign="top">server</td>
<td valign="top">y &#8211; application listens for a connection at the specified address.<br />
n &#8211; application attempts to attach to a debugger at the specified address.</td>
</tr>
<tr>
<td valign="top">address</td>
<td valign="top">specifies a port number used for communication b/w the debugger and application.</td>
</tr>
<tr>
<td valign="top">suspend</td>
<td valign="top">n &#8211; application starts immediately.<br />
y &#8211; application waits until a debugger has attached to it before executing.</td>
</tr>
</tbody>
</table>
<p>Java Debug Wire Protocol(JDWP) &#8211; which defines the format of information and requests transferred  between debugged application and debugger.</p>
<p><strong>Attaching the Debugger to a running application.</strong></p>
<p><strong></strong>From the main menu, select Debug -&gt; Attach Debugger</p>
<p><img class="alignnone size-full wp-image-440" title="debug-mainmenu" src="http://manikandanmv.files.wordpress.com/2009/09/debug-mainmenu.jpg?w=450&#038;h=133" alt="debug-mainmenu" width="450" height="133" /></p>
<p>Below window will pop-up.</p>
<p><img class="alignnone size-full wp-image-441" title="attach_debugger" src="http://manikandanmv.files.wordpress.com/2009/09/attach_debugger.jpg?w=450&#038;h=220" alt="attach_debugger" width="450" height="220" /></p>
<p><strong>Connector </strong>- select the appropriate connection type.<br />
<strong>Transport</strong> &#8211; specifies JDPA transport protocol &#8211; automatically filled based on connector.<br />
<strong>Host</strong> &#8211; Machine where the debugging application is running.<br />
<strong>Port</strong> &#8211; Port number that the application listens on.<br />
<strong>Timeout</strong> &#8211; durations that the debugger waits for a connection to be established.</p>
<p><strong>Debugger commands.</strong></p>
<p>Commands for debugging a java app.</p>
<p><strong> F7 &#8211; step into</strong> &#8211; executes each source line , if it has method call, and source code is available, pointer moves to that method and executes it. otherwise pointer moves to the next line in the file.<br />
<strong> F8 &#8211; step over</strong> &#8211; executes each source line without stepping through the individual instructions/commands.<br />
<strong> F4 &#8211; run to cursor</strong> &#8211; execute the program from the current line.<br />
<strong>F5 </strong>- <strong>continue</strong> &#8211; resumes debugging until it reaches a next breakpoint or exception or until the program terminates normally.</p>
<p><strong>Setting Breakpoints<br />
</strong><br />
Breakpoint is a marker that you can set to specify where execution should pause when you are running your application in the IDE&#8217;s debugger.<br />
with breakpoints you can,</p>
<ul>
<li>monitor the values of variables</li>
<li>take control of program execution by stepping through code line by line.</li>
<li>detect when an object is created.</li>
<li>detect when the value of a variable is changed.</li>
</ul>
<p><strong>Fixing code during a debugging session.<br />
</strong><br />
Apply Code Changes &#8211; Its an useful feature. This can save lot of time, otherwise waiting for source to be rebuilt and restarting the server/debugging session.<br />
It is useful for</p>
<ul>
<li>Fine-tune the code.(fixing minor issues)</li>
<li>change the logic within a method.</li>
</ul>
<p>This does not work for the following changes.</p>
<ul>
<li>add/remove methods or fields</li>
<li>change the access modifiers of a class, method , field</li>
<li>refactor the class hierarchy.</li>
</ul>
<p>In simplest form, It should not accept the skeleton changes.</p>
<p><span style="font-weight:bold;">Note : </span>Once restarted the server, applied code changes are not taking effect for next time because &#8220;<em>Apply code changes</em>&#8221; works on particular jvm instance only</p>
<p>For fixing code on the fly while debugging session, you must attach your application source code and jar files properly.</p>
<p><strong>Advantages of using debugger</strong></p>
<ul>
<li>Easily and quickly find and resolve the problem.</li>
<li>Understand the flow of your application code is easier</li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manikandanmv.wordpress.com/439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manikandanmv.wordpress.com/439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manikandanmv.wordpress.com/439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manikandanmv.wordpress.com/439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manikandanmv.wordpress.com/439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manikandanmv.wordpress.com/439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manikandanmv.wordpress.com/439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manikandanmv.wordpress.com/439/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manikandanmv.wordpress.com/439/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manikandanmv.wordpress.com/439/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=439&subd=manikandanmv&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://manikandanmv.wordpress.com/2009/09/24/debugging-java-applications-with-netbeans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">manikandanmv</media:title>
		</media:content>

		<media:content url="http://manikandanmv.files.wordpress.com/2009/09/jpda.jpg" medium="image">
			<media:title type="html">java platform debugger architecture</media:title>
		</media:content>

		<media:content url="http://manikandanmv.files.wordpress.com/2009/09/debug-mainmenu.jpg" medium="image">
			<media:title type="html">debug-mainmenu</media:title>
		</media:content>

		<media:content url="http://manikandanmv.files.wordpress.com/2009/09/attach_debugger.jpg" medium="image">
			<media:title type="html">attach_debugger</media:title>
		</media:content>
	</item>
		<item>
		<title>Inspirational Book 2 : Who will cry When you die?</title>
		<link>http://manikandanmv.wordpress.com/2009/09/10/inspirational-book-2-who-will-cry-when-you-die/</link>
		<comments>http://manikandanmv.wordpress.com/2009/09/10/inspirational-book-2-who-will-cry-when-you-die/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 10:38:50 +0000</pubDate>
		<dc:creator>manikandanmv</dc:creator>
				<category><![CDATA[Inspirational Books]]></category>
		<category><![CDATA[find great friends]]></category>
		<category><![CDATA[get good at asking]]></category>
		<category><![CDATA[get up early]]></category>
		<category><![CDATA[keep a journal]]></category>
		<category><![CDATA[keep you cool]]></category>
		<category><![CDATA[live a fulfilling life]]></category>
		<category><![CDATA[manage your time]]></category>
		<category><![CDATA[robin sharma book]]></category>
		<category><![CDATA[take more risks]]></category>
		<category><![CDATA[talk to yourself]]></category>
		<category><![CDATA[who will cry when you die]]></category>

		<guid isPermaLink="false">http://manikandanmv.wordpress.com/?p=422</guid>
		<description><![CDATA[Had a chance to read this book, from the popular author Robin Sharma. Overall it was a nice book and I learned lots of points from the book.
Usually every person have liked some points from each book they have read. Likewise am going to share points which inspired me in this book. The book has [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=422&subd=manikandanmv&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Had a chance to read this book, from the popular author Robin Sharma. Overall it was a nice book and I learned lots of points from the book.</p>
<p>Usually every person have liked some points from each book they have read. Likewise am going to share points which inspired me in this book. The book has 101 topics, among these I personally experienced that below points are good to keep/follow in your life.</p>
<p><strong>Get Up Early</strong><br />
It would become a great day if you wake up early everyday. Sometimes back, I was woke up at 5 o clock for a month. During this period, I personally felt my mind was more clear, more active, and the power of wisdom has increased. I have been watching people who are waking up early, they are more active, have good health and have clear thoughts when comparing with people waking up late.</p>
<p><strong>Master Your Time</strong><br />
It is a nice quote and moreover all people should practice it without saying don&#8217;t have time. <em>Commit yourself to manage your time more effectively</em>.<br />
I can say if you follow the principle &#8220;<strong>Get Up Early</strong>&#8220;, surely you will manage your time perfectly and also you will get more time to think about yourself.</p>
<p><strong>List your problems</strong><br />
<em>A problem well stated is a problem half solved </em>- Charles Kettering.<br />
It was a nice quote, really I liked it.<br />
Most of the problems disappear when you list down the problems or you can share to your best friends, after that you might be feel peaceful.</p>
<p><strong>Keep Your Cool</strong></p>
<p><em>Anyone can become angry &#8211; that&#8217;s easy. But to be angry with the right person, to the right degree, at the right time, for the right purpose, and in the right way &#8211; that&#8217;s not easy</em> ~ Aristotle.</p>
<p>One of my favorite one.</p>
<p>In my surroundings, I have been seeing people who are getting tensed quickly. They lose their temper frequently and it becomes a habit. Oops, my friend lend this book(thanks to her) sometimes she behaves like a short tempered person. That&#8217;s why I keep saying don&#8217;t get anger for simple things unnecessarily.<br />
Robin strategy to control the temper, really a good one.<br />
Three Gate Test.</p>
<ol>
<li> Are these words truthful?</li>
<li> Are these words necessary?</li>
<li> Are these words kind?</li>
</ol>
<p>If you pass these 3 tests, then you can deliver your words boldly.</p>
<p><strong>Plant a Tree(Live a Fulfilling Life)<br />
</strong>Three things to do, to live a fulfilling life</p>
<ol>
<li>have a son</li>
<li> write a book</li>
<li> plant a tree</li>
</ol>
<p>these 3 legacies will live long after you die.<br />
By the way, I would add one more thing in the list, <em>having a daughter</em>. Because I love father-daughter relationship, I am not yet into that level yet I feel it has to be nice one. Eventually Robin also had mentioned the same.</p>
<p>One more thing I have to say here, I have a plan to write a book titled &#8220;<strong>The Power of Observation</strong>&#8221; but don&#8217;t know when it will be published, probably you can expect it in few years.</p>
<p><strong>Find 3 Great Friends<br />
</strong>I won&#8217;t limit/resist with number 3, because I have the habit of making new friends irrespective of gender. This should help to find more happiness and joy in your life.</p>
<p><strong>Get Good at Asking<br />
</strong><em>He who asks may be a fool for five minutes. He who doesn&#8217;t is a fool for a lifetime. </em>~ chinese proverb<br />
This proverb perfectly suits my character. Till now I never hesitated to ask my needs/wants whether I get it or not. The person who asks at least has a chance of getting what he wants, the person who does not ask has no chance.</p>
<p><strong>Keep a Journal<br />
</strong>You can record your daily activities. It helps to promotes your growth and wisdom by analyzing and evaluating them.</p>
<p><strong>Talk to Yourself<br />
</strong>Keep saying your mantras(your goal, want to be like this) to yourself daily. These mantras will pave a clear path for your target, also which would help to avoid negative thoughts/wrong redirection in life. This works well for me.</p>
<p><strong>Take More Risks<br />
- </strong><em>the more risks you take, the more rewards you will receive.</em><br />
Don&#8217;t resist yourself with the same path, do things which are uncomfortable/you fear. Human minds are refusing the change, always preferred to stay in comfort zone. Be bold to come out and take more risks in your life.</p>
<p><strong>Don&#8217;t pick up the phone every time it rings<br />
</strong>I must follow this. Oh god, I want to keep this statement in mind : <em>telephone is there for your convenience, not for the convenience of your callers</em>.</p>
<p>After reading this book, I became a big fan of Robin Sharma. Going to ask another book from my friend. Hope she will give one.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manikandanmv.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manikandanmv.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manikandanmv.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manikandanmv.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manikandanmv.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manikandanmv.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manikandanmv.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manikandanmv.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manikandanmv.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manikandanmv.wordpress.com/422/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=422&subd=manikandanmv&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://manikandanmv.wordpress.com/2009/09/10/inspirational-book-2-who-will-cry-when-you-die/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">manikandanmv</media:title>
		</media:content>
	</item>
		<item>
		<title>Version 2 : Dynamically change IFrame Heights</title>
		<link>http://manikandanmv.wordpress.com/2009/05/25/version-2-dynamically-change-iframe-heights/</link>
		<comments>http://manikandanmv.wordpress.com/2009/05/25/version-2-dynamically-change-iframe-heights/#comments</comments>
		<pubDate>Mon, 25 May 2009 09:08:12 +0000</pubDate>
		<dc:creator>manikandanmv</dc:creator>
				<category><![CDATA[DOM]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[contentDocument]]></category>
		<category><![CDATA[contentWindow]]></category>
		<category><![CDATA[dynamically change iframe height]]></category>
		<category><![CDATA[iframe contentDocument]]></category>
		<category><![CDATA[iframe height]]></category>
		<category><![CDATA[iframe height change]]></category>
		<category><![CDATA[iframe height IE]]></category>
		<category><![CDATA[iframe offsetHeight]]></category>
		<category><![CDATA[iframe scrollHeight]]></category>
		<category><![CDATA[offsetHeight]]></category>
		<category><![CDATA[resize iframe]]></category>
		<category><![CDATA[resize iframe height]]></category>
		<category><![CDATA[resize iframe IE]]></category>

		<guid isPermaLink="false">http://manikandanmv.wordpress.com/?p=407</guid>
		<description><![CDATA[This is a continuation of my previous blog. Dynamically change IFrame Heights &#8211; here loaded a static HTML content on iframes.
In version 2, we have loaded dynamic files inside the iframes. At the same time we have to dynamically change the height of iframes based on their loaded file content.

Sample Code
Below code works well in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=407&subd=manikandanmv&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is a continuation of my previous blog. <a href="http://manikandanmv.wordpress.com/2009/04/25/dynamically-change-iframe-heights/">Dynamically change IFrame Heights</a> &#8211; here loaded a static HTML content on iframes.<br />
In version 2, we have loaded dynamic files inside the iframes. At the same time we have to dynamically change the height of iframes based on their loaded file content.<br />
<strong><br />
Sample Code</strong></p>
<p>Below code works well in both browsers Firefox &amp; Internet Explorer.</p>
<pre class="brush: xml;">
&lt;html&gt;
&lt;body&gt;
&lt;script&gt;
function setIframeHeight()
{
    var elt = document.getElementById('testIframe');
    if(elt.contentWindow){
        document.getElementById('testIframe').height = elt.contentWindow.document.body.scrollHeight + 30;
    }
}
&lt;/script&gt;

&lt;iframe src=&quot;http://manikandanmv.wordpress.com/ajax.html&quot; name=&quot;testIframe&quot; id=&quot;testIframe&quot; onload=&quot;setIframeHeight();&quot; /&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><em>contentWindow</em></p>
<ul>
<li>returns an window object of the iframe.</li>
</ul>
<p><em>scrollHeight</em></p>
<ul>
<li>is a property which returns the scrolling height of the object.</li>
<li>the value specifies only the visible height of the object.</li>
</ul>
<p><em>elt.contentWindow</em> &#8211; returns the object of <strong>IFrame window</strong>.<br />
<em> elt.contentWindow.document</em> &#8211; returns the object of <strong>HTML document</strong>.<br />
<em> elt.contentWindow.document.body</em> &#8211; returns the object of <strong>HTML body element</strong>.</p>
<p>You may also use <em>contentDocument</em> property for getting height of iframe. This will work only in Firefox. Since IE6.0 or 7.0 does not support this property. This has been supported from IE version 8.0</p>
<p>Sample code for doing the same in Firefox with <em>contentDocument</em></p>
<blockquote><p>if(elt.contentDocument){<br />
elt.height = elt.contentDocument.body.offsetHeight+40;<br />
}</p></blockquote>
<p><em>contentDocument</em></p>
<ul>
<li> returns an object of iframe document.</li>
</ul>
<p><em>offsetHeight</em></p>
<ul>
<li> is a property used to retrieves the height of the element/object in pixels.</li>
<li>this value includes the height of elements borders + padding.</li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manikandanmv.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manikandanmv.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manikandanmv.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manikandanmv.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manikandanmv.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manikandanmv.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manikandanmv.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manikandanmv.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manikandanmv.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manikandanmv.wordpress.com/407/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=407&subd=manikandanmv&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://manikandanmv.wordpress.com/2009/05/25/version-2-dynamically-change-iframe-heights/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">manikandanmv</media:title>
		</media:content>
	</item>
		<item>
		<title>How to open Ajax Page in Browser New Tab</title>
		<link>http://manikandanmv.wordpress.com/2009/05/18/how-to-open-ajax-page-in-browser-new-tab/</link>
		<comments>http://manikandanmv.wordpress.com/2009/05/18/how-to-open-ajax-page-in-browser-new-tab/#comments</comments>
		<pubDate>Mon, 18 May 2009 06:33:40 +0000</pubDate>
		<dc:creator>manikandanmv</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[ajax page in browser new tab]]></category>
		<category><![CDATA[ajax page open in new tab]]></category>
		<category><![CDATA[ajax web page]]></category>
		<category><![CDATA[open ajax page in tab]]></category>
		<category><![CDATA[open link in new tab]]></category>
		<category><![CDATA[web page open in new tab]]></category>

		<guid isPermaLink="false">http://manikandanmv.wordpress.com/?p=396</guid>
		<description><![CDATA[ It&#8217;s not easy task to support both &#8220;Load a web page using Ajax&#8221; and &#8220;Allow to open the same page in browser new tab&#8221;. Because we have to manually handle the second option. Let&#8217;s see how to solve this task.
Before proceeding, first you have to know why ajax web pages are not able to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=396&subd=manikandanmv&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="color:#000000;"> It&#8217;s not easy task to support both <strong>&#8220;Load a web page using Ajax&#8221;</strong> and<strong> &#8220;Allow to open the same page in browser new tab&#8221;</strong>. Because we have to manually handle the second option. Let&#8217;s see how to solve this task.<br />
Before proceeding, first you have to know why ajax web pages are not able to support the second option.<br />
<strong>Reason : </strong>when you click a web page link, it will just invoke a javascript method specified in <em>onclick </em>event which loads the page through ajax requests. So here <em>&#8220;href&#8221; </em>attribute of <em>anchor tag</em> is either empty or <a class="moz-txt-link-rfc2396E" href="void(0);">&#8220;javascript:void(0);&#8221;</a>. Due to this we are not able to open the page in new tab.</span></p>
<p>Sample code for achieving both the actions</p>
<ul style="color:#000000;">
<li>ajax page load</li>
<li>the same page should be able to open in Browser New Tab by using<em> &#8220;Open Link in New Tab&#8221;</em> option.</li>
</ul>
<p><span style="color:#000000;">Two operations handled in the web page links(anchor tags), </span> <span style="color:#000000;"><br />
</span></p>
<ul style="color:#000000;">
<li>invoke the method <span style="font-weight:bold;">showPage </span>when u click the link. which means simply onclick event gets fired.</li>
<li>if u open the same link in new tab, the below sequence of actions will execute.
<ul>
<li># part of href(say, #/<span style="color:#000000;">blogs</span>/JSON/json-basics.html) has appended to the browser url</li>
<li>showtab method has invoked beco&#8217;z the main page gets loaded. rest will take care of the method <span style="font-weight:bold;">showtab</span></li>
</ul>
</li>
</ul>
<p><span style="color:#000000;">main page should be like this.</span></p>
<pre class="brush: xml;">
&lt;html&gt;
&lt;body&gt;
&lt;a href=&quot;#/blogs/JSON/json-basics.html&quot; onclick=&quot;showPage('/&lt;span style=&quot;color:#000000;&quot;&gt;blogs&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;/JSON/json-basics.html');&quot;&gt;JSON Basics&lt;/a&gt;
&lt;a href=&quot;#/&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;blogs&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;/ajax/ajax-basics.html&quot; onclick=&quot;showPage('/&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;blogs&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;/ajax/ajax-basics.html');&quot;&gt;Ajax Basics&lt;/a&gt;
&lt;a href=&quot;#/&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;blogs&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;/html/html-basics.html&quot; onclick=&quot;showPage('/&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;blogs&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;/html/html-basics.html');&quot;&gt;HTML Basics&lt;/a&gt;&lt;/span&gt;

&lt;span style=&quot;color:#000000;&quot;&gt;
&lt;div id=&quot;showhelp&quot;&gt;&lt;/div&gt;
&lt;!-- This div is the Common Dynamic Area, this area gets changed based on clicking the above link --&gt;&lt;/span&gt;

&lt;script&gt;
showtab();
&lt;!-- this method gets executed everytime when a page loads.
what this method does,
just get the full url from the browser address bar.
parse the url and get the exact &quot;new page url&quot; which is available after the symbol &quot;#&quot;
and send the &quot;new page url&quot; via ajax request.
--&gt;

function showtab()
{
var url = document.location.href;
var index = url.indexOf(&quot;#&quot;);
var taburl = &quot;&quot;;
if(index&gt;0){
var taburl = url.substring(index+1);
}
sendAjaxRequest(taburl, &quot;showhelp&quot;);
}

function showPage(url)
{
sendAjaxRequest(url,&quot;showhelp&quot;);
}

function sendAjaxRequest(url, divid)
{
var req = &lt;a href=&quot;http://manikandanmv.wordpress.com/2008/09/29/ajax-example&quot;&gt;getXMLHttpRequest&lt;/a&gt;();
req.onreadystatechange = function(){ processResponse(req, divid) };
req.open('GET', url, true);
req.send(null);
}

function processResponse(req, divid)
{
if (req.readyState == 4) {
if (req.status == 200) {
document.getElementById(divid).innerHTML=req.responseText;
}
}
}

&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Are you new to Ajax..? Read the below posts for learning basics.</p>
<p>Ajax Basics – <a href="http://manikandanmv.wordpress.com/2008/09/23/ajax-asynchronous-javascript-and-xml/">http://manikandanmv.wordpress.com/2008/09/23/ajax-asynchronous-javascript-and-xml/</a><br />
Ajax Example – <a href="http://manikandanmv.wordpress.com/2008/09/29/ajax-example/">http://manikandanmv.wordpress.com/2008/09/29/ajax-example/</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manikandanmv.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manikandanmv.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manikandanmv.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manikandanmv.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manikandanmv.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manikandanmv.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manikandanmv.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manikandanmv.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manikandanmv.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manikandanmv.wordpress.com/396/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=396&subd=manikandanmv&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://manikandanmv.wordpress.com/2009/05/18/how-to-open-ajax-page-in-browser-new-tab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">manikandanmv</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamically change IFrame Heights</title>
		<link>http://manikandanmv.wordpress.com/2009/04/25/dynamically-change-iframe-heights/</link>
		<comments>http://manikandanmv.wordpress.com/2009/04/25/dynamically-change-iframe-heights/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 10:52:04 +0000</pubDate>
		<dc:creator>manikandanmv</dc:creator>
				<category><![CDATA[DOM]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[change iframe height]]></category>
		<category><![CDATA[dynamically set iframe attributes]]></category>
		<category><![CDATA[dynamically set iframe heights]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[iframe height]]></category>
		<category><![CDATA[iframe height dynamically]]></category>
		<category><![CDATA[iframe onload event]]></category>
		<category><![CDATA[offsetHeight]]></category>

		<guid isPermaLink="false">http://manikandanmv.wordpress.com/?p=386</guid>
		<description><![CDATA[With script you can able to change/set the iframe attribute values dynamically. Sometimes we don&#8217;t know the actual height of the web page because page gets loaded dynamically and the height may varies. So here i have to calculate the page content height dynamically and set the same value in iframe height property. Mainly this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=386&subd=manikandanmv&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>With script you can able to change/set the <strong>iframe </strong>attribute values dynamically. Sometimes we don&#8217;t know the actual height of the web page because page gets loaded dynamically and the height may varies. So here i have to calculate the page content height dynamically and set the same value in <strong>iframe </strong>height property. Mainly this is required when a page loads dynamically inside the <strong>iframe </strong>and its height can adjust automatically based on the content.(which means to show iframe without vertical scroll bar).</p>
<p><strong>Sample Code</strong></p>
<blockquote><p><strong><br />
</strong> &lt;html&gt;<br />
&lt;body&gt;<br />
&lt;div id=&#8221;showid&#8221;&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;&lt;td&gt;<br />
Enter your name &lt;input type=&#8221;text&#8221; name=&#8221;yourname&#8221;/&gt;<br />
Enter your age &lt;input type=&#8221;text&#8221; name=&#8221;yourage&#8221;/&gt;<br />
&lt;input type=&#8221;submit&#8221; name=&#8221;Submit&#8221;/&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/div&gt;</p>
<p>&lt;script&gt;<br />
function <strong>setIframeHeight</strong>()<br />
{<br />
document.getElementById(&#8216;testIframe&#8217;).height = document.getElementById(&#8217;showid&#8217;).offsetHeight;<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;iframe src=&#8221;" name=&#8221;testIframe&#8221; id=&#8221;testIframe&#8221; onload=&#8221;<strong>setIframeHeight</strong>();&#8221; /&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<p><em>offsetHeight</em></p>
<ul>
<li>is a property used to retrieves the height of the element/object in pixels.</li>
<li>this value includes the height of elements borders + padding.</li>
</ul>
<p>How it works.?</p>
<p>Browser rendering a page by reading each HTML tags, scripts are loaded first. When the control comes to iframe tag, we have specified an event called onload and the value <strong>setIframeHeight()</strong> method gets invoked. In this method we get the height of the page which is rendered inside the div element and set the same in iframe height.</p>
<p>Like this you can set the value of any iframe attributes.</p>
<blockquote><p>document.getElementById(&#8216;testIframe&#8217;).width = 100;<br />
document.getElementById(&#8216;testIframe&#8217;).scrolling = &#8220;yes&#8221;<br />
document.getElementById(&#8216;testIframe&#8217;).class= &#8220;css_classname&#8221;;</p></blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manikandanmv.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manikandanmv.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manikandanmv.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manikandanmv.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manikandanmv.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manikandanmv.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manikandanmv.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manikandanmv.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manikandanmv.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manikandanmv.wordpress.com/386/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=386&subd=manikandanmv&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://manikandanmv.wordpress.com/2009/04/25/dynamically-change-iframe-heights/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">manikandanmv</media:title>
		</media:content>
	</item>
		<item>
		<title>Inspirational Book : It&#8217;s All a Matter Of ATTITUDE</title>
		<link>http://manikandanmv.wordpress.com/2009/04/17/inspirational-book-its-all-a-matter-of-attitude/</link>
		<comments>http://manikandanmv.wordpress.com/2009/04/17/inspirational-book-its-all-a-matter-of-attitude/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 12:12:08 +0000</pubDate>
		<dc:creator>manikandanmv</dc:creator>
				<category><![CDATA[attitude]]></category>
		<category><![CDATA[advice]]></category>
		<category><![CDATA[attitude towards goal]]></category>
		<category><![CDATA[leadership]]></category>
		<category><![CDATA[losers attitude]]></category>
		<category><![CDATA[negative attitude]]></category>
		<category><![CDATA[ownership]]></category>
		<category><![CDATA[positive attitude]]></category>
		<category><![CDATA[positive results]]></category>
		<category><![CDATA[secret to succes]]></category>
		<category><![CDATA[success attitude]]></category>
		<category><![CDATA[winners attitude]]></category>

		<guid isPermaLink="false">http://manikandanmv.wordpress.com/?p=369</guid>
		<description><![CDATA[I got a chance to read a book called &#8220;It&#8217;s All a Matter Of ATTITUDE&#8221; written by Justin Herald. Thanks to my friend to lend me the nice book. In my life i have never read a book like this. I can recommend every people to read this book.
Really surprised.! Because i have already followed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=369&subd=manikandanmv&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I got a chance to read a book called &#8220;<strong>It&#8217;s All a Matter Of ATTITUDE</strong>&#8221; written by Justin Herald. Thanks to my friend to lend me the nice book. In my life i have never read a book like this. I can recommend every people to read this book.</p>
<p>Really surprised.! Because i have already followed some of the points specified in the book in my life. This was a great sync between me and this book. So i was impressed and finished the book at a great pace. Due to this my friend gifted this book to me.</p>
<p>I have an attitude to share my knowledge with my friends/colleagues/peoples around me, hence this blog post. Surely all the points are helpful to improve/enhance your life well.</p>
<p>The book has almost 50+ consolidated slogans about attitudes. But here am going to summarize the points in topic wise which will be helpful for better understanding.</p>
<p>Topics are<strong><br />
</strong></p>
<ul>
<li>Positive Attitude</li>
<li>Attitude Towards Goal</li>
<li>Success Attitude</li>
<li>Winners &amp; Losers Attitude</li>
<li>Advice</li>
<li>Leadership &amp; Ownership</li>
</ul>
<p><strong>Positive Attitude<br />
</strong></p>
<ul>
<blockquote>
<li><strong>Positive Attitude = Positive Results.</strong></li>
<li><strong>I don&#8217;t have an Attitude Problem&#8230; You have a Perception Problem</strong>
<ul>
<li>The best way to overcome is constantly keep your own attitudes in check.</li>
</ul>
</li>
<li><strong>I don&#8217;t care how Good you are&#8230;. I&#8217;m Better!</strong>
<ul>
<li>Never compare yourself to others and their results.</li>
<li>You are better than the outcomes that you experience. &#8211; it just means you are constantly bettering yourself.</li>
</ul>
</li>
<li><strong>Its all about your mindset<br />
</strong></p>
<ul>
<li>If nothing worked out as u planned, you can still get back on track.</li>
</ul>
</li>
<li><strong>100 % Attitude</strong>
<ul>
<li>You will achieve a lot more if you adjust your attitude.</li>
</ul>
</li>
<li><strong>If you think you can&#8217;t&#8230;&#8230; You won&#8217;t</strong>
<ul>
<li>Our thinking plays a huge role.</li>
<li>Our thinking will control our actions</li>
<li>Our mindset has determined our&#8217;s end result.</li>
</ul>
</li>
<li><strong>If you think you&#8217;re beaten&#8230; You are!</strong>
<ul>
<li>Keep your mind filled with the positive things around you.</li>
<li>Don&#8217;t think in -ve way, If u did , the minute you allow a second outcome.</li>
</ul>
</li>
<li><strong>Life&#8217;s tough&#8230; So what!</strong>
<ul>
<li>Have an attitude that you CAN.</li>
</ul>
</li>
<li><strong>It&#8217;s none of my business what you think of me!</strong>
<ul>
<li>We all need to block our ears to negative people.</li>
<li>Become bulletproof &#8211; people around you offer negativity , separate yourself from them and their comments.</li>
</ul>
</li>
<li><strong>Be Different&#8230;. Be Better.</strong>
<ul>
<li>Being excellent is a choice.</li>
<li>Have an attitude to try new things, and learn new things day by day.</li>
<li>Do things that you have never attempted before.</li>
</ul>
</li>
<li><strong>Self-control<br />
</strong></p>
<ul>
<li>Make sure you always control your goals, dreams and life.</li>
</ul>
</li>
<li>A <strong>Positive </strong>anything is better than <strong>Negative </strong>nothing.
<ul>
<li>Focus on the positives and outcomes will come in front of you.</li>
<li>Being positive doesn&#8217;t mean that everything will always work out the way you plan, but it will help to keep you going in the right direction.</li>
</ul>
</li>
<li><strong>No Regrets&#8230; Not event a little one.</strong>
<ul>
<li>Don&#8217;t focus on what you have done wrong. Focus on what you can do right.</li>
<li>Regret &#8211; negative tone.</li>
</ul>
</li>
<li><strong>I preach what I practice.</strong></li>
<ul>
<li>Be an example to all.</li>
</ul>
</blockquote>
</ul>
<p><strong>Attitude</strong> <strong>Towards Goal<br />
</strong></p>
<ul>
<blockquote>
<li><strong>No LIMITS, No EXCUSES, No IF&#8217;s , No BUT&#8217;s&#8230; Just </strong><strong>ATTITUDE.</strong>
<ul>
<li>There are no excuses in life, there are no limits as to how high you can go.</li>
</ul>
</li>
<li><strong>Keep your focus on where you want to go in life.</strong>
<ul>
<li>Change your focus to areas that will give results sooner.</li>
</ul>
<ul>
<li>Focus on areas which you need to improve.</li>
</ul>
</li>
</blockquote>
</ul>
<p><strong>Success Attitude</strong></p>
<ul>
<blockquote>
<li><strong>Success is all about the journey.</strong>
<ul>
<li>A successful person is measured by how many times they picked themselves up. Not measured by their ultimate outcome.</li>
</ul>
</li>
<li><strong>Secrets to Success.</strong>
<ul>
<li>Do <strong>whatever it takes</strong> to succeed.</li>
<li>Hardwork, determination and desire.</li>
<li>What have you prepared to get where you want to go?</li>
</ul>
</li>
<li><strong>100% Effort</strong>
<ul>
<li>Stay focused on your desired outcome and apply 100% effort, your dreams will become reality</li>
</ul>
</li>
<li><strong>The EDGE is not the limit&#8230;.. It&#8217;s only the STARTING point.</strong>
<ul>
<li>Better you can concentrate on achieving all you desire</li>
<li>Enjoy yourself and all that life brings.</li>
</ul>
</li>
<li><strong>Have people around you who are enthusiastic about their own success.</strong>
<ul>
<li>Being positive doesn&#8217;t mean that everything will always work out the way you plan, but it will help to keep you going in the right direction.</li>
</ul>
</li>
<li><strong>Risks</strong>
<ul>
<li>Take risks, risks are just part of the process towards success.</li>
</ul>
</li>
<li><strong>Successful people.</strong>
<ul>
<li>They did not focus on obstacles.They used obstacles to make them stronger.</li>
<li>They see &#8216;impossible&#8217; as &#8216;possible&#8217; . Its all up to you.</li>
</ul>
</li>
</blockquote>
</ul>
<p><strong>Winners &amp; Losers Attitude<br />
</strong></p>
<ul>
<blockquote>
<li><strong>The Game isn&#8217;t over until I win</strong>
<ul>
<li>Quitters never win and winners never quit (remember)</li>
<li>Life is a game &#8211; we only compete with ourselves: our thinking/goals/dreams.</li>
</ul>
</li>
<li><strong>Losing is not an option</strong>
<ul>
<li>Never think you are a loser, it means your goal is bit longer to achieve.</li>
</ul>
<ul>
<li>Its all about how you view it really.</li>
</ul>
</li>
<li><strong>Winners make it happen&#8230; Losers let it happen</strong>
<ul>
<li>Don&#8217;t let your life happen around you. Achieving is all about controlling the final outcome.</li>
<li>Make your successes happen. It&#8217;s really up to you.</li>
</ul>
</li>
<li><strong>Champion</strong>
<ul>
<li>Winners attitude will be the deciding factor.</li>
<li>Just change your thinking and start acting like a champion, your results will soon follow.</li>
</ul>
</li>
<li><strong>Professional Losers</strong>
<ul>
<li>They are just blaming others, blaming their past and blaming those around them.</li>
<li>To avoid this never allow your thinking stuck in &#8216;loser&#8217; mode.</li>
</ul>
</li>
<li>Losers says &#8220;its all about <strong>Luck</strong>&#8220;</li>
<li>Losers shortcut is &#8220;<strong>Quitting</strong>&#8220;.</li>
<li>Winners do <strong>everything</strong> it takes to reach their goals.</li>
</blockquote>
</ul>
<p><strong>Advice</strong></p>
<ul>
<blockquote>
<li><strong>Asking advice to others. (When i want your opinion, I&#8217;ll give it to you!)<br />
</strong></p>
<ul>
<li>Seek advice from those who have achieved a level of success in your desired field.</li>
</ul>
</li>
</blockquote>
</ul>
<p><strong>Leadership &amp; Ownership</strong></p>
<p>I have already written a blog about Leadership. Read it <a title="Leadership" href="http://manikandanmv.wordpress.com/2009/03/06/leadership/" target="_blank">here</a><br />
<strong> </strong></p>
<ul>
<blockquote>
<li><strong>Leadership</strong>
<ul>
<li>True leaders, will always have people following them.</li>
<li>Make sure you lead them to a place they need to go.</li>
</ul>
</li>
<li><strong>Ownership</strong>
<ul>
<li>Own the process of your success.</li>
</ul>
</li>
</blockquote>
</ul>
<p>Every person have both attitudes (positive &amp; negative). It&#8217;s up to you to choose which one and proceed the life in success mode.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manikandanmv.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manikandanmv.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manikandanmv.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manikandanmv.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manikandanmv.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manikandanmv.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manikandanmv.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manikandanmv.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manikandanmv.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manikandanmv.wordpress.com/369/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=369&subd=manikandanmv&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://manikandanmv.wordpress.com/2009/04/17/inspirational-book-its-all-a-matter-of-attitude/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">manikandanmv</media:title>
		</media:content>
	</item>
		<item>
		<title>Handling Timezone in webclient Timer</title>
		<link>http://manikandanmv.wordpress.com/2009/03/24/handling-timezone-in-webclient-timer/</link>
		<comments>http://manikandanmv.wordpress.com/2009/03/24/handling-timezone-in-webclient-timer/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 06:21:19 +0000</pubDate>
		<dc:creator>manikandanmv</dc:creator>
				<category><![CDATA[JSP]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[client-side timer]]></category>
		<category><![CDATA[date with timezone]]></category>
		<category><![CDATA[handling server timezone in client-side]]></category>
		<category><![CDATA[handling timezone in javascript date]]></category>
		<category><![CDATA[javascript date with timezone]]></category>
		<category><![CDATA[server time in]]></category>
		<category><![CDATA[server time in browser]]></category>
		<category><![CDATA[timer]]></category>
		<category><![CDATA[timezone handling in timer]]></category>

		<guid isPermaLink="false">http://manikandanmv.wordpress.com/?p=344</guid>
		<description><![CDATA[This post is the continuation of my previous post &#8220;Showing Timer in webclient&#8221;. &#8211; i could not handled timezone in my previous code. In detail if you are running a server in one timezone, say US(GMT-08:00)  and you are accessing the server webclient in different machine which has different timezone, say, India(GMT+05:30). So already written [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=344&subd=manikandanmv&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This post is the continuation of my previous post <a href="http://manikandanmv.wordpress.com/2008/12/22/showing-timer-in-webclient/">&#8220;Showing Timer in webclient&#8221;</a>. &#8211; i could not handled timezone in my previous code. In detail if you are running a server in one timezone, say US(GMT-08:00)  and you are accessing the server webclient in different machine which has different timezone, say, India(GMT+05:30). So already written code is failed to show the correct server time.<br />
First analyze, what was the problem in previous code:</p>
<blockquote><p>var time = &lt;%=System.currentTimeMillis()%&gt;<br />
var date = new Date(time);</p></blockquote>
<p>In the above code, am getting server time in milliseconds and set the same in javascript <strong>Date</strong> object.<br />
<em><strong>var date = new Date(time)</strong> </em>- while executing this line, server will get browser timezone and set that timezone into this date object. Due to this we are getting incorrect server time.</p>
<p>Solution to this problem is by setting year, month, day, hours, minutes &amp; seconds separately to Date class.  Here Date class does not take browser timezone.</p>
<blockquote><p>&lt;%<br />
Calendar c = Calendar.getInstance();<br />
int year = c.get(Calendar.YEAR);<br />
int month = c.get(Calendar.MONTH);<br />
int date = c.get(Calendar.DATE);<br />
int hrs = c.get(Calendar.HOUR);<br />
int mins = c.get(Calendar.MINUTE);<br />
int secs = c.get(Calendar.SECOND);<br />
%&gt;<br />
var date = new Date(&lt;%=year%&gt; , &lt;%=month%&gt; , &lt;%=date%&gt; , &lt;%=hrs%&gt; , &lt;%=mins%&gt; , &lt;%=secs%&gt; );</p></blockquote>
<p>For better understanding, once again i put the entire code here with the updated one.</p>
<p><strong>Sample code with Timezone handling.</strong></p>
<p>&lt;div id=”<strong>showTimer</strong>“&gt;&lt;/div&gt; &lt;!– Used to show the Digital Timer –&gt;</p>
<blockquote><p>&lt;%<br />
Calendar c = Calendar.getInstance();<br />
int year = c.get(Calendar.YEAR);<br />
int month = c.get(Calendar.MONTH);<br />
int date = c.get(Calendar.DATE);<br />
int hrs = c.get(Calendar.HOUR);<br />
int mins = c.get(Calendar.MINUTE);<br />
int secs = c.get(Calendar.SECOND);<br />
%&gt;</p>
<p>&lt;script&gt;</p>
<p>var months = new Array(”Jan”, “Feb”, “Mar”, “Apr”, “May”, “Jun”, “Jul”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec”);<br />
function showCurrentTime(){<br />
var date = new Date(&lt;%=year%&gt; , &lt;%=month%&gt; , &lt;%=date%&gt; , &lt;%=hrs%&gt; , &lt;%=mins%&gt; , &lt;%=secs%&gt; );<br />
var showdate = date.getDate() + ” ” + months[date.getMonth()] + ” ” +date.getFullYear() + “, ” ;<br />
var hrs = date.getHours();<br />
var mins = date.getMinutes();<br />
var secs = date.getSeconds();<br />
hrs = (hrs &gt; 9) ? hrs : “0″+hrs;<br />
mins = (mins &gt; 9) ? mins : “0″+mins;<br />
secs = (secs &gt; 9) ? secs : “0″+secs;<br />
var showtime =  hrs + ” : ” + mins + ” : ” + secs;<br />
time = time+1000;<br />
document.getElementById(”showTimer“).innerHTML=showdate + showtime;<br />
}<br />
setInterval(”showCurrentTime()”, 1000);<br />
&lt;/script&gt;</p></blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manikandanmv.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manikandanmv.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manikandanmv.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manikandanmv.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manikandanmv.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manikandanmv.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manikandanmv.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manikandanmv.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manikandanmv.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manikandanmv.wordpress.com/344/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manikandanmv.wordpress.com&blog=2057532&post=344&subd=manikandanmv&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://manikandanmv.wordpress.com/2009/03/24/handling-timezone-in-webclient-timer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">manikandanmv</media:title>
		</media:content>
	</item>
	</channel>
</rss>