<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3927340974514228231</id><updated>2015-06-14T00:04:21.673-07:00</updated><title type='text'>Programming Junk</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-3366492097227917670</id><published>2012-08-29T07:03:00.000-07:00</published><updated>2012-08-29T07:03:10.502-07:00</updated><title type='text'>Using DJNativeSwing with NetBeans IDE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt; &lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;a href=&quot;http://djproject.sourceforge.net/ns/&quot;&gt;DJNativeSwing&lt;/a&gt; &amp;nbsp;provide set of cool features that we can use to build fancy looking UIs. But it uses Eclipse swt instead of swing. Therefore, when the component of DJNativeSwing is used inside NetBeans you will get compiler errors. &amp;nbsp;You can avoid this by adding Eclipse swt jars which are located in plugins directory of eclipse installation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Add following two jars to the build path of the NetBeans Project&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: Symbol; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://www.java2s.com/Code/Jar/o/Downloadorgeclipseswt370v3735bjar.htm&quot; style=&quot;text-indent: -0.25in;&quot;&gt;org.eclipse.swt_3.7.0.v3735b.jar&amp;nbsp;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.java2s.com/Code/Jar/o/Downloadorgeclipseswtwin32win32x86370v3735bjar.htm&quot; style=&quot;text-indent: -0.25in;&quot;&gt;org.eclipse.swt.win32.win32.x86_3.7.0.v3735b.jar&amp;nbsp;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;!--[if !supportLists]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;  &lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;That’s about it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/3366492097227917670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2012/08/using-djnativeswing-with-netbeans-ide.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/3366492097227917670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/3366492097227917670'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2012/08/using-djnativeswing-with-netbeans-ide.html' title='Using DJNativeSwing with NetBeans IDE'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-2581994978770418235</id><published>2011-12-08T21:09:00.000-08:00</published><updated>2011-12-08T21:09:23.538-08:00</updated><title type='text'>Unknowns of JavaScript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; You will probably find some thing unknown to you if you are not an expert JavaScript programmer and not familiar with JavaScript meta programming techniques! If that is the case, i can assure you that you will find something new and useful in&amp;nbsp;at least&amp;nbsp;one of the following posts.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #fcfcfc; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; word-wrap: break-word;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://sldigits.com/2011/11/15/redefine-function-within-function-to-avoid-unnecessary-if-else-blocks-in-javascript/&quot;&gt;Redefine function within function to avoid unnecessary if else blocks in JavaScript&lt;/a&gt;&amp;nbsp;- this post is about self optimizing JavaScript functions.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #fcfcfc; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; word-wrap: break-word;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #fcfcfc; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; word-wrap: break-word;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;a href=&quot;http://sldigits.com/2011/12/01/identifying-weather-javascript-function-is-used-as-a-constructor/&quot;&gt;Identifying weather JavaScript function is used as a constructor&lt;/a&gt;&amp;nbsp;- this tells you the difference when a JavaScript function is called with new keyword and as a regular function call.&lt;/strong&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; font-weight: bold; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;a href=&quot;http://sldigits.com/2011/12/01/public-private-methods-and-variables-in-javascript/&quot;&gt;Public, Private Methods and Variables in JavaScript&lt;/a&gt;&amp;nbsp;- as you know there are no public or private keywords in JavaScript to define the scope as in Java. This is about doing it even without those keywords.&lt;/strong&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; font-weight: bold; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; font-weight: bold; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/11/retain-value-between-function-calls.html&quot;&gt;Retain values between function calls without using global variables&lt;/a&gt;&amp;nbsp;- normally we use global variables to retain some value between function calls. this tells you how to do it without using global variables.&lt;/strong&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; font-weight: bold; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; font-weight: bold; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #fcfcfc; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; word-wrap: break-word;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/2581994978770418235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/12/unknowns-of-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/2581994978770418235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/2581994978770418235'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/12/unknowns-of-javascript.html' title='Unknowns of JavaScript'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-8534273055974947662</id><published>2011-12-05T20:07:00.000-08:00</published><updated>2011-12-05T20:07:36.129-08:00</updated><title type='text'>Adding source file to the Google code using TortiseSVN</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Go to the source tab of your projects page. There you will find a svn checkout URL of the project and the username. My URL looked like following&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;em&gt;&lt;b&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #e5ecf9; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: &#39;Lucida Console&#39;; font-size: 9pt; line-height: 115%;&quot;&gt;https&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #e5ecf9; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: &#39;Lucida Console&#39;; font-size: 9pt; line-height: 115%;&quot;&gt;://ceyloan-wordpress-theme.googlecode.com/svn/trunk/&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #e5ecf9; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: &#39;Lucida Console&#39;; font-size: 9pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;In the same page, you will find a link to &lt;a href=&quot;http://code.google.com/hosting/settings&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: #E5ECF9; color: #0000cc; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt;googlecode.com password&lt;/span&gt;&lt;/i&gt;&lt;/a&gt;&lt;em&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #e5ecf9; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;.&lt;/span&gt;&lt;/em&gt; , follow this link to get the password.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Install TortiseSVN&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Right click on the folder containing the source files. Click on TortiseSVN &amp;gt; Import&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Enter the trunk URL, you will be prompted to enter the username and password.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;That’s about it!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/8534273055974947662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/12/adding-source-file-to-google-code-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/8534273055974947662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/8534273055974947662'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/12/adding-source-file-to-google-code-using.html' title='Adding source file to the Google code using TortiseSVN'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-8930232222981846713</id><published>2011-12-05T03:45:00.000-08:00</published><updated>2011-12-05T03:45:57.365-08:00</updated><title type='text'>Creating an application specific library for application developed using Zend Framework</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I just wanted to do this when I tried to implement link exchange application using Zend Framework to understand the usage of Zend. &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Here is what I wanted to do,&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Create an Acl plugin and put it in a folder inside the library folder. Path from the application folder in www directory is as follows&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;linkdir/library/Linkdir/controller/plugin/Acl.php&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;in order to identify the this plugin by frame work I needed to add its name space to autoloader. If you are trying to do the same solution is here. Otherwise you are at the wrong place and this won’t be of any use for you.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Here is how I did it&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;I added the following line on the applicatioin.ini file&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;autoloaderNamespaces[] = &quot;Linkdir_&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Since I added the name space my class name also needed to reflect the name space. Therefore the class name should look like something following&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Linkdir_Controller_Plugin_Acl &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Folder names are separated using ‘_’ . &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;There might be a way to do this by overriding &amp;nbsp;&lt;b&gt;_initAutoload() method in the bootstrap.php fil&lt;/b&gt;e in the application folder.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/8930232222981846713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/12/creating-application-specific-library.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/8930232222981846713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/8930232222981846713'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/12/creating-application-specific-library.html' title='Creating an application specific library for application developed using Zend Framework'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-8753398393212856203</id><published>2011-11-18T02:01:00.000-08:00</published><updated>2011-11-20T09:34:06.925-08:00</updated><title type='text'>Rounded Corners for IE using .htc files</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I’ve tried two methods which I found on the internet. They can be found in following URLs. These URLs point to the sites which I found them. &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;a href=&quot;http://www.htmlremix.com/css/curved-corner-border-radius-cross-browser&quot;&gt;border-radius.htc&lt;/a&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;a href=&quot;http://css3pie.com/&quot;&gt;http://css3pie.com/&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Unfortunately these have some issues. But the PIE solution is more advance and complete in my opinion. This is said by experience not by knowing inside workings of these. &amp;nbsp;I have mentioned the issues that I had to face using these solutions, there can be more but these are what I got into. I recommend PIE as the better solution. These are not just for the border radius; they also provide solutions to box shadow and some other stuff.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Issues Using border-radius.htc&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Generate border lines for elements which were not present in the initial design.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Breakup jQuery code. &amp;nbsp;(This broke the spot light effect which I used)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Background images get repeated even if I use no-repeat&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Issues Using PIE&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;I could not get the opacity controlling of elements which had background images. They work fine when background images are not present.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;In case you are looking for equivalent properties for border-radius in CSS, -webkit and –moz look at the following url.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/04/how-to-provide-cross-browser-support.html&quot;&gt;http://jayaprabath.blogspot.com/2011/04/how-to-provide-cross-browser-support.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;you may also read&lt;br /&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; word-wrap: break-word;&quot;&gt;&lt;a href=&quot;http://sldigits.com/2011/10/27/scheduling-tasks-with-jquery/&quot;&gt;Scheduling Tasks with Jquery&lt;/a&gt;&lt;/strong&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; word-wrap: break-word;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: #fcfcfc; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; font-weight: bold; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;a href=&quot;http://sldigits.com/2011/10/27/create-a-spot-light-effect-using-jquery/&quot;&gt;Create a Spot light effect using JQuery&lt;/a&gt;&lt;/strong&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #fcfcfc; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; font-weight: 800; line-height: 18px;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/05/css-gradient-cross-browser-support.html&quot;&gt;http://jayaprabath.blogspot.com/2011/05/css-gradient-cross-browser-support.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #fcfcfc; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;a href=&quot;http://sldigits.com/2011/10/13/6/&quot;&gt;Create a Simple Light box effect using jquery&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/8753398393212856203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/11/rounded-corners-for-ie-using-htc-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/8753398393212856203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/8753398393212856203'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/11/rounded-corners-for-ie-using-htc-files.html' title='Rounded Corners for IE using .htc files'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-7819258464354713080</id><published>2011-11-12T09:10:00.000-08:00</published><updated>2011-11-20T09:29:14.604-08:00</updated><title type='text'>Retain value between function calls without using global variables in JavaScript using callee</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Normally when we want to retain a value we use a global variable which is defined outside the scope of the function we are calling. But we can actually retain a value without using global variables but by using built in variables passed to the function. When a function is called two built in variables are made available to the function. One of them is the arguments variable. This variable contains a property named callee which contains a reference to the function itself.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Since we can get a reference to the function we can use a property for that function to store the required value. See the example.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;function deposit(amount){&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;var funct=arguments.callee;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&amp;nbsp;if(!funct.balance)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;funct.balance=0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;funct.balance+=amount;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&amp;nbsp;return funct.balance;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;style&gt;.code{ background-color:#A9A9A9; } &lt;/style&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;When the function is called for the first time there is no property named balance for the function. Therefore we have to check it an initialize the property. Afterwards, we each time the function get called we can extract the stored value and modify it finally return the value. I tried and failed to develop a self-modifying function to avoid check each time and only check once for the existence of the property. You may give it a try!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;Just&amp;nbsp; copy and paste this to firebug console and add these to check.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;b&gt;deposit(10);&amp;nbsp; //this would return 10&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;b&gt;deposit(20); // this would return 30&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;You may also like to read&lt;br /&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: #fcfcfc; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: 0px; word-wrap: break-word;&quot;&gt;&lt;a href=&quot;http://sldigits.com/2011/11/13/change-the-context-using-call-and-apply-in-javascript/&quot;&gt;Change the Context using call() and apply() in JavaScript&lt;/a&gt;&lt;/strong&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #fcfcfc; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: 0px; word-wrap: break-word;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; font-weight: bold; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;a href=&quot;http://sldigits.com/2011/11/15/redefine-function-within-function-to-avoid-unnecessary-if-else-blocks-in-javascript/&quot;&gt;Redefine function within function to avoid unnecessary if else blocks in JavaScript&lt;/a&gt;&lt;/strong&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: #fcfcfc; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #555555; display: block; font-family: sans-serif; font-size: 12px; font-weight: bold; line-height: 18px; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;a href=&quot;http://sldigits.com/2011/11/19/wrapping-a-block-of-string-within-a-particular-element-with-html-elements-in-jquery-using-special-key-words-to-identify-the-block/&quot;&gt;Wrapping a block of String within a particular element with HTML elements in JQuery using special key words to identify the block&lt;/a&gt;&lt;/strong&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #fcfcfc; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; margin-bottom: 0.2em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; font-weight: 900; line-height: 18px;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/06/restrict-users-to-enter-numeric-values.html&quot;&gt;http://jayaprabath.blogspot.com/2011/06/restrict-users-to-enter-numeric-values.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/7819258464354713080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/11/retain-value-between-function-calls.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/7819258464354713080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/7819258464354713080'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/11/retain-value-between-function-calls.html' title='Retain value between function calls without using global variables in JavaScript using callee'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-7689174392486715731</id><published>2011-09-22T08:25:00.000-07:00</published><updated>2011-09-22T08:25:55.131-07:00</updated><title type='text'>JQuery image transitions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;there are many ways to provide transition effects using animate() method of jquery. most of the effects mentioned here use the background-position property to prepare elements before they are being animated.&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;this jquery image slider consist of 10 different effect which are chosen randomly to apply for the animation. if you want to minimize the size of the code, you can bundle together some effects because most of these effects only require simple property changes. effects which can be budled in to a single function are named in a consistent manner. i dont want to minimize it because i need add some more effects. this format is better for testing. you can try and improve it if you want. download the code and the demo from the link beow.&lt;br /&gt;&lt;a href=&quot;http://www.mediafire.com/?e7eeoe08wj8re&quot;&gt;http://www.mediafire.com/?e7eeoe08wj8re&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/7689174392486715731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/09/jquery-image-transitions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/7689174392486715731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/7689174392486715731'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/09/jquery-image-transitions.html' title='JQuery image transitions'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-4794530849428623919</id><published>2011-08-31T13:31:00.000-07:00</published><updated>2011-08-31T13:31:26.619-07:00</updated><title type='text'>The tricky part of Java method overriding</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;The tricky part of Java method overriding&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;You can easily override a method of a super class in one of its subclasses.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;But if you invoke an overridden method from a polymorphic object, the method of the actual object type gets invoked. Let’s look at an example,&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;class A{&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;public void test(){&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(“I’m A”);&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;class B{&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;public void test(){&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(“I’m B”);&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Then some where in the code you might have a code similar to following&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;A a=new B();&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;a.test();&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;The output would be, &lt;b&gt;I’m B&lt;/b&gt;. this is OK. But what happens when you invoke methods which can be overridden by a subclass. Well, let’s see,&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;class A{&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;private int a;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;public A(int a){&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;b&gt;this.a=a;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;b&gt;test();&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Public void test(){&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(“value of instance var of A after adding 2=”+(a+2));&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;class B{&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;private int b;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;public B(int b){&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; super(b);&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.b=b;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;public void test(){&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println((“value of instance var of B after adding 2=”+(b+2));&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Then some where in the code you execute some thing similar to following&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;B b=new B(1);&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;The output would be,&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;value of instance var of B after adding 2=2&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;The overridden method of class B get called before the instance variable of B is not initialized. Call to super constructor must come first in the constructor of subclass disallowing subclass to initialize variables to avoid this havoc.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;This shows that calling methods inside a constructor which can be overridden by subclasses is not suitable. You have to pay the price for it some day. Invoke only those which cannot be overridden by subclasses inside your constructor.&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/4794530849428623919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/08/tricky-part-of-java-method-overriding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/4794530849428623919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/4794530849428623919'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/08/tricky-part-of-java-method-overriding.html' title='The tricky part of Java method overriding'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-8143513101046494404</id><published>2011-08-31T03:04:00.000-07:00</published><updated>2011-08-31T22:55:09.389-07:00</updated><title type='text'>Java Variable passing and Assignment operation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;Java Variable passing and Assignment operation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;A variable can be considered as a holder containing a bit pattern. In primitive type variables those patterns contains the value of the variable. But what about variable which are referring to objects. Well that dose not contains the actual object; they just contain a bit pattern to get the actual object. Then what is the format?? I don’t know, but it somehow gets the object using the bit pattern.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;What happens when you assign a value to a variable? Well, if it’s a primitive type the bit pattern representing the value get stored in the variable, if it’s a object type some bit pattern get stored so that it would refer to the actual object. Some times casting might be required and can generate weird results. Try this for example (byte b= (byte) 128 ;). If you can’t guess the result, you might have to do little bit of reading. I’m not going to talk about this here.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;When you assign a variable to another variable, if it’s a primitive variable value of the variable get copied to the new variable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;Int a=5;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;Int b=a;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;If you change the value of b ( &lt;b&gt;b=6&lt;/b&gt;) value of a remains 5. This is because variable b get a copy of the bit pattern stored in a, when the assignment is done. So, there is no drama in assignment operation when it comes to primitive type variables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;But when it comes to object type variables, there is a little bit of drama. Look at the following,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;class Test{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int t;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;Test a=new Test();&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;Test b=a;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;b.t=1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;System.out.println(“b.t=”+b.t);&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;System.out.println(“a.t=”+a.t);&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;Output would be&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;b.t=1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;a.t=1;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;This happens because both a and b contains the same bit pattern which refer to a single object. But if you assign a newly created object to b after assigning this would be different.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;Test a=new Test();&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;Test b=a; //bit pattern of a get copied to b, therefore both refer to the same object&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;b=new Test(); // b get a new bit pattern therefore b is referring to a different object&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;b.t++; &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;System.out.println(“b.t=”+b.t);&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;System.out.println(“a.t=”+a.t);&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;Output would be&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;b.t=1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;a.t=0;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;Comments in the code would clarify it!!!!!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;There is one exception when you consider String objects. Those are treated differently. Strings cannot be modified. A new String would be created by the VM when you “change” a String. Look at the following&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;String a=”test”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;String b=a; // both b and a refer to the same string&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;b=b+” change”; // new string is created and b refers to the new String, original string is //left //unchanged&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;When you pass variables to methods similar thing would happen. A copy of the bit pattern would get passed in to the method, thus causing similar effects to those mentioned above.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: .5in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/8143513101046494404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/08/java-variable-parsing-and-assignment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/8143513101046494404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/8143513101046494404'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/08/java-variable-parsing-and-assignment.html' title='Java Variable passing and Assignment operation'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-3322639053105293974</id><published>2011-08-23T04:46:00.000-07:00</published><updated>2013-03-08T19:52:45.176-08:00</updated><title type='text'>Intent Filter to Appear in dynamic menus of other Android apps</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;This post has been moved to a different site. you will be redirected :)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/3322639053105293974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/08/intent-filter-to-appear-in-dynamic.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/3322639053105293974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/3322639053105293974'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/08/intent-filter-to-appear-in-dynamic.html' title='Intent Filter to Appear in dynamic menus of other Android apps'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-2642203049507992799</id><published>2011-08-19T04:34:00.000-07:00</published><updated>2011-08-19T04:34:39.314-07:00</updated><title type='text'>Android Posts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Following are some of the posts i published which are related to android development&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 21px;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/07/detecting-back-key-press-in-android.html&quot;&gt;Detecting Back Key press in Android&lt;/a&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/01/md5-fingerprint-for-android-debug.html&quot;&gt;MD5 fingerprint for android debug keystore&lt;/a&gt;&lt;/h3&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;/h3&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 21px;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/07/access-localhost-of-computer-from.html&quot;&gt;Access localhost of the computer from android emulator&lt;/a&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 21px;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/07/opening-file-using-default-application.html&quot;&gt;Opening a File Using Default Application in Android&lt;/a&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2010/10/google-maps-api-key.html&quot;&gt;Google Maps API Key&lt;/a&gt;&lt;/h3&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;/h3&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;/h3&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;/h3&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 21px;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/08/install-apk-file-on-emulator-in-ubuntu.html&quot;&gt;Install an apk file on the Emulator in ubuntu&lt;/a&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ul&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/2642203049507992799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/08/android-posts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/2642203049507992799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/2642203049507992799'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/08/android-posts.html' title='Android Posts'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-1120396907214795646</id><published>2011-08-19T04:28:00.000-07:00</published><updated>2011-08-19T04:28:42.254-07:00</updated><title type='text'>Javascript Posts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;here are some of the posts i published which are related to javascript and jquery&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 21px;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/06/access-google-maps-with-javascript.html&quot;&gt;Access Google Maps with JavaScript&lt;/a&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/04/jquery-selections-quick-reference.html&quot;&gt;Jquery Selections Quick Reference&lt;/a&gt;&lt;/h3&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;/h3&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;/h3&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 21px;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/06/restrict-users-to-enter-numeric-values.html&quot;&gt;Restrict users to enter numeric values to a form field with JQuery&lt;/a&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/1120396907214795646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/08/javascript-posts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/1120396907214795646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/1120396907214795646'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/08/javascript-posts.html' title='Javascript Posts'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-1209390799001002707</id><published>2011-08-19T04:23:00.000-07:00</published><updated>2011-08-19T04:23:02.370-07:00</updated><title type='text'>CSS Posts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;below are some of the posts which i published which are related to using CSS&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/04/create-tool-tips-using-css.html&quot;&gt;Create tool-tips using CSS&lt;/a&gt;&lt;/h3&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;/h3&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 21px;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/05/css-gradient-cross-browser-support.html&quot;&gt;CSS gradient cross browser support&lt;/a&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/04/css-background-property-reference.html&quot;&gt;CSS background property reference&lt;/a&gt;&lt;/h3&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/04/how-to-create-drop-down-menu-only-using.html&quot;&gt;How to Create a Drop Down Menu only using CSS – Without JavaScript&lt;/a&gt;&lt;/h3&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16px;&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;font: normal normal normal 22px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.75em; position: relative;&quot;&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/04/how-to-style-html-elements-to-give-them.html&quot;&gt;How to Style HTML Elements to Give Them a Button Like Appearance&lt;/a&gt;&lt;/h3&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ul&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/1209390799001002707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/08/css-posts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/1209390799001002707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/1209390799001002707'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/08/css-posts.html' title='CSS Posts'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-2065110623828948242</id><published>2011-07-31T05:12:00.000-07:00</published><updated>2012-11-27T07:03:49.101-08:00</updated><title type='text'>Detecting Back Key press in Android</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;This post is moved to a different site! you will be redirected to the new location.&lt;/div&gt;&lt;style type=&quot;text/css&quot;&gt;.code{ background:#A9A9A9; } &lt;/style&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/2065110623828948242/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/07/detecting-back-key-press-in-android.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/2065110623828948242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/2065110623828948242'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/07/detecting-back-key-press-in-android.html' title='Detecting Back Key press in Android'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-7243285589397360282</id><published>2011-07-31T05:01:00.000-07:00</published><updated>2011-10-27T06:41:48.778-07:00</updated><title type='text'>Opening a File Using Default Application in Android</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;Opening a File Using Default Application in Android&lt;br /&gt;Here is the &amp;nbsp;code to do this&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;b&gt;File file = new File(&quot;direcotry&quot;,&quot;fileName&quot;);&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Intent intent = new Intent();&lt;/b&gt;&lt;br /&gt;&lt;b&gt;intent.setAction(android.content.Intent.ACTION_VIEW);&lt;/b&gt;&lt;br /&gt;&lt;b&gt;intent.setDataAndType(Uri.fromFile(file), &quot;mimetype&quot;);&lt;/b&gt;&lt;br /&gt;&lt;b&gt;startActivity(intent);&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;if you want to open a audio file code would look something similar to the following&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;b&gt;File file = new File(&quot;direcotry&quot;,&quot;fileName&quot;);&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Intent intent = new Intent();&lt;/b&gt;&lt;br /&gt;&lt;b&gt;intent.setAction(android.content.Intent.ACTION_VIEW);&lt;/b&gt;&lt;br /&gt;&lt;b&gt;intent.setDataAndType(Uri.fromFile(file), &quot;audio/*&quot;);&lt;/b&gt;&lt;br /&gt;&lt;b&gt;startActivity(intent);&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;.code{ background:#A9A9A9; } &lt;/style&gt;&lt;br /&gt;&lt;br /&gt;using setDataAndType method would allow you to over rule the actual mime type of the file.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/7243285589397360282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/07/opening-file-using-default-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/7243285589397360282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/7243285589397360282'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/07/opening-file-using-default-application.html' title='Opening a File Using Default Application in Android'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-7995677006161543596</id><published>2011-07-09T23:14:00.000-07:00</published><updated>2012-11-28T23:49:32.224-08:00</updated><title type='text'>JackRabbit Webdav method examples for WebDav client</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;This post has been moved to a different site. You will be redirected to the new location.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/7995677006161543596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/07/jackrabbit-webdav-method-examples-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/7995677006161543596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/7995677006161543596'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/07/jackrabbit-webdav-method-examples-for.html' title='JackRabbit Webdav method examples for WebDav client'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-198648838331694898</id><published>2011-07-08T08:52:00.000-07:00</published><updated>2012-07-17T09:00:50.687-07:00</updated><title type='text'>Access localhost of the computer from android emulator</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;Access localhost of the computer from android emulator&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if you have tried to access localhost from android emulator using http://localhost or the ip address 127.0.0.1 , you would have seen an error message saying page not found. solution to this is to use 10.0.2.2 as the ip address for the localhost. you can access the localhost of your machine using this ip address.&lt;br /&gt;&lt;br /&gt;you can see how socket are used to communicate with localhost and android emulator &lt;a href=&quot;http://sldigits.com/2012/07/15/android-and-pc-communication-using-sockets/&quot;&gt;here&lt;/a&gt;.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/198648838331694898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/07/access-localhost-of-computer-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/198648838331694898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/198648838331694898'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/07/access-localhost-of-computer-from.html' title='Access localhost of the computer from android emulator'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-1551414871491893222</id><published>2011-06-28T01:11:00.000-07:00</published><updated>2013-03-23T11:11:00.853-07:00</updated><title type='text'>Restrict users to enter numeric values to a form field with JQuery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  &lt;/style&gt;  &lt;br /&gt;This post has been moved to a different site! you will be redirected to the new location!&lt;br /&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/1551414871491893222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/06/restrict-users-to-enter-numeric-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/1551414871491893222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/1551414871491893222'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/06/restrict-users-to-enter-numeric-values.html' title='Restrict users to enter numeric values to a form field with JQuery'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-1979536122717996790</id><published>2011-06-25T03:15:00.000-07:00</published><updated>2012-11-25T07:19:30.852-08:00</updated><title type='text'>Access Google Maps with JavaScript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;This post is permenatly moved! you will be redirected to new location!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/1979536122717996790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/06/access-google-maps-with-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/1979536122717996790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/1979536122717996790'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/06/access-google-maps-with-javascript.html' title='Access Google Maps with JavaScript'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-1107962122150404024</id><published>2011-05-04T20:14:00.000-07:00</published><updated>2011-05-04T20:14:46.219-07:00</updated><title type='text'>CSS gradient cross browser support</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt;Image&lt;/th&gt;&lt;th&gt;Morzilla&lt;/th&gt;&lt;th&gt;Webkit&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&#39;image&#39; id=&#39;a&#39;&gt;&lt;/td&gt;&lt;td&gt;-moz-linear-gradient(left, red, blue);&lt;/td&gt;&lt;td&gt;-webkit-gradient(linear, left center, right center, from(red), to(blue));&lt;/td&gt;&lt;tr&gt;&lt;tr&gt;&lt;td class=&#39;image&#39; id=&#39;b&#39;&gt;&lt;/td&gt;&lt;td&gt;-moz-linear-gradient(45deg, red, blue);&lt;/td&gt;&lt;td&gt;-webkit-gradient(linear, left bottom, right top, from(red), to(blue));&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&#39;image&#39; id=&#39;c&#39;&gt;&lt;/td&gt;&lt;td&gt;-moz-linear-gradient(90deg, red, blue, green);&lt;/td&gt;&lt;td&gt;-webkit-gradient(linear, center bottom, center top, from(red), color-stop(50%,blue), to(green));&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&#39;image&#39; id=&#39;d&#39;&gt;&lt;/td&gt;&lt;td&gt;-moz-linear-gradient(90deg, red, blue 25%, green);&lt;/td&gt;&lt;td&gt;-webkit-gradient(linear, center bottom, center top, from(red), color-stop(25%,blue), to(green));&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&#39;image&#39; id=&#39;e&#39;&gt;&lt;/td&gt;&lt;td&gt;-moz-radial-gradient(red, blue);&lt;/td&gt;&lt;td&gt;-webkit-gradient(radial, center center, 0, center center, 70.5, from(red), to(blue));&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&#39;image&#39; id=&#39;f&#39;&gt;&lt;/td&gt;&lt;td&gt;-moz-radial-gradient(40% 40%, farthest-side, red, blue);&lt;/td&gt;&lt;td&gt;-webkit-gradient(radial, 40% 40%, 0, 40% 40%, 60, from(red), to(blue));&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&#39;image&#39; id=&#39;g&#39;&gt;&lt;/td&gt;&lt;td&gt;-moz-radial-gradient(40% 40%, closest-side, red blue);&lt;/td&gt;&lt;td&gt;-webkit-gradient(radial, 40% 40%, 0, 40% 40%, 40, from(red), to(blue));&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&#39;image&#39; id=&#39;h&#39;&gt;&lt;/td&gt;&lt;td&gt;-moz-radial-gradient(right top, red, blue, green);&lt;/td&gt;&lt;td&gt;-webkit-gradient(radial, right top, 0, right top, 141, from(red), color-stop(50%, blue), to(green));&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&#39;image&#39; id=&#39;i&#39;&gt;&lt;/td&gt;&lt;td&gt;-moz-radial-gradient(right top, red, blue, green);&lt;/td&gt;&lt;td&gt;-webkit-gradient(radial, right top, 0, right top, 141, from(red), color-stop(50%, blue), to(green));&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&#39;image&#39; id=&#39;j&#39;&gt;&lt;/td&gt;&lt;td&gt;-moz-radial-gradient(60% 60%,circle contain,red,blue 75%,green);&lt;/td&gt;&lt;td&gt;-webkit-gradient(radial,45% 45%,5,60% 60%,40,from(red),color-stop(75%, blue),to(green));&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;style type=&#39;text/css&#39; rel=&#39;stylesheet&#39;&gt;.image{  width: 50px;  height: 50px; } #a{  background-image:-moz-linear-gradient(left, red, blue);  background-image:-webkit-gradient(linear, left center, right center, from(red), to(blue)); } #b{  background-image:-moz-linear-gradient(45deg, red, blue);  background-image:-webkit-gradient(linear, left bottom, right top, from(red), to(blue)); } #c{  background-image:-moz-linear-gradient(90deg, red, blue, green);  background-image:-webkit-gradient(linear, center bottom, center top, from(red), color-stop(50%,blue), to(green));  } #d{  background-image:-moz-linear-gradient(90deg, red, blue, green);  background-image:-webkit-gradient(linear, center bottom, center top, from(red), color-stop(25%,blue), to(green)); } #e{  background-image:-moz-radial-gradient(red, blue);  background-image:-webkit-gradient(radial, center center, 0, center center, 70.5, from(red), to(blue)); } #f{  background-image:-moz-radial-gradient(40% 40%, farthest-side, red, blue);  background-image:-webkit-gradient(radial, 40% 40%, 0, 40% 40%, 60, from(red), to(blue)); } #g{  background-image:-moz-radial-gradient(40% 40%, closest-side, red, blue);  background-image:-webkit-gradient(radial, 40% 40%, 0, 40% 40%, 40, from(red), to(blue)); } #h{  background-image:-moz-radial-gradient(right top, red, blue, green);  background-image:-webkit-gradient(radial, right top, 0, right top, 141, from(red), color-stop(50%, blue), to(green)); } #i{  background-image:-moz-radial-gradient(right top, red, blue, green);  background-image:-webkit-gradient(radial, right top, 0, right top, 141, from(red), color-stop(50%, blue), to(green));  } #j{  background-image:-moz-radial-gradient(60% 60%,circle contain,red,blue 75%,green);  background-image:-webkit-gradient(radial,45% 45%,5,60% 60%,40,from(red),color-stop(75%, blue),to(green)); } table{  border:solid;  border-color:black; } td{  border:solid;  border-color:black; } &lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/1107962122150404024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/05/css-gradient-cross-browser-support.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/1107962122150404024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/1107962122150404024'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/05/css-gradient-cross-browser-support.html' title='CSS gradient cross browser support'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-1149226896794030345</id><published>2011-05-02T22:34:00.000-07:00</published><updated>2011-05-02T22:34:50.679-07:00</updated><title type='text'>Aqua_Toggle: Moodle Theme</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;     &lt;style type=&quot;text/css&quot;&gt; &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;   &lt;br /&gt;&lt;div align=&quot;CENTER&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b&gt;Aqua_Toggle&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt;  This theme was developed by extending Moodles standard_blue theme. This will give an aqua button look to side blocks, navigation menu and heading blocks in moodle. Furthermore this theme incorperates a bit of jquery functionality provide slide up and slide down animation effects when a user click on the headers of side blocks and heading blocks.  Here is a screen shot of the moodle page with aqua_toggle theme.&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt; Donwload the theme form here:&lt;a href=&quot;http://aqua_toggle/&quot;&gt; http://www.mediafire.com/?80kt30jejs30tnq&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0in; text-decoration: none;&quot;&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-hSSZqucjVUQ/Tb-TjvykxlI/AAAAAAAAAB8/qZwQdotkcLM/s1600/Screenshot-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;http://3.bp.blogspot.com/-hSSZqucjVUQ/Tb-TjvykxlI/AAAAAAAAAB8/qZwQdotkcLM/s320/Screenshot-1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/1149226896794030345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/05/aquatoggle-moodle-theme.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/1149226896794030345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/1149226896794030345'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/05/aquatoggle-moodle-theme.html' title='Aqua_Toggle: Moodle Theme'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-hSSZqucjVUQ/Tb-TjvykxlI/AAAAAAAAAB8/qZwQdotkcLM/s72-c/Screenshot-1.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-5647994212495916997</id><published>2011-05-02T03:41:00.001-07:00</published><updated>2011-07-30T12:01:30.296-07:00</updated><title type='text'>Mantis Plugin Development</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;   &lt;br /&gt;&lt;div align=&quot;CENTER&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Mantis plug-in development is a very simple task. What you need to do is put set of folders and files in place and the Mantis will identify your plug-in. Of course your plug-in must do something useful, its up to you to decide what your plug-in should do. Here I&#39;ll look at the basics of Mantis plug-in development.  &lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;I learn this when I developed an authentication plug-in for mantis to authenticate users using SimpleSamlPhp. But unfortunately there is no way to develop a authentication plug-in without hacking the code base. There were some discussion about developing authentication plug-in system in Mantis forums and mailing lists. Checkout the forums and mailing lists if you want to develop an authentication plug-in.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;OK I&#39;ll stop , lets go through the process to get your plug-in up and running.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Create a folder inside the plug-ins directory and give it a name(Test). This is the base name of the plug-in it is used to identify the plug-in.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Create a PHP file inside the directory with the same name as the directory name(Test.php). This file is sufficient enough for mantis to identify your plug-in, all the others are optional.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Create a directory inside your plug-in directory and name it as pages. This will contain the pages for your plug-in. Only files with .php extension should be stored in this directory.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Crete another directory inside your plug-in directory and name it as files. This folder will hold the extra files you need for your plug-in. For example CSS files.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Create a directory named lang inside your plug-in directory. This directory will hold language files which can be used for localization.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Now you have all the folders which are identified by the Mantis as parts of your plugin. So, lets take a look at what goes inside the Test.php file.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;All the mantis plugins are created by extending the MantisPlugin class. So, create a class TestPlugin in the Test.php file. Class name is formed by appending “Plugin” to the base name of your plugin.&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;class TestPlugin extends MantisPlugin{}&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;next you need to define a funcation named register in your class. This will override the register function in MantisPlugin class.&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;class  TestPlugin extends MantisPlugin{&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;function register(){&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;now lets see what goes inside the register function&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;function register(){&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$this-&amp;gt;name=&#39;Test&#39;;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$this-&amp;gt;version=&#39;1.0&#39;;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$this-&amp;gt;require=array(&#39;MantisCore&#39;=&amp;gt;&#39;1.2.0&#39;);&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$this-&amp;gt;description=&#39;description&#39;;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$this-&amp;gt;page=&#39;default plugin page&#39;;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$this-&amp;gt;author=&#39;author name&#39;;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$this-&amp;gt;url=&#39;support webpage&#39;;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$this-&amp;gt;contact=&#39;author contacts&#39;;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Name and Version are must. Other details are optional. Now Mantis can identify your plugin and you can install it. Of course this is of no use.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Lets see what are the other functions that can go inside your class.&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;function events(){&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;return array();&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;function hooks(){&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;return array();&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;function config(){&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;return array();&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;What are all these functions?&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b&gt;function events()&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Here you can define the events which are triggered by your plugin. Others can listen to these events and do something useful. You need to put them in an array. Key would by the event name and the value would be the event type. There are five event types defined in Mantis, each of those has their own purpose. Here are the event types.&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;EVENT_TYPE_EXECUTE  &lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;EVENT_TYPE_OUTPUT  &lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;EVENT_TYPE_CHAIN  &lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;EVENT_TYPE_FIRST  &lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;EVENT_TYPE_DEFAULT  &lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;see the Mantis documentation for more details on these event types. So lets add couple of events for the plugin.  &lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Function events(){&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$test_events=array();&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$test_events[&#39;EVENT_TEST_FIRST&#39;]=EVENT_TYPE_EXECUTE ;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$test_events[&#39;EVENT_TEST_SECOND&#39;]=EVENT_TYPE_DEFAULT ;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;return $test_events;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b&gt;function hooks()&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;this is the function in which you register your event handlers. This function returns an array containing event name as the key and your event handler as the value. You can listen to your own events or any other events that are triggered by Mantis.  &lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Here i&#39;m going to add an event handler which will handle an event defined by my plugin.&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;function hooks(){&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$handlers=array();&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$handlers[&#39;EVENT_TEST_FIRST&#39;]=&#39;first&#39;;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;function first($p_event){&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;echo &#39;hello&#39;;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;every events handler receives some value for $p_event. This can be used to identify the event in cases where same function is used to handle many events. There are some other variables that comes as parameters to your function depending on the type of event you are handling.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b&gt;function config()&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;this function allows you to define any configuration option for your plugin. They are stored in the array returned by this function. Names of configuration options are given as keys and default values are given as values of the array.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;So lets add some configuration options to you plug-in.&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;function config(){&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$my_config=array();&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;$my_config[&#39;test_config&#39;]=&#39;hello&#39;;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;you can access these configuration options using plugin_config_get($config_name) function and modify those using plugin_config_set function.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;now your Test.php file is complete. You can do something more useful in your event handlers and announce others of something important that you&#39;ve done using events that you&#39;ve defined.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;So lets give it a test. Add a new file named first.php in to you pages directory. We are going to trigger our EVENT_TEST_FIRST event when some one access the page and see our first($p_event) function in action which is registered as an event handler for the triggered event.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Here is the code that goes inside the file.&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&amp;lt;?php&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;echo &#39;testing events &amp;lt;br/&amp;gt;&#39;;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;echo &#39;our event handler should print “hello” in the next ling &amp;lt;br/&amp;gt;&#39;;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;event_signal();&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;?&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;you can access the page using the url mentioned below, after you have installed the plugin. To install the plugin go to the manage page and then go to the manage plugin page by clicking the links in main page.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;mantis/plugin.php?page=Test/first&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;similarly you can test your configurations using  plugin_config_get and plugin_config_set function.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;You can add a config.php file to pages directory to allow users to  change configurations and you can process and set the values by forwarding submissions to another file in pages directory named config_update.php.  &lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;These are just to indicate the standard way of setting your configuration options.  You can always do those as you like, but I suppose  standard way is better.&lt;/div&gt;&lt;/div&gt;&lt;style type=&quot;text/css&quot;&gt;.code{ background:#A9A9A9; } &lt;/style&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/5647994212495916997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/05/mantis-plugin-development.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/5647994212495916997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/5647994212495916997'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/05/mantis-plugin-development.html' title='Mantis Plugin Development'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-3146526639526710126</id><published>2011-04-28T22:00:00.000-07:00</published><updated>2011-05-03T02:43:36.237-07:00</updated><title type='text'>Create tool-tips using CSS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;   &lt;br /&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;It&#39;s real fun for me to do this without using JavaScript. Of course this would mean that extra markup is in the code. If you want clean markup you can use JavaScript to generate markup on the fly, but CSS will stay the almost the same. So here is the HTML&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc; color: #274e13;&quot;&gt;&amp;lt;html&amp;gt; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc; color: #274e13;&quot;&gt;&amp;lt;head&amp;gt; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;tilte&amp;gt;&lt;/span&gt;&lt;/b&gt;Tool Tips&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&lt;b&gt;&amp;lt;/title&amp;gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&lt;b&gt;&amp;lt;link&lt;/b&gt;&lt;/span&gt; type=&quot;text/css&quot; href=&quot;tooltips.css&quot; rel=&quot;stylesheet&quot; &lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0c343d;&quot;&gt;/&amp;gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc; color: #274e13;&quot;&gt;&amp;lt;/head&amp;gt; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc; color: #274e13;&quot;&gt;&amp;lt;body&amp;gt; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;&lt;/b&gt;Example&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;/h1&amp;gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;div&amp;gt;&amp;lt;a&lt;/span&gt;&lt;/b&gt; href=&#39;#&#39; class=&#39;tooltip&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&#39;&amp;gt;&lt;/span&gt;&lt;/b&gt;tooltip&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;span&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&quot;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&lt;b&gt;&amp;gt;&lt;/b&gt;&lt;/span&gt;this is the awsome &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt; tool tip! this gives me great pleasure&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;/br&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&lt;b style=&quot;background-color: #cccccc;&quot;&gt;&amp;lt;/div&amp;gt; &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&lt;b style=&quot;background-color: #cccccc;&quot;&gt;&amp;lt;/body&amp;gt; &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&lt;b style=&quot;background-color: #cccccc;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;nothing fancy about this. Content inside the &amp;lt;span&amp;gt; is used as the tool-tip. I told u , extra markup!!.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;The trick in the CSS which enabled me to throw javascript away was the :hover psudo class. Postioning property is set to absolute and margin-left to a large minus value this will remove the content of the span out of the window. When mouse is hovering over the &amp;lt;a&amp;gt; element we change the property to bring them back to the screen. Daily hacks with -webkit and -moz is used to provide cross browser support.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;Here is the CSS&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;a{ &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; display: &lt;/span&gt;&lt;/b&gt;box; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; font-size&lt;/span&gt;&lt;/b&gt;: 20; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; padding:&lt;/span&gt;&lt;/b&gt; 2px 10px; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt;&lt;b&gt; border-radius:&lt;/b&gt;&lt;/span&gt; 5px; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; -moz-border-radius:&lt;/span&gt;&lt;/b&gt; 5px; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; -webkit-border-radius:&lt;/span&gt;&lt;/b&gt; 5px; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; background-image:&lt;/span&gt;&lt;/b&gt;-moz-linear-gradient(top,green,yellow); &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; background:&lt;/span&gt;&lt;/b&gt; -webkit-gradient(linear,left center,right center, &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt; from(green),to(yellow)); &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; outline:&lt;/span&gt;&lt;/b&gt; none; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; cursor:&lt;/span&gt;&lt;/b&gt; select;  &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; text-decoration:&lt;/span&gt;&lt;/b&gt; none; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt;&lt;b&gt; position:&lt;/b&gt;&lt;/span&gt; relative; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;} &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;a span { &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; font-size:&lt;/span&gt;&lt;/b&gt; 12px; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; margin-left:&lt;/span&gt;&lt;/b&gt; -999em; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; position:&lt;/span&gt;&lt;/b&gt; absolute; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;} &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;a:hover span { &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; border-radius:&lt;/span&gt;&lt;/b&gt; 5px 5px; -moz-border-radius: 5px;  &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; -webkit-border-radius:&lt;/span&gt;&lt;/b&gt; 5px;  &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; -moz-border-radius:&lt;/span&gt;&lt;/b&gt; 5px; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; box-shadow:&lt;/span&gt;&lt;/b&gt; 5px 5px 5px rgba(0, 0, 0, 0.1);  &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; -webkit-box-shadow:&lt;/span&gt;&lt;/b&gt;5px 5px rgba(0, 0, 0, 0.1);  &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; -moz-box-shadow: &lt;/span&gt;&lt;/b&gt;5px 5px rgba(0, 0, 0, 0.1); &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; font-family:&lt;/span&gt;&lt;/b&gt;sans-serif; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; color:&lt;/span&gt;&lt;/b&gt;white; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; position:&lt;/span&gt;&lt;/b&gt; absolute;  &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; left&lt;/span&gt;&lt;/b&gt;: 3em;  &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; top: &lt;/span&gt;&lt;/b&gt;3em; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; margin-left: &lt;/span&gt;&lt;/b&gt;0;  &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt;&lt;b&gt; width:&lt;/b&gt;&lt;/span&gt; 200px; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; background:&lt;/span&gt;&lt;/b&gt; #B22222;  &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt; border:&lt;/span&gt;&lt;/b&gt; 1px solid #FF8C00; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;border-radius and box-shadow are just to make it little fancy. First CSS block is to give the &amp;lt;a&amp;gt; element a button like appearance. Left and top properties are set to slightly adjust the positioning of the &amp;lt;span&amp;gt; relative to its containing &amp;lt;a&amp;gt; element. In simple terms to move it little left and down.&lt;br /&gt;Here are some other related post&lt;br /&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/04/how-to-style-html-elements-to-give-them.html&quot;&gt;http://jayaprabath.blogspot.com/2011/04/how-to-style-html-elements-to-give-them.html&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/04/how-to-create-drop-down-menu-only-using.html&quot;&gt;http://jayaprabath.blogspot.com/2011/04/how-to-create-drop-down-menu-only-using.html&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/04/css-background-property-reference.html&quot;&gt;http://jayaprabath.blogspot.com/2011/04/css-background-property-reference.html&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/04/how-to-provide-cross-browser-support.html&quot;&gt;http://jayaprabath.blogspot.com/2011/04/how-to-provide-cross-browser-support.html&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/3146526639526710126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/04/create-tool-tips-using-css.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/3146526639526710126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/3146526639526710126'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/04/create-tool-tips-using-css.html' title='Create tool-tips using CSS'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-3726010721530309598</id><published>2011-04-18T02:28:00.000-07:00</published><updated>2011-04-25T03:58:15.306-07:00</updated><title type='text'>How to Style HTML Elements to Give Them a Button Like Appearance</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;   &lt;br /&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&amp;nbsp;This can easily be done using basic css properties. Here I&#39;m going to style a div element. Here is the code.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;html&amp;gt;  &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;head&amp;gt;  &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;style&lt;/span&gt; type=&quot;text/css&quot; rel=&quot;stylesheet&quot;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;gt;  &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #20124d;&quot;&gt;.button-div&lt;/span&gt;{  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;/*set geometric properties of the div*/  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple;&quot;&gt;width:&lt;/span&gt; 100px;  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple;&quot;&gt;height:&lt;/span&gt; 20px;  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple;&quot;&gt;padding:&lt;/span&gt; 3px;  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple;&quot;&gt;border:&lt;/span&gt; 2px solid #ccc;  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;-webkit-border-radius: 12px;  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;/*style the text*/  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple;&quot;&gt;text-align:&lt;/span&gt;center;  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple;&quot;&gt;font-family&lt;/span&gt;:Helvetica, sans-serif;  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple;&quot;&gt;font-weight:&lt;/span&gt;bold;  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple;&quot;&gt;color:&lt;/span&gt; white;  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;/*style the div*/  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple;&quot;&gt;background-image:&lt;/span&gt; -webkit-gradient(linear, 0% 0%, 0% 90%, from(rgba(105, 105, 105, 0.8)), to(rgba(128, 0, 0, .9)));  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple;&quot;&gt;border-color:&lt;/span&gt;brown;  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;}  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;/style&amp;gt;  &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;/head&amp;gt;  &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;body&amp;gt;  &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;div&lt;/span&gt; class=&quot;button-div&quot;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;Button  &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;/div&amp;gt;  &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;/body&amp;gt;  &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;This work really nicely on Chrome. You might must make any necessary modifications in order to get the same appearance in other browsers such as firefox. I&#39;m not sure weather firefox support gradient but you can certainly get the rounded corners using -moz-border-radius . Hope this will help some one out there.&lt;br /&gt;&lt;a href=&#39;https://www.alertpay.com/?zNjt5CUjkEKjfmTzUnf3jw%3d%3d&#39;&gt;&lt;img src=&#39;http://www.alertpay.com/banners/ban_03.gif&#39; border=&#39;0&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=jayaprabath-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0596527330&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/3726010721530309598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/04/how-to-style-html-elements-to-give-them.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/3726010721530309598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/3726010721530309598'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/04/how-to-style-html-elements-to-give-them.html' title='How to Style HTML Elements to Give Them a Button Like Appearance'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3927340974514228231.post-4612734962221658900</id><published>2011-04-11T03:12:00.000-07:00</published><updated>2011-11-18T02:04:04.155-08:00</updated><title type='text'>How to provide cross browser support for the border-radius CSS property</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;iframe src=&quot;http://rcm.amazon.com/e/cm?t=jayaprabath-20&amp;o=1&amp;p=8&amp;l=bpl&amp;asins=059610197X&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr&quot; style=&quot;padding-top: 5px; width: 131px; height: 245px; padding-right: 10px;&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; align=&quot;left&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt; &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;   &lt;br /&gt;&lt;div align=&quot;CENTER&quot; style=&quot;margin-bottom: 0in;&quot;&gt;The border-radius property is not well supported by mayn browsers. However we can use proprietary properties provided by Firefox an Webkit. But there naming is inconsistent. Following shows border-radius equivalence for CSS, Firefox and Webkit.&lt;br /&gt;IF you are looking for IE hacks look hrere&lt;br /&gt;&lt;a href=&quot;http://jayaprabath.blogspot.com/2011/11/rounded-corners-for-ie-using-htc-files.html&quot;&gt;http://jayaprabath.blogspot.com/2011/11/rounded-corners-for-ie-using-htc-files.html&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;table cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;85*&quot;&gt;&lt;/col&gt;  &lt;col width=&quot;85*&quot;&gt;&lt;/col&gt;  &lt;col width=&quot;85*&quot;&gt;&lt;/col&gt;  &lt;/colgroup&gt;&lt;tbody&gt;&lt;tr valign=&quot;TOP&quot;&gt;   &lt;td style=&quot;border-color: rgb(0, 0, 0) -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: solid none solid solid; border-width: 1px medium 1px 1px; padding: 0.04in 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;CSS3&lt;/td&gt;   &lt;td style=&quot;border-color: rgb(0, 0, 0) -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: solid none solid solid; border-width: 1px medium 1px 1px; padding: 0.04in 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;Firefox&lt;/td&gt;   &lt;td style=&quot;border: 1px solid rgb(0, 0, 0); padding: 0.04in;&quot; width=&quot;33%&quot;&gt;Webkit&lt;/td&gt;  &lt;/tr&gt;&lt;tr valign=&quot;TOP&quot;&gt;   &lt;td style=&quot;border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none none solid solid; border-width: medium medium 1px 1px; padding: 0in 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;border-radius     &lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none none solid solid; border-width: medium medium 1px 1px; padding: 0in 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;-moz-border-radius     &lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none solid solid; border-width: medium 1px 1px; padding: 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;-webkit-border-radius     &lt;/td&gt;  &lt;/tr&gt;&lt;tr valign=&quot;TOP&quot;&gt;   &lt;td style=&quot;border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none none solid solid; border-width: medium medium 1px 1px; padding: 0in 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;border-top-left-radius     &lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none none solid solid; border-width: medium medium 1px 1px; padding: 0in 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;-moz-border-radius-topleft     &lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none solid solid; border-width: medium 1px 1px; padding: 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;-webkit-border-     &lt;br /&gt;top-left-radius     &lt;/td&gt;  &lt;/tr&gt;&lt;tr valign=&quot;TOP&quot;&gt;   &lt;td style=&quot;border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none none solid solid; border-width: medium medium 1px 1px; padding: 0in 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;border-top-right-radius     &lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none none solid solid; border-width: medium medium 1px 1px; padding: 0in 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;-moz-border-     &lt;br /&gt;radius-topright     &lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none solid solid; border-width: medium 1px 1px; padding: 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;-webkit-border-     &lt;br /&gt;top-right-radius     &lt;/td&gt;  &lt;/tr&gt;&lt;tr valign=&quot;TOP&quot;&gt;   &lt;td style=&quot;border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none none solid solid; border-width: medium medium 1px 1px; padding: 0in 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;border- bottom-right-radius     &lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none none solid solid; border-width: medium medium 1px 1px; padding: 0in 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;-moz-border-     &lt;br /&gt;radius-bottomright     &lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none solid solid; border-width: medium 1px 1px; padding: 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;-webkit-border-     &lt;br /&gt;bottom-right-radius     &lt;/td&gt;  &lt;/tr&gt;&lt;tr valign=&quot;TOP&quot;&gt;   &lt;td style=&quot;border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none none solid solid; border-width: medium medium 1px 1px; padding: 0in 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;border- bottom-left-radius     &lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none none solid solid; border-width: medium medium 1px 1px; padding: 0in 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;-moz-border-     &lt;br /&gt;radius-bottomleft     &lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none solid solid; border-width: medium 1px 1px; padding: 0in 0.04in 0.04in;&quot; width=&quot;33%&quot;&gt;-webkit-border-     &lt;br /&gt;bottom-left-radius     &lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=jayaprabath-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=059610197X&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jayaprabath.blogspot.com/feeds/4612734962221658900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jayaprabath.blogspot.com/2011/04/how-to-provide-cross-browser-support.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/4612734962221658900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3927340974514228231/posts/default/4612734962221658900'/><link rel='alternate' type='text/html' href='http://jayaprabath.blogspot.com/2011/04/how-to-provide-cross-browser-support.html' title='How to provide cross browser support for the border-radius CSS property'/><author><name>Jayaprabath</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http://1.bp.blogspot.com/-uwAhU2CAGJY/TaXPhaOsfII/AAAAAAAAABc/t7WtmpKN_pc/s122/173354_100000093873640_71362_n.jpg&amp;container=blogger&amp;gadget=a&amp;rewriteMime=image/*'/></author><thr:total>0</thr:total></entry></feed>