<?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-536689998505478967</id><updated>2025-09-16T01:21:05.532-07:00</updated><category term="C#"/><category term="Mobile OS"/><category term="AJAX"/><category term="Android"/><category term="IT Companies in Ahmedabad"/><category term="Java Script"/><category term="Top OS"/><category term="ASP"/><category term="Applying CSS to Asp.net Application"/><category term="How to Build a Website"/><category term="Magento"/><category term="Marquee Codes"/><category term="The Microsoft Dynamics CRM"/><category term="marquee"/><category term="php"/><category term="popup"/><category term="rigth to left move"/><category term="15 top web design and development trends for 2012"/><category term="AJAX ModalPopup"/><category term="AJAX loader"/><category term="ASP loader"/><category term="ASP.NET AJAX ModalPopup in an ASP.NET 3.5 application"/><category term="ASP.NET MVC Overview"/><category term="Add a Categories Section to a Blogger Blog (Blogspot Blog)"/><category term="Auto Emails"/><category term="Browser"/><category term="CMS"/><category term="CMS website"/><category term="Cars"/><category term="Coffee Script"/><category term="Contents Management System"/><category term="Eclipse"/><category term="Email"/><category term="Gandhinagar"/><category term="How to Improve Bolgger"/><category term="PDF"/><category term="PayPal"/><category term="Query"/><category term="SP"/><category term="SQL"/><category term="Scripts"/><category term="Slide in text"/><category term="Sql Server"/><category term="Stored Procedure"/><category term="Third Party API"/><category term="UpdateProgress"/><category term="Validations"/><category term="Web Service In ASP.NET"/><category term="advance java script"/><category term="asmx"/><category term="iPhone"/><category term="iPhone - Visual Studio"/><category term="java"/><category term="jquery"/><category term="new script"/><category term="open source"/><category term="progress bar"/><category term="render Low-level text"/><category term="right to left move"/><category term="scrolling text"/><category term="website design"/><category term="Responsive Design"/><title type='text'>Web Developers</title><subtitle type='html'>Knowledge Unlimited</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>41</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-1743056135897601156</id><published>2015-06-11T04:19:00.002-07:00</published><updated>2015-06-11T04:19:18.549-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="render Low-level text"/><title type='text'>render Low-level text </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;text&quot; id=&quot;contentdiv&quot; itemprop=&quot;articleBody&quot; style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 0px; padding: 10px 0px 0px;&quot;&gt;
&lt;ul class=&quot;download&quot; style=&quot;border: 0px; margin: 25px 0px 10px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;background: url(http://dj9okeyxktdvd.cloudfront.net/images/download24.png) 0% 50% no-repeat scroll transparent; border: 0px; font-weight: bold; list-style-type: none; margin: 0px 0px 6px -40px; padding: 0px 0px 1px 30px; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/KB/iPhone/Glyph/Glyph.zip&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Download source code - 19.4 KB&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;img complete=&quot;true&quot; height=&quot;475&quot; src=&quot;http://www.codeproject.com/KB/iPhone/glyph/j0ot.png&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; width=&quot;250&quot; /&gt;&lt;br /&gt;
&lt;h2 style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Introduction&lt;/h2&gt;
I needed to position individual text characters in my app, and it was more involved than I thought it would be. So I&#39;m chalking it up for posterity.&lt;br /&gt;
But I want to zoom out a bit. What&#39;s really important isn&#39;t knowing how to do a particular trick. It is your general approach to the generic problem of assimilating and implementing new technology.&lt;br /&gt;
First thing I do nowadays when I want to add something new to my app is start with a clean slate and get it working on that. It&#39;s like working of a clean desk on a Monday morning, or keeping a clean tool shed.&lt;br /&gt;
And I&#39;ve even made my own clean slate --&amp;nbsp;&lt;a href=&quot;http://www.codeproject.com/KB/iPhone/CreatingXcodeProject.aspx&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;CreatingXcodeProject.aspx&lt;/a&gt;. I ended up brushing up the template a bit -- you can download the new one here:&amp;nbsp;&lt;a href=&quot;http://www.codeproject.com/KB/iPhone/1prepgroundiphonedev.aspx&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;1prepgroundiphonedev.aspx&lt;/a&gt;.&lt;br /&gt;
The modifications I made are:&lt;br /&gt;
&lt;ul style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Tidying up the view controller&#39;s files so that&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;iVar&lt;/code&gt;s don&#39;t share the same name with their getter methods (I explain why this is a bad practice in my introductory article:&amp;nbsp;&lt;a href=&quot;http://www.codeproject.com/KB/iPhone/1prepgroundiphonedev.aspx&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;1prepgroundiphonedev.aspx&lt;/a&gt;).&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Improving the test picture, and pulling it out as a method. It&#39;s a really useful method -- practically every time I am creating a bitmap, or positioning a view within a view, or sticking a layer on a layer, and I&#39;m using transforms, I never get it right the first time -- so I need to know how far out I am. With my original test picture, it was sometimes completely off the screen, which was no help. So this one fires out radial rays from 0,0 to some stupid distance like 10,000; I have used thin wedges -- just drawing lines is messier as you have to specify a line thickness, and as you don&#39;t necessarily have any idea how many pixels represent one unit, you can&#39;t just say&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;CGContextSetStrokeWidth(X, 1.0)&lt;/code&gt;, as that might be too small to even be seen, or so big that it fills the screen.&lt;/li&gt;
&lt;/ul&gt;
Anyway -- with this scheme, you can just look at what&#39;s on your screen and infer the origin. Also, the colour goes from red to blue as we progress counterclockwise from the positive X axis. So we can infer orientation. And the white circle on the grey background gives us bounds. Origin, orientation, bounds. Sorted!&lt;br /&gt;
I put in a function that transforms a context&#39;s coordinate system, giving a Cartesian coordinate system with 0, 0 in the centre, and 1, 1 in the top right corner. Like it should be!&lt;br /&gt;
&lt;img complete=&quot;true&quot; height=&quot;472&quot; src=&quot;http://www.codeproject.com/KB/iPhone/glyph/Template.png&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; width=&quot;250&quot; /&gt;&lt;br /&gt;
So, I create a new project using this template, and I can just put code in the view&#39;s&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;drawRect&lt;/code&gt;&amp;nbsp;-- the coordinate system is set up as described above.&lt;br /&gt;
Getting text onto the screen is no problem -- I can just set:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain803304&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide803304&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre803304&quot; lang=&quot;C++&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;[self drawTestShapeToContext: X
      inRect: wholeRect
      withText: YES ];&lt;/pre&gt;
… and the template will stick some text on the screen. This is how it does it:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain576634&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide576634&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre576634&quot; lang=&quot;C++&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;&amp;lt;/span /&amp;gt; (showText)
{
   CGContextSaveGState(X);
   CGAffineTransform tmX = CGContextGetTextMatrix(X);
   
   &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;char&lt;/span&gt;&amp;lt;/span /&amp;gt;* text = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt;Hello World!&quot;&lt;/span&gt;&amp;lt;/span /&amp;gt;;
   CGContextSelectFont(X, &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt;Helvetica Bold&quot;&lt;/span&gt;&amp;lt;/span /&amp;gt;, 
                       rect.size.width / &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;13&lt;/span&gt;&amp;lt;/span /&amp;gt;.&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;, kCGEncodingMacRoman);
   CGContextSetTextDrawingMode(X, kCGTextFill);
   CGContextSetRGBFillColor(X, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;.1f, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;.3f, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;.8f,  &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&amp;lt;/span /&amp;gt;.0f);         
   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt;CGAffineTransform xform = CGAffineTransformMake(
&lt;/span&gt;&amp;lt;/span /&amp;gt;   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt;             1.0f,  0.0f,
&lt;/span&gt;&amp;lt;/span /&amp;gt;   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt;             0.0f, -1.0f,
&lt;/span&gt;&amp;lt;/span /&amp;gt;   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt;             0.0f,  0.0f   );
&lt;/span&gt;&amp;lt;/span /&amp;gt;   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt;CGContextSetTextMatrix(X, xform);    
&lt;/span&gt;&amp;lt;/span /&amp;gt;   CGContextShowTextAtPoint(X, centre.x, centre.y, text, strlen(text));
   
   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt;  Watch out! TextMatrix doesn&#39;t get restored
&lt;/span&gt;&amp;lt;/span /&amp;gt;   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt;  when you restore the graphics context!
&lt;/span&gt;&amp;lt;/span /&amp;gt;   CGContextRestoreGState(X);
   CGContextSetTextMatrix(X, tmX);
}&lt;/pre&gt;
(Commented out transform because I have flipped the coordinate system myself -- if you didn&#39;t do that, the text would appear upside down).&lt;br /&gt;
But this is no use to me. I need finer grained control. I need to know the bounds of each glyph. What I really want is a&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;CGPath&lt;/code&gt;&amp;nbsp;for each glyph. If you don&#39;t know about&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;CGPath&lt;/code&gt;s, think PDF. Representing glyphs (and everything else where possible) as a sequence of geometrical moves;&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;MoveTo(100,100)&lt;/code&gt;&amp;nbsp;then draws an arc centered on (50,50), radius 50 from theta = pi / 2 to pi / 2 … etc., so that the result is device independent.&lt;br /&gt;
I generally start out clicking through Apple&#39;s help.&lt;br /&gt;
&lt;h2 style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Part one -- the grizzly dance with Apple&#39;s help system&lt;/h2&gt;
This next section is about using the Apple help. It&#39;s not pretty. If you want to skip straight to the solution, scroll down.&lt;br /&gt;
Now, what&#39;s the next step? Well, it would be wonderful if I could just Alt+ double-click on&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;CGContextShowTextAtPoint&lt;/code&gt;&amp;nbsp;and have the help say &#39;Sorry, core graphics doesn&#39;t have any function for what you want -- what you want is core text&#39;. And then I click on &#39;core text&#39; and get the answer. But the Apple help is not so smart.&lt;br /&gt;
This is a horrible experience every time for me. Even finding something again that I was looking at yesterday can be a mission.&lt;br /&gt;
Help -&amp;gt; Developer documentation -&amp;gt; Home icon -&amp;gt; iOS 4.0 developer library.&lt;br /&gt;
I can see &#39;Core Text&#39; on the left pane if I scroll down. So I click on that. And I don&#39;t even know what core text is, but it sounds like the right thing.&lt;br /&gt;
Now I can see &#39;Core text programming guide&#39; coming up on the right-hand panel, so I click on that. Now I look at the status bar, and it says:&lt;br /&gt;
iPhone OS 4.0 library -&amp;gt; Data management -&amp;gt; Strings, text, &amp;amp; fonts -&amp;gt; Core text programming guide -&amp;gt; Introduction&lt;br /&gt;
So I double click on &#39;strings, text &amp;amp; fonts&#39; (I don&#39;t want to read the core text guide without first being aware of all of the other options): &#39;no documents found&#39;. Great -- my help is broken. So I will have to pick it up from this point online.&lt;br /&gt;
Throw &#39;core text programming guide&#39; into Google and get the same page up.&lt;br /&gt;
Looking at its status bar, it is completely inconsistent with what my local help was saying. Here I get:&lt;br /&gt;
IPhone Dev centre -&amp;gt; iOS reference library -&amp;gt; Framework -&amp;gt; Media layer -&amp;gt; Core text&lt;br /&gt;
Which seems to be missing the level at which the different available technologies are differentiated, which is what I&#39;m looking for.&lt;br /&gt;
There is also a warning to say that these pages are not up-to-date with iOS 3.2. Well, at the time of writing, the current version of iOS is 4.0. So even the warning telling us that the information is out of date is itself out of date.&lt;br /&gt;
Anyway, I can find it just by clicking the link in the introduction paragraph, which takes me here:&lt;br /&gt;
&lt;ul style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://developer.apple.com/library/ios/#documentation/StringsTextFonts/Conceptual/CoreText_Programming/Overview/Overview.html#//apple_ref/doc/uid/TP40005533-CH3-SW2&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Mac OSX text technologies&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
Great! Finally we have got to the juicy stuff.&lt;br /&gt;
I&#39;m not irately trying to bash Apple here. I&#39;m just pointing out that behind your sleek metallic black rectangle of Zen perfection is a lot of people scrabbling hard to collectively get it together. The help misleadingly carries the same gloss veneer, giving you the impression that it has been put together by some mastermind, and you, the common idiot, are thrashing around as a result of your own stupidity.&lt;br /&gt;
It&#39;s important to get some perspective. You need to start at ground zero, a.k.a. reality. And reality is that the help is a mess. Maybe this is a good thing -- maybe it means they are putting their focus on good code. I would rather good code badly documented than vice versa. Most likely their best brains are not wasted on patching up the help system.&lt;br /&gt;
Anyway, let&#39;s look at that link. How far can you get before everything turns into &#39;blah de blah blah BLAH&#39;?&lt;br /&gt;
Technical documentation and instruction manuals always sap my will to live. Why does the world conspire thus!&lt;br /&gt;
Sure, it all makes perfect sense -- if you understand it already. But to a newcomer, it is a nightmare. Everything is being presented in the wrong order. The problem is, these help files are written by people who have been so exposed to the material that they have forgotten what it is like to learn it -- they have forgotten which questions come first.&lt;br /&gt;
I want to dive into some code. This is all too wishy-washy. I want to see some code! As do you probably…&lt;br /&gt;
Okay, to cut a long story short, I eventually found some Apple sample code -- through a mix of Googling &#39;core-text sample&#39; and asking on IRC. Alt + double-clicking on various functions in this sample brought up help pages that link to a couple of other samples.&lt;br /&gt;
I like to store links like this at the top of my project:&lt;br /&gt;
&lt;ul style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://cocoawithlove.com/2009/09/creating-alpha-masks-from-text-on.html&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;http://cocoawithlove.com/2009/09/creating-alpha-masks-from-text-on.html&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://developer.apple.com/library/ios/#documentation/UIKit/Reference/NSString_UIKit_Additions/Reference/Reference.html&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;http://developer.apple.com/library/ios/#documentation/UIKit/ Reference/NSString_UIKit_Additions/Reference/Reference.html&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://developer.apple.com/library/mac/#samplecode/CoreTextArcCocoa/Introduction/Intro.html&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;http://developer.apple.com/library/mac/#samplecode/CoreTextArcCocoa/Introduction/ Intro.html&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://developer.apple.com/library/mac/#samplecode/CoreAnimationText/Introduction/Intro.html&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;http://developer.apple.com/library/mac/#samplecode/CoreAnimationText/Introduction/ Intro.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
This way you can open them straight out of Xcode.&lt;br /&gt;
OK, that is all the sample code the Internet is providing.&lt;br /&gt;
I needed some help on IRC to convert&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;CoreTextArcCocoa&lt;/code&gt;&amp;nbsp;from OSX to iOS. Although it does what I need (wrapping text around a circle), the way it is done is not at all transparent. So I just kept gutting it out, moving auxiliary functions into the main body, trimming and pruning until I had the minimum needed to put a glyph on the screen.&lt;br /&gt;
&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;CoreAnimationText&lt;/code&gt;&amp;nbsp;is very nicely written -- and contains one line that is very interesting:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain853392&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide853392&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre853392&quot; lang=&quot;C++&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;path = CTFontCreatePathForGlyph(font, glyph, &lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;NULL&lt;/strong&gt;);&lt;/pre&gt;
Wonderful! Let&#39;s stick together!&lt;br /&gt;
&lt;h2 style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Part two: How to put a glyph on the screen&lt;/h2&gt;
Start with a C-style string, something like &#39;hello world&#39;.&lt;br /&gt;
Now, an attributed string is something like &#39;hello world&#39; with &#39;hello&#39; in Times new Roman 14 point Italic, and &#39; world&#39; in Courier underlined. Basically rich text, remember&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.RTF&lt;/em&gt;?&amp;nbsp;Microsoft WordPad?&lt;br /&gt;
Okay, suppose for now you have your&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;attrString&lt;/code&gt;&amp;nbsp;(we will discuss how to create it out of a string later). Here is how to render it glyph by glyph:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain569321&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide569321&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span id=&quot;preShrink569321&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Shrink&lt;/span&gt;&amp;nbsp;&lt;img id=&quot;preimg569321&quot; src=&quot;http://www.codeproject.com/images/arrow-up-16.png&quot; style=&quot;-webkit-transition: opacity 0.1s linear; border: 0px; height: 16px; margin: 0px; max-width: 100%; opacity: 0.5; overflow: auto; padding: 0px; transition: opacity 0.1s linear; vertical-align: text-top; width: 16px;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre569321&quot; lang=&quot;C++&quot; processed=&quot;true&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;CTLineRef line = CTLineCreateWithAttributedString( attStr ) ;
         
CFArrayRef runArray = CTLineGetGlyphRuns(line);

&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; for each RUN
&lt;/span&gt;&amp;lt;/span /&amp;gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;for&lt;/span&gt;&amp;lt;/span /&amp;gt; (CFIndex runIndex = &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;; runIndex &amp;lt;&amp;lt;/span /&amp;gt; CFArrayGetCount(runArray); runIndex++)
{
   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; Get FONT for this run
&lt;/span&gt;&amp;lt;/span /&amp;gt;   CTRunRef run = (CTRunRef)CFArrayGetValueAtIndex(runArray, runIndex);
   CTFontRef runFont = 
     CFDictionaryGetValue(CTRunGetAttributes(run), kCTFontAttributeName);
   
   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; for each GLYPH in run
&lt;/span&gt;&amp;lt;/span /&amp;gt;   &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;for&lt;/span&gt;&amp;lt;/span /&amp;gt; (CFIndex runGlyphIndex = &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;; 
        runGlyphIndex &amp;lt;&amp;lt;/span /&amp;gt; CTRunGetGlyphCount(run); runGlyphIndex++) 
   {
        &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; get Glyph &amp;amp; Glyph-data
&lt;/span&gt;&amp;lt;/span /&amp;gt;        CFRange thisGlyphRange = CFRangeMake(runGlyphIndex, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&amp;lt;/span /&amp;gt;);
        CGGlyph glyph;
        CGPoint position;
        CTRunGetGlyphs(run, thisGlyphRange, &amp;amp;glyph);
        CTRunGetPositions(run, thisGlyphRange, &amp;amp;position);

        &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; Render it
&lt;/span&gt;&amp;lt;/span /&amp;gt;        {
             CGFontRef cgFont = CTFontCopyGraphicsFont(runFont, NULL);
                 
             CGAffineTransform textMatrix = CTRunGetTextMatrix(run);
             CGContextSetTextMatrix(X, textMatrix);

             CGContextSetFont(X, cgFont);
             CGContextSetFontSize(X, CTFontGetSize(runFont));
             CGContextSetRGBFillColor(X, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&amp;lt;/span /&amp;gt;.&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&amp;lt;/span /&amp;gt;.&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&amp;lt;/span /&amp;gt;.&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;.&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;5&lt;/span&gt;&amp;lt;/span /&amp;gt;);
             CGContextShowGlyphsAtPositions(X, &amp;amp;glyph, &amp;amp;position, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&amp;lt;/span /&amp;gt;);
             CFRelease(cgFont);
        }
                            
        &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; Get PATH of outline &amp;amp; stroke outline
&lt;/span&gt;&amp;lt;/span /&amp;gt;        {
             CGPathRef path = CTFontCreatePathForGlyph(runFont, glyph, NULL);
             CGMutablePathRef pT = CGPathCreateMutable();
             CGAffineTransform T = 
               CGAffineTransformMakeTranslation(position.x, position.y);
             CGPathAddPath(pT, &amp;amp;T, path);
             
             CGContextAddPath(X, pT);
             CGContextSetStrokeColorWithColor(X, [UIColor yellowColor].CGColor);
             CGContextSetLineWidth(X, atLeastOnePixel);
             CGContextStrokePath(X);
             CGPathRelease(path);
             CGPathRelease(pT);
        }
        
        &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; draw blue bounding box
&lt;/span&gt;&amp;lt;/span /&amp;gt;        {
             CGRect glyphRect = CTRunGetImageBounds(run, X, thisGlyphRange);
             
             CGContextSetLineWidth(X, atLeastOnePixel);
             CGContextSetStrokeColorWithColor(X, [UIColor blueColor ].CGColor);
             CGContextStrokeRect(X, glyphRect);
        }
        
        &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; release things
&lt;/span&gt;&amp;lt;/span /&amp;gt;   }
}
CFRelease(line);&lt;/pre&gt;
Say in our previous example, &#39;hello world&#39; was our attributed string. We convert it into a&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;CTLine&lt;/code&gt;. There will be a function for printing out a&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;CTLine&lt;/code&gt;, but for now, we keep digging.&lt;br /&gt;
We find it comprises two&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;CTRun&lt;/code&gt;-s. &#39;hello&#39; and &#39; world&#39; Obviously, a run is a wodge of text sharing the same attributes.&lt;br /&gt;
So for each run, we go through -- glyph by glyph.&lt;br /&gt;
For each glyph, we get its&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;CPath&lt;/code&gt;. We could have a ton of fun with that.&amp;nbsp;But let&#39;s stay minimal for now and just stroke the outline yellow.&lt;br /&gt;
Now that we have dug to the bottom, we can see a host of higher-level functions in a new light.&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain811503&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide811503&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre811503&quot; lang=&quot;C++&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; Render it
&lt;/span&gt;&amp;lt;/span /&amp;gt;CGFontRef cgFont = CTFontCopyGraphicsFont(runFont, NULL);
 
CGContextSetFont(X, cgFont);
CGContextSetFontSize(X, CTFontGetSize(runFont));
CGContextSetRGBFillColor(X, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&amp;lt;/span /&amp;gt;.&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&amp;lt;/span /&amp;gt;.&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&amp;lt;/span /&amp;gt;.&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;.&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;5&lt;/span&gt;&amp;lt;/span /&amp;gt;);
CGContextShowGlyphsAtPositions(X, &amp;amp;glyph, &amp;amp;position, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&amp;lt;/span /&amp;gt;);&lt;/pre&gt;
This is just filling the paths, isn&#39;t it?&lt;br /&gt;
And this obviously just gets the bounding box for the CG path:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain373968&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide373968&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre373968&quot; lang=&quot;C++&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;CGRect glyphRect = CTRunGetImageBounds(run, X, thisGlyphRange);&lt;/pre&gt;
The one remaining piece of the puzzle: how to create the attributed string in the first place.&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain765375&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide765375&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span id=&quot;preShrink765375&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Shrink&lt;/span&gt;&amp;nbsp;&lt;img id=&quot;preimg765375&quot; src=&quot;http://www.codeproject.com/images/arrow-up-16.png&quot; style=&quot;-webkit-transition: opacity 0.1s linear; border: 0px; height: 16px; margin: 0px; max-width: 100%; opacity: 0.5; overflow: auto; padding: 0px; transition: opacity 0.1s linear; vertical-align: text-top; width: 16px;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre765375&quot; lang=&quot;C++&quot; processed=&quot;true&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-preprocessor&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;#define&lt;/span&gt;&amp;lt;/span /&amp;gt; FONT &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;@&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt;HelveticaNeue-Bold&quot;&lt;/span&gt;&amp;lt;/span /&amp;gt;
&lt;span class=&quot;code-preprocessor&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;#define&lt;/span&gt;&amp;lt;/span /&amp;gt; FONTSIZE &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;.&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;7&lt;/span&gt;&amp;lt;/span /&amp;gt;
&lt;span class=&quot;code-preprocessor&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;#define&lt;/span&gt;&amp;lt;/span /&amp;gt; TEXT &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;@&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt;jkl&quot;&lt;/span&gt;&amp;lt;/span /&amp;gt;
:
:
NSString* string = TEXT;

&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; A string is something like: &#39;hello world!&#39;
&lt;/span&gt;&amp;lt;/span /&amp;gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; An attributed string is something like &#39;hello world!&#39; with &#39;Hello&#39; in 
&lt;/span&gt;&amp;lt;/span /&amp;gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; Times new Roman, 14pt and &#39;world&#39; in this is the Courier Bold.
&lt;/span&gt;&amp;lt;/span /&amp;gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; An RTF file is basically an attributed string.
&lt;/span&gt;&amp;lt;/span /&amp;gt;
CFAttributedStringRef attStr;
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; get attributed-string from string
&lt;/span&gt;&amp;lt;/span /&amp;gt;{
   UIFont* font = [UIFont fontWithName:FONT size:FONTSIZE];
   
   CTFontRef ctFont = CTFontCreateWithName((CFStringRef)font.fontName, 
                      font.pointSize, 
                      NULL);
   
   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; In our example we just set the font,
&lt;/span&gt;&amp;lt;/span /&amp;gt;   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; and specify &#39; only use ligatures when essential &#39;.
&lt;/span&gt;&amp;lt;/span /&amp;gt;   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; Ligatures: on some fonts &#39;fit&#39; comes out
&lt;/span&gt;&amp;lt;/span /&amp;gt;   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; as only 2 glyphs; &#39;fi&#39;+&#39;t&#39;, because if &#39;f&#39; and
&lt;/span&gt;&amp;lt;/span /&amp;gt;   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; &#39;i&#39; are drawn separately, they will tend
&lt;/span&gt;&amp;lt;/span /&amp;gt;   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; to be close together and messy. &#39;fi&#39; is a ligature
&lt;/span&gt;&amp;lt;/span /&amp;gt;   NSNumber* NS_0 = [NSNumber numberWithInteger:&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&amp;lt;/span /&amp;gt;];
   NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:
       (id) ctFont, kCTFontAttributeName, &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; NSFontAttributeName
&lt;/span&gt;&amp;lt;/span /&amp;gt;       (id) NS_0, kCTLigatureAttributeName,  &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/span /&amp;gt; NSLigatureAttributeName
&lt;/span&gt;&amp;lt;/span /&amp;gt;       nil];
   assert(attributes != nil);
   
   NSAttributedString* ns_attrString = [[NSAttributedString alloc] initWithString:string
                                         attributes:attributes];
   [ns_attrString autorelease];
   
   attStr = (CFAttributedStringRef) ns_attrString; 
}&lt;/pre&gt;
As I am including all of the developer boilerplate in this article, I will point out that we are not quite done. The next step, once we have something drawing on the screen, is to test it. Try different fonts and sizes. Try drawing upside down. Try drawing from a point other than (0,0). Kick and punch it a little -- toughen it up. In doing this, I discovered that restoring the graphics context doesn&#39;t restore the text matrix. Which made me add a couple of crucial lines to my code:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain644668&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide644668&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre644668&quot; lang=&quot;C++&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;CGAffineTransform textMatrix = CTRunGetTextMatrix(run);
CGContextSetTextMatrix(X, textMatrix);&lt;/pre&gt;
Then --who knows? Depends on what you want. Maybe extract the functionality you need into methods and stick them in a new source file, so you can just drag it into your project.&lt;br /&gt;
P.S.: If you&#39;re trying this at home -- you need to add the core text framework and the following line to your&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.PCH&lt;/em&gt;:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain309928&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide309928&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre309928&quot; lang=&quot;C++&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-preprocessor&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;#import&lt;/span&gt;&amp;lt;/span /&amp;gt; &amp;lt;&amp;lt;/span /&amp;gt;CoreText/CoreText.h&amp;gt;&amp;lt;/span /&amp;gt;&lt;/pre&gt;
If anyone has useful tips for speeding up the research phase, please share!&amp;nbsp;It took me hours to find the sample projects. I should have probably gone to the Apple website straight away -- there is an easy to find page listing all of their code examples: hmm... just checked, and it is junk:&lt;br /&gt;
&lt;img complete=&quot;true&quot; height=&quot;438&quot; src=&quot;http://www.codeproject.com/KB/iPhone/glyph/DevSite.png&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; width=&quot;600&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/1743056135897601156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2015/06/render-low-level-text.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/1743056135897601156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/1743056135897601156'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2015/06/render-low-level-text.html' title='render Low-level text '/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-3387506900384706763</id><published>2015-06-11T04:16:00.002-07:00</published><updated>2015-06-11T04:16:41.129-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iPhone"/><category scheme="http://www.blogger.com/atom/ns#" term="iPhone - Visual Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="Mobile OS"/><title type='text'> iPhone - Visual Studio debug console</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;text&quot; id=&quot;contentdiv&quot; itemprop=&quot;articleBody&quot; style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 0px; padding: 10px 0px 0px;&quot;&gt;
&lt;ul class=&quot;download&quot; style=&quot;border: 0px; margin: 25px 0px 10px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;background: url(http://dj9okeyxktdvd.cloudfront.net/images/download24.png) 0% 50% no-repeat scroll transparent; border: 0px; font-weight: bold; list-style-type: none; margin: 0px 0px 6px -40px; padding: 0px 0px 1px 30px; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/KB/iPhone/423158/Html5DebugConsole.zip&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Download Html5DebugConsole.zip - 90.6 KB&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;&lt;img height=&quot;184&quot; src=&quot;http://www.codeproject.com/KB/iPhone/423158/wpf_test.png&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; width=&quot;335&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;img src=&quot;http://www.codeproject.com/KB/iPhone/423158/working.png&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; /&gt;&lt;h2 style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Introduction&lt;/h2&gt;
The following article has two purposes:&lt;br /&gt;
&lt;ul style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;From the architectural perspective: To show an approach to integrate Windows applications with smarthphone and tablet applications through&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;HTML5 WebSockets&lt;/em&gt;.&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;From the software engineering perspective: To show a concrete and useful case of a Visual Studio remote debugging console on iPhones, extensible to Android devices.&lt;/li&gt;
&lt;/ul&gt;
It is not a goal of this article to provide a final and polished solution, the source code and applications provided are just for demonstrating the concept. Although the .net application uses the WPF library, it can be used with any UI library.&lt;br /&gt;
&lt;h2 style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Background&lt;/h2&gt;
Few days ago I got an iPhone 4. I was hoping to find a way to use it as a debugging console for my .net applications: No luck. So, I started to research about the simplest solution to perform this, using the following criteria:&lt;br /&gt;
&lt;ul style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Avoid to learn a totally new language, like&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Objective-C&lt;/em&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Avoid to distribute the application through&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Apple&#39;s AppStore&lt;/em&gt;&amp;nbsp;(and save a hundred bucks!)&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Use a firewall-friendly communication technique&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Use a simple library, prefereably just one DLL&lt;/li&gt;
&lt;/ul&gt;
The research process was not too long, HTML5 seems to be the best choice for writing an application without requiring the AppStore process, iOS supports nicely the HTML5 Application Cache feature and the HTML5 WebSockets complied with the firewall-friendly requirement and was implemented natively in iOS&#39; Safari browser.&lt;br /&gt;
&lt;h2 style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Architecture&amp;nbsp;&lt;/h2&gt;
In the Windows side, the core functionality of the tool is a&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;TraceListener&lt;/code&gt;-derived class. This class is responsible to trap the&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;System.Diagnostics.Debug.Write()&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;.WriteLine()&lt;/code&gt;&amp;nbsp;calls and sent it to the remote device by using an&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;HTML5 WebSocket&lt;/em&gt;&amp;nbsp;server. On the other hand, the iPhone implements a javascript application using a WebSocket client. The high-level design looks like this:&lt;br /&gt;
&lt;img src=&quot;http://www.codeproject.com/KB/iPhone/423158/architecture.png&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; /&gt;&lt;h2 style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Implementation&lt;/h2&gt;
&lt;h3 style=&quot;color: #ff9900; font-size: 19px; font-weight: normal;&quot;&gt;
Windows side&lt;/h3&gt;
In the Windows side,&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;WebSockets&lt;/em&gt;&amp;nbsp;is still not supported natively by .Net (but already announced for the&amp;nbsp;.Net Framework 4.5). After evaluating a half dozen of C#&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;WebSocket&amp;nbsp;&lt;/em&gt;libraries, I went for&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Alchemy&lt;/strong&gt;&amp;nbsp;(see&amp;nbsp;&lt;a href=&quot;http://alchemywebsockets.net/&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://alchemywebsockets.net&lt;/a&gt;&amp;nbsp;) because of its simplicity and monolitic DLL implementation.&lt;br /&gt;Another important feature of Alchemy is its support for several versions of the WebSocket protocol. Since it is not a mature standard, there are many versions of it, depending on the browser brand, version and platform. The supported versions are&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;hixie-76 (hybi00), hybi-10, hybi-17 and RFC6455&lt;/em&gt;.&lt;br /&gt;As mentioned before, the main class in the windows side is a&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;TraceListener&lt;/code&gt;-derived class, named&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;WebSocketTraceListener&lt;/code&gt;. The implementation is really short, as follows:&lt;div class=&quot;pre-action-link&quot; id=&quot;premain614333&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide614333&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span id=&quot;preShrink614333&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Shrink&lt;/span&gt;&amp;nbsp;&lt;img id=&quot;preimg614333&quot; src=&quot;http://www.codeproject.com/images/arrow-up-16.png&quot; style=&quot;-webkit-transition: opacity 0.1s linear; border: 0px; height: 16px; margin: 0px; max-width: 100%; opacity: 0.5; overflow: auto; padding: 0px; transition: opacity 0.1s linear; vertical-align: text-top; width: 16px;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre614333&quot; lang=&quot;C#&quot; processed=&quot;true&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;namespace&lt;/span&gt; System.Diagnostics
{
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt; WebSocketTraceListener : TraceListener
    {
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;private&lt;/span&gt; Alchemy.WebSocketServer  server = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; Alchemy.WebSocketServer();
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;private&lt;/span&gt; Alchemy.Classes.UserContext connection = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;;

        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt; Initialize(System.Net.IPAddress ip, &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; port)
        {
            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;try&lt;/span&gt;
            {
                server.ListenAddress = ip;
                server.Port = port;
                server.OnConnect = OnConnect;
                server.OnDisconnect = OnDisconnect;
                server.Start();

                Debug.WriteLine(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;WebSocket Trace Listener: An error ocurred when the application tried to start&quot;&lt;/span&gt;);
                Debug.Listeners.Add(&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt;);
            }
            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;catch&lt;/span&gt; (Exception)
            {
                Debug.WriteLine(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;WebSocket Trace Listener: Started correctly.&quot;&lt;/span&gt;);
            }
        }
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;override&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt; Write(&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt; message)
        {
            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt;.connection != &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;)
                &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt;.connection.Send(message);
        }
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;override&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt; WriteLine(&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt; message)
        {
            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt;.connection != &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;)
                &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt;.connection.Send(message);
        }

        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt; OnConnect(Alchemy.Classes.UserContext context)
        {
            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt;.connection != &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;)
                &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt;.server.Restart();
            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt;.connection = context;
        }
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt; OnDisconnect(Alchemy.Classes.UserContext context)
        {
            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt;.connection = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;;
        }
    }
}
&lt;/pre&gt;
This class can be embedded directly into your application; there is&amp;nbsp;no need to keep it in a separated DLL. There are two dependencies, though: The Alchemy library (&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Alchemy.dll&lt;/em&gt;, included in the solution), and&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;System.Web.dll&lt;/em&gt;, which requires the project to be configured with the regular&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.Net Framework&lt;/em&gt;&amp;nbsp;(and not the&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.Net Framework Client Profile&lt;/em&gt;) in order to allow you to attach that DLL. Finally, the listener class can be used by adding few lines of code:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain321643&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide321643&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre321643&quot; lang=&quot;C#&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;var&lt;/span&gt; listener = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; WebSocketTraceListener();
            listener.Initialize(IPAddress.Parse(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;192.168.0.101&quot;&lt;/span&gt;), &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;81&lt;/span&gt;);
            ...
            Debug.WriteLine(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;This is a debug line&quot;&lt;/span&gt;);
&lt;/pre&gt;
Notice that the IP address belongs to the computer where the debugged application runs, and the port number should be one that is not blocked by your current OS and Hardware firewall settings; 81 is a good one. The IP address will be usually local, as it is expected to be connected from the mobile device inside a LAN context. In order to debug an application which is running in Internet, more settings may be required in your router.&lt;br /&gt;
A mockup WPF application has been created in order to send some debug strings according to the user interaction:&lt;br /&gt;
&lt;img src=&quot;http://www.codeproject.com/KB/iPhone/423158/wpf_test.png&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; /&gt;&lt;h3 style=&quot;color: #ff9900; font-size: 19px; font-weight: normal;&quot;&gt;
Mobile device side&lt;/h3&gt;
In the mobile device, the source code is simple as well, by using a native&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;WebSocket&amp;nbsp;&lt;/em&gt;client object, as in the following template:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain338481&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide338481&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre338481&quot; lang=&quot;javascript&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;var&lt;/span&gt; socket;

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt; Initialize(address) {
    socket = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; WebSocket(address);
    socket.onopen = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt; (event) {
       &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Prepare the UI here
&lt;/span&gt;    };
    socket.onclose = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt;(event) {
       &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Reset the UI here
&lt;/span&gt;    };
    socket.onerror = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt; (event) {
       &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Display the error (event.data)
&lt;/span&gt;    };
    socket.onmessage = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt; (event) {
       &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Display the debug message (event.data)
&lt;/span&gt;    };
}
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;function&lt;/span&gt; Stop() {
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (socket !== undefined) {
        socket.close();
    }
}
&lt;/pre&gt;
The address must indicate the&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;ws://&lt;/strong&gt;&amp;nbsp;protocol and shall match the IP and port specified in the Windows side.&lt;br /&gt;
Regarding the concrete tool, it has a minimalistic user interface. The first row allows to specify the socket address, start and stop the connection. The incoming lines will appear from top to bottom and can de scrolled up and down as usual:&lt;br /&gt;
&lt;img src=&quot;http://www.codeproject.com/KB/iPhone/423158/not_connected.png&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; /&gt;When a connection is succesful, the&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Connect&lt;/em&gt;&amp;nbsp;button will become disabled and the&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Stop&amp;nbsp;&lt;/em&gt;button will turn enabled. After stopping successfully, both buttons will swap their states.&lt;br /&gt;
&lt;img src=&quot;http://www.codeproject.com/KB/iPhone/423158/working.png&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; /&gt;&lt;h2 style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Deployment&lt;/h2&gt;
The unique file required to be deployed is&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;DebugConsole.htm&lt;/em&gt;, which contains all the HTML, CSS and Javascript code. It can be placed in any server. As this is an HTML5 application using&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;WebSocket&lt;/em&gt;, the application will run as a standalone application after it is loaded through a browser. In order to convert this Internet page into a&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;cached application&lt;/em&gt;, there are several tricks and tips required.&lt;br /&gt;
The first step to prepare a&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;cached application&lt;/em&gt;&amp;nbsp;is to create a manifest file. The minimum content would be something like:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain710862&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide710862&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre710862&quot; lang=&quot;text&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;CACHE MANIFEST
CACHE:
DebugConsole.htm
&lt;/pre&gt;
The web page is linked by specifying the manifest file into the html tag as:&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;html manifest=&quot;manifest_file&quot;&amp;gt;&lt;/code&gt;. This will keep the page cached into the local machine until the manifest is changed at server or the local&amp;nbsp;cache is manually cleared by the user.&lt;br /&gt;
The big tip here is that the manifest must be served with&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;MIME&amp;nbsp;&lt;/em&gt;type&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;text/cache-manifest&lt;/code&gt;. There are many authors that suggest to configure the server to allow this new MIME type for the specific file, but sometimes we don&#39;t have that degree of control. Another way to accomplish the same task, is to manually manipulate the headers while creating the manifest file dinamically. The sample source code shows a way to do it with PHP, but it can be done with ASP as well:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain920660&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide920660&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre920660&quot; lang=&quot;php&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-pagedirective&quot; style=&quot;background-color: yellow; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;?&lt;/span&gt;php ob_start(); header(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Content-type: text/cache-manifest&#39;&lt;/span&gt;); 
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;CACHE MANIFEST
CACHE:
DebugConsole.htm&#39;&lt;/span&gt;;
ob_end_flush(); &lt;span class=&quot;code-pagedirective&quot; style=&quot;background-color: yellow; border: 0px; margin: 0px; padding: 0px;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
A final trick can avoid hours of pain: When alterating the headers at runtime, it is extremely important to not to output any single character before the header is changed. That would throw a server exception. Be sure to remove any extra white spaces at the end of the scripted file.&lt;br /&gt;
&lt;h3 style=&quot;color: #ff9900; font-size: 19px; font-weight: normal;&quot;&gt;
iPhone specifics&lt;/h3&gt;
There are few extra steps to make this a true iPhone application. We need a couple of resources: a 57x57 icon and a 320x460 splash screen. Both image files can be&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;png&amp;nbsp;&lt;/em&gt;or&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;jpeg&lt;/em&gt;. After creating the required resource files, they shall be added to the manifest:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain592530&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide592530&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre592530&quot; lang=&quot;php&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-pagedirective&quot; style=&quot;background-color: yellow; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;?&lt;/span&gt;php ob_start(); header(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Content-type: text/cache-manifest&#39;&lt;/span&gt;); 
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;CACHE MANIFEST
CACHE:
Debug_Icon.png
Debug_Start.png
DebugConsole.htm&#39;&lt;/span&gt;;
ob_end_flush(); &lt;span class=&quot;code-pagedirective&quot; style=&quot;background-color: yellow; border: 0px; margin: 0px; padding: 0px;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
In the HTML file, some&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;META&amp;nbsp;&lt;/code&gt;and&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;LINK&amp;nbsp;&lt;/code&gt;records are needed to tell&amp;nbsp;iOS how to set some behaviors and deal with the&amp;nbsp;resources added:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain556506&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide556506&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre556506&quot; lang=&quot;html&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;VS Debug&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;meta&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;viewport&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;meta&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;apple-mobile-web-app-capable&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;yes&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;meta&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;apple-mobile-web-app-status-bar-style&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;black&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;

        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;link&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;rel&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;apple-touch-icon&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;Debug_Icon.png&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;link&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;rel&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;apple-touch-startup-image&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;Debug_Start.png&quot;&lt;/span&gt;  &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;media&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;screen and (min-device-width: 200px) and (max-device-width: 320) and (orientation:portrait)&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
The final steps can be seen in the following screen shots. In summary, you have to browse to the desired page by using&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Safari&lt;/em&gt;&amp;nbsp;and then add the page to the Home Screen. The iOS will scan the manifest and take the icon and splash screen for future use.&lt;br /&gt;
&lt;img src=&quot;http://www.codeproject.com/KB/iPhone/423158/app_cache.png&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; /&gt;&amp;nbsp;And that&#39;s it! You are now able to develop more complex iPhone/HTML5 Apps connected to other Window applications.&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/3387506900384706763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2015/06/iphone-visual-studio-debug-console.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/3387506900384706763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/3387506900384706763'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2015/06/iphone-visual-studio-debug-console.html' title=' iPhone - Visual Studio debug console'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-4484602898169324758</id><published>2015-06-11T04:14:00.003-07:00</published><updated>2015-06-11T04:14:30.254-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Applying CSS to Asp.net Application"/><category scheme="http://www.blogger.com/atom/ns#" term="Responsive Design"/><title type='text'>Simplifying Word Responsive Design</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Every so often, there is a new buzz word in the web development/design industry. A few years ago, it was HTML5 and CSS3. Now it seems to be responsive design. And of course, this makes a lot of sense. With more and more Internet users accessing the content on their laptop or desktop PC, tablets, and mobile phones, websites need to be able to be ready to serve up the content in an appropriate fashion.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
In this article, I want to take a step back and help simplify this process because by stopping and thinking just a little bit, it doesn&#39;t need to be complicated. In fact, it&#39;s quite simple.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
At the time of writing this article, my blog is only about 50% responsive, I am planning a new design soon that will take it to the next level.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
First things first, do NOT change how you are already designing websites! Designers, please continue making your fixed sized designs in Photoshop. This is the best way to get started.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Once your design is ready, slice and dice it as usual. Set up your grid layout, get your fonts right, etc. &amp;nbsp;Once you&#39;re done that, a few subtle changes need to happen to make it responsive. The first thing is removing those pixels and replacing them with percentages.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Let&#39;s look at the following grid example:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
&lt;a href=&quot;http://content.endyourif.com/wp-content/uploads/2013/02/grid.png&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;aligncenter size-medium wp-image-859&quot; height=&quot;187&quot; src=&quot;http://content.endyourif.com/wp-content/uploads/2013/02/grid-300x187.png&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; title=&quot;grid&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
The above picture is a pretty basic grid; it contains a header that spans the full length and two boxes below, one slightly larger than the other.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Basic HTML and CSS would probably look something like this:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain860622&quot; style=&quot;background-color: white; border: 0px; color: #999999; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide860622&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre860622&quot; lang=&quot;html&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=page&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=header&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=content&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=sidebar&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
And the CSS:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain857862&quot; style=&quot;background-color: white; border: 0px; color: #999999; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide857862&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre857862&quot; lang=&quot;html&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;#page {
margin: 0 auto;
width: 960px;
}

#content {
float: left;
margin-right: 30px;
width: 600px;
}
#sidebar {
float: left;
width: 330px;
}&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
This grid will work perfectly on the desktop; however, if you look it on a mobile device or even just resize your browser, you will quickly notice that left and right scrollbars start appearing.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Let&#39;s now remove the pixels and convert this to percentages, luckily only the CSS changes:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain256423&quot; style=&quot;background-color: white; border: 0px; color: #999999; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide256423&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre256423&quot; lang=&quot;html&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;#page {
margin: 0 auto;
width: 90%;
}

#content {
float: left;
margin-right: 3.125%;
width: 62.5%;
}
#sidebar {
float: left;
width: 34.375%;
}&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Using the above CSS, as you resize your browser, you will see that our grid automatically adjusts to make the new site and no horizontal scrollbars appear.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
How did I come up with these numbers? It&#39;s quite simple; I took my pixels and did some math.&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;The 90% is simply trial and error/personal preference for what works well&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;The content and sidebar is basic math: 600 / 960 * 100 = 62.5% and 330 / 960 * 100 = 34.375%&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;The margin right is the remainder: 100 ? 62.5 ? 34.375 = 3.125%&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
This covers the most complicated part of responsive design. The next part is dealing with the left overs. I like to think of it in 2 different ways. Firstly, you need to deal with the smallest of devices and secondly, you need to deal with the largest of devices. For the former, I typically think of 320 pixels in width (standard iPhone or Android width). And for the latter, I think of desktop PCs or laptops that exceed 1200 pixels in width.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
In most scenarios, your base design should handle well on tablet devices or when the phone is in landscape mode. A few small adjustments might be required, but this needs to be addressed on a case-by-case basis.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
When you look at the smallest width, in most scenarios your grid layout will no longer work. There simply is not enough room to divide the grid in two. Instead, I suggest using media queries and make some slight adjustments to your CSS:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain284720&quot; style=&quot;background-color: white; border: 0px; color: #999999; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide284720&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre284720&quot; lang=&quot;html&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;@media screen and (min-width: 320px) {
#content, #sidebar {
clear: both;
float: none;
width: auto;
}
}&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
With the above CSS in place, my sidebar will no longer float left. Instead, the content will take the full width of the window and the sidebar will live directly beneath the content.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Similarly when dealing with screen sizes larger than 1200 pixels, we have the inverse problem. There is typically too much white space or our content stretches so far that as the reader attempts to transition back to a new line it&#39;s easy for them to lose their place.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
To solve this problem, another media query can be used that perhaps brings a third column into the grid so the main content doesn&#39;t exceed that sweet spot of 60-80 words across:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain459381&quot; style=&quot;background-color: white; border: 0px; color: #999999; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide459381&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre459381&quot; lang=&quot;html&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;@media screen and (min-width: 1200px) {
/* make a third grid */
}&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
This of course is not the only option, if you are in a situation like my current blog is and it&#39;s not easy to make a third grid item, I instead played around with the 90% that I used above in the outer grid size. Instead, I reduced it something more reasonable like 70% allowing more whitespace on the outside of the grid.&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Summary&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
The bottom line I want to reinforce in this article is that responsive design is not hard, but it does require additional thought. As I am not a designer, I truly don&#39;t have all the answers, but I can help you pose the right questions.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
Once you&#39;ve implemented your base flexible grid, adjust your browser or load your website on the various devices and critic your layout. Is there too much whitespace? Is the grid too small and content unreadable? Is a font size you&#39;ve chosen for larger designs taking over on smaller devices? Etc.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;
These and other questions simply need answering and by using media queries and making several minor adjustment, your website will begin to scale smoothly and easily.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/4484602898169324758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2015/06/simplifying-word-responsive-design.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/4484602898169324758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/4484602898169324758'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2015/06/simplifying-word-responsive-design.html' title='Simplifying Word Responsive Design'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-4038733504915460191</id><published>2015-06-11T04:10:00.003-07:00</published><updated>2015-06-11T04:10:52.314-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="PayPal"/><title type='text'>PayPal for C# - ASP.NET</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;text&quot; id=&quot;contentdiv&quot; itemprop=&quot;articleBody&quot; style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 0px; padding: 10px 0px 0px;&quot;&gt;
&lt;ul class=&quot;download&quot; style=&quot;border: 0px; margin: 25px 0px 10px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;background: url(http://dj9okeyxktdvd.cloudfront.net/images/download24.png) 0% 50% no-repeat scroll transparent; border: 0px; font-weight: bold; list-style-type: none; margin: 0px 0px 6px -40px; padding: 0px 0px 1px 30px; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/KB/E-commerce/paypal_c_aspnet/paypal_src.zip&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Download source - 166 KB&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Index&lt;/h2&gt;
&lt;ul style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers#PayPalIntroduction&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;PayPal Introduction&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers#GettingStarted&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Getting Started with PayPal&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers#SettingUpAccount&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Setting up a Test Account&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers#WebStandard&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Website Payments Standard (HTML)&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers#PostPayment&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;PostPayment processing&lt;/a&gt;&lt;/li&gt;
&lt;ul style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers#AutoReturn&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;AutoReturn&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers#PDT&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Direct Payment (PDT)&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers#IPN&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Instant Payment Notification (IPN)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers#API&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;PayPal API&lt;/a&gt;&lt;/li&gt;
&lt;ul style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers#ExpressCheckout&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Express Checkout&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers#DirectPayment&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Direct Payment (Website Payments Pro)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers#Conclusion&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Conclusion&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers#History&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;History&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;PayPalIntroduction&quot; style=&quot;border: 0px; color: inherit; cursor: pointer; margin: 0px; padding: 0px;&quot;&gt;&lt;/a&gt;Introduction&lt;/h2&gt;
PayPal is probably one of the first things that gets mentioned once you start discussion on online payments. It’s not so without reason – in 2008, PayPal moved over 60 billion dollars between accounts which is, you’ll agree, a respectable amount. And also, all trends show that this growth will continue – with huge number of new accounts (over 184 million accounts in 2008 compared to 96.2 million in 2005), with a new platform named&amp;nbsp;&lt;a href=&quot;https://www.paypal-communications.com/innovate2009/&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;paypal_c_aspnet&quot;&gt;PayPal X&lt;/a&gt;, and with more cool applications that involve paying (like&amp;nbsp;&lt;a href=&quot;https://twitpay.me/&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;paypal_c_aspnet&quot;&gt;Twitpay&lt;/a&gt;), you can bet that PayPal is here to stay. So, how can you join the whole PayPal Development movement?&lt;br /&gt;
Unfortunately, I would say – not so easily. When I first started with PayPal integration - it was hard, really hard. If you wish to see what I mean, just jump to the&amp;nbsp;&lt;a href=&quot;https://www.paypal.com/integration&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;paypal_c_aspnet&quot;&gt;PayPal Developer Center&lt;/a&gt;. There is no way you’ll easily fish out what you need from that site if you are a PayPal newbie; simply - there are too many links, too many resources, and too many mixings of important and not-so-important information. So, how should you start?&lt;br /&gt;
&lt;h2 style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;GettingStarted&quot; style=&quot;border: 0px; color: inherit; cursor: pointer; margin: 0px; padding: 0px;&quot;&gt;&lt;/a&gt;Getting Started with PayPal&lt;/h2&gt;
To those who really want to get into PayPal, and are willing to shell out some buck, I would recommend the&amp;nbsp;&lt;a href=&quot;http://www.amazon.com/gp/product/1590597508?ie=UTF8&amp;amp;tag=codeproject-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=1590597508&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;paypal_c_aspnet&quot;&gt;Pro PayPal E-Commerce&lt;/a&gt;&lt;img border=&quot;0&quot; class=&quot; wrjwrbrrohxmcfscyiku wrjwrbrrohxmcfscyiku spdbggnjibgoekyeqeao spdbggnjibgoekyeqeao spdbggnjibgoekyeqeao spdbggnjibgoekyeqeao spdbggnjibgoekyeqeao spdbggnjibgoekyeqeao spdbggnjibgoekyeqeao spdbggnjibgoekyeqeao spdbggnjibgoekyeqeao odeswrvmokalfnfmkaxm&quot; complete=&quot;true&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=codeproject-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1590597508&quot; style=&quot;border: medium none; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; width=&quot;1&quot; /&gt;&amp;nbsp;book - that’s how I eventually got into understanding the concepts behind PayPal integration. For those who are not so eager to pay – don’t worry, that’s why this article is here... I&#39;ll go over most of the stuff that book covers, but in a more brief and concise manner.&lt;br /&gt;
First and foremost - understanding what kinds of integration PayPal offers is, I would say, the most important thing in order to successfully start your development journey. A common mistake, that happened to me also, is to start at once with the PayPal API and Express Checkout. I mean it’s natural - we are developers, and when they tell us to integrate with something, the first thing we look for is the SDK &amp;amp; API… the PayPal API comes up as a result… we say “That’s it” to ourselves… and start working. The problem is – the majority of payment scenarios can be handled with a way simpler approach - HTML forms that are part of the Website Payments Standard.&lt;br /&gt;
So, without further ado, here is a classification of PayPal integrations:&lt;br /&gt;
&lt;ul style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Website Payments Standard (HTML)&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Postpayment Processing&lt;/li&gt;
&lt;ul style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;AutoReturn&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Payment Data Transfer (PDT)&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Instant Payment Notification (IPN)&lt;/li&gt;
&lt;/ul&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;PayPal API&lt;/li&gt;
&lt;ul style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Express Checkout&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Direct Payment (Website Payments Pro)&lt;/li&gt;
&lt;/ul&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Payflow Gateway&lt;/li&gt;
&lt;/ul&gt;
Items in classification are also ordered in a way I would suggest for everyone to follow. So, if you are new to PayPal – first learn all of the options that you have with the Website Payments Standard (HTML). Then, if you need to add some basic post-payment processing, see if Auto-Return or PDT will solve your problem… if not, IPN is a more robust option you have at your disposal.&lt;br /&gt;
The next level would involve the PayPal API and implementing the Express Checkout, which is the most flexible PayPal integration solution. And finally, if you long for the ability to directly process credit cards on your website, you’ll pay a monthly fee to PayPal and implement Direct Payment (effectively getting what is called Website Payments Pro).&lt;br /&gt;
The last item from our classification - the Payflow Gateway is, on the other hand, a different beast. It doesn’t “update the stack” in a way the previously mentioned technologies do. It is a solution aimed specifically at those businesses that have/want an Internet Merchant Account (IMA) and just need the payment gateway. In order to keep the article consistent, I’ll skip explaining the details of the Payflow Gateway. However, if you have any questions related to it, feel free to leave a message in the comments section and I’ll try to answer.&lt;br /&gt;
That said, let’s get to setting up a test PayPal account, and then we’ll delve deeper into describing the mentioned integrations.&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Website Payments Standard (HTML)&lt;/h2&gt;
In this section, I&#39;ll provide you with a number of examples that will show how to create your own HTML form for receiving money over PayPal. You&#39;ll see how to use different variables in order to influence payment details. Before we delve into details, let&#39;s take a look at the two most basic variables:&lt;br /&gt;
&lt;ul style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;form&#39;s&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;action&lt;/code&gt;&amp;nbsp;attribute - in most cases, it should be&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;https://www.paypal.com/cgi-bin/webscr&lt;/em&gt;. If you are using Sandbox for testing payments, you&#39;ll change it to&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;https://www.&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;sandbox.&lt;/em&gt;paypal.com/cgi-bin/webscr&lt;/strong&gt;&amp;nbsp;- effectively, you just insert the word&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;sandbox&lt;/strong&gt;&amp;nbsp;into the URL (this is also true for some other integrations; e.g., the PayPal API). For upcoming examples, I won&#39;t be using the Sandbox URL because most of you would just get that &quot;Login to use the PayPal Sandbox features&quot; screen (look up for the image).&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;form&#39;s business child - I&#39;ll use&amp;nbsp;&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;youremailaddress@yourdomain.com&lt;/em&gt;&amp;nbsp;for most examples; if you copy-paste the code, you&#39;ll want to replace that with the email of your PayPal account.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;color: #ff9900; font-size: 19px; font-weight: normal;&quot;&gt;
Basic Payment&lt;/h3&gt;
OK, let’s say you have an opened PayPal account and you just wish to be able to accept a $10 payment for a painting you are selling through your site. Just insert the following HTML into your page and you are set to go:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain688837&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide688837&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre688837&quot; lang=&quot;xml&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;form&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;action&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;https://www.paypal.com/cgi-bin/webscr&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;method&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;post&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;

    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;hidden&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;cmd&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;_xclick&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;hidden&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;business&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;youremailaddress@yourdomain.com&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;

    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;hidden&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;item_name&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;My painting&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;hidden&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;amount&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;10.00&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt; 
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;submit&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;Buy!&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;form&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h3 style=&quot;color: #ff9900; font-size: 19px; font-weight: normal;&quot;&gt;
Shipping &amp;amp; Handling&lt;/h3&gt;
The next thing that comes to mind is that you&#39;ll wish to add shipping and/or handling fees to your form. It&#39;s easy - just add more parameters:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain671683&quot; style=&quot;border: 0px; color: #999999; font-size: 11px; margin: 0px; padding: 0px; text-align: right; width: 700px;&quot;&gt;
&lt;span id=&quot;prehide671683&quot; style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Hide&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;-webkit-transition: color 0.1s linear; border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;&quot;&gt;Copy Code&lt;/span&gt;&lt;/div&gt;
&lt;pre id=&quot;pre671683&quot; lang=&quot;xml&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;form&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;action&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;https://www.paypal.com/cgi-bin/webscr&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;method&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;post&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;

    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;hidden&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;cmd&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;_xclick&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;hidden&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;business&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;youremailaddress@yourdomain.com&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;

    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;hidden&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;item_name&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;My painting&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;hidden&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;amount&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;10.00&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;

&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;hidden&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;shipping&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;3.00&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt; 
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;hidden&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;handling&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;2.00&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;

    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;submit&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;Buy with additional parameters!&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;form&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h3 style=&quot;color: #ff9900; font-size: 19px; font-weight: normal;&quot;&gt;
Donations &amp;amp; Textual Links&lt;/h3&gt;
If you aren&#39;t selling anything but rather accepting donations for some cause - you&#39;ll just need to change the value of the&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;cmd&lt;/code&gt;&amp;nbsp;variable to&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;_donations&lt;/code&gt;. If we combine this with a common requirement to have a hyperlink instead of a button - we get the following URL (of course, you can use this method of URL creation for other PayPal payment types):&lt;br /&gt;
&lt;ul style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;amp;business=youremailaddress@yourdomain.com&amp;amp;item_name=Save Polar Bears!&amp;amp;amount=10.00&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;h2 style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Conclusion&lt;/h2&gt;
My hope is that this article gave you good overview of PayPal integration options. If it did that, I&#39;ll be at peace - as once you have an understanding of the concepts laid out in this article, you&#39;ll easily fetch the needed details from the provided links. Sure, there are some topics we haven&#39;t touched, like&amp;nbsp;&lt;a href=&quot;https://cms.paypal.com/us/cgi-bin/?&amp;amp;cmd=_render-content&amp;amp;content_ID=developer/e_howto_html_encryptedwebpayments&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;paypal_c_aspnet&quot;&gt;Encrypted Website Payments&lt;/a&gt;,&lt;a href=&quot;https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&amp;amp;content_ID=developer/apicertificates&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;paypal_c_aspnet&quot;&gt;PayPal API Certificates&lt;/a&gt;, or&amp;nbsp;&lt;a href=&quot;https://cms.paypal.com/us/cgi-bin/?&amp;amp;cmd=_render-content&amp;amp;content_ID=developer/howto_gateway_payflowpro&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;paypal_c_aspnet&quot;&gt;Payflow Gateway&lt;/a&gt;, but I think you can tackle even that on your own once you fully understand all things written here.&lt;br /&gt;
If you get stuck on anything, I suggest that you first visit the&amp;nbsp;&lt;a href=&quot;https://www.x.com/threads&quot; style=&quot;border: 0px; color: purple; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;paypal_c_aspnet&quot;&gt;PayPal Developer Community&lt;/a&gt;&amp;nbsp;and ask your question in the appropriate forum. A number of great, knowledable developers monitor those forums, and it&#39;s highly probable that you&#39;ll receive an answer to almost any PayPal issue within an hour. I also have an account on that site (lepipele) and try to answer questions whenever I have time; so feel free to send me a private message if you drop by or run into trouble.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/4038733504915460191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2015/06/paypal-for-c-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/4038733504915460191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/4038733504915460191'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2015/06/paypal-for-c-aspnet.html' title='PayPal for C# - ASP.NET'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-3427808572409265663</id><published>2015-01-02T03:43:00.000-08:00</published><updated>2015-01-02T03:43:02.867-08:00</updated><title type='text'>Barcode Generator/Reader</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 style=&quot;background-color: transparent; border: 0px; color: #474747; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;http://mashable.com/follow/topics/qr-codes&quot; style=&quot;color: #1e598e; text-decoration: none; vertical-align: baseline;&quot;&gt;QR codes&lt;/a&gt;&amp;nbsp;are all the rage these days, and if you’ve got an&lt;a href=&quot;http://mashable.com/follow/topics/android&quot; style=&quot;color: #1e598e; text-decoration: none; vertical-align: baseline;&quot;&gt;Android&lt;/a&gt;, you hold in your hand the power to unlock the mysteries of the QR code-spackled world.&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; color: #474747; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
These distinctive barcodes are generally square and rendered in simple black-and-white blotches. You’ll find them on TV shows, in print publications, in subway advertisements… Heck, we’re willing to say marketers will slap a QR code on anything that doesn’t move or talk. QR code clothing is also available.&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; color: #474747; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
QR codes are used to reveal more information about a product, service, event or person. Generally, they direct the scanning device to a special URL, video, coupon, event page, email address, or other digital signpost with more details and content.&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; color: #474747; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
To scan the codes, all you need is a mobile device with a camera and an app to interpret the data in the code.&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; color: #474747; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;center style=&quot;color: #474747; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px;&quot;&gt;
&lt;strong style=&quot;background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SEE ALSO:&amp;nbsp;&lt;a href=&quot;http://mashable.com/2011/03/04/qr-codes-infographic/&quot; style=&quot;color: #1e598e; text-decoration: none; vertical-align: baseline;&quot;&gt;Who’s Really Scanning All Those QR Codes? [INFOGRAPHIC]&lt;/a&gt;&lt;/strong&gt;&lt;/center&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; color: #474747; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; color: #474747; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Here is a handful of free and serviceable Android apps for scanning and deciphering QR codes. We welcome your suggestions and faves in the comments, as well!&lt;/div&gt;
&lt;div class=&quot;ytm-gallery-box&quot; data-galleryid=&quot;1613&quot; data-gallerytype=&quot;photo&quot; data-postid=&quot;655157&quot; id=&quot;gallery_box1613&quot; style=&quot;clear: right; color: #474747; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 21px; margin: 15px auto; text-align: -webkit-auto; width: auto;&quot;&gt;
&lt;div class=&quot;ytm-gallery-one-page&quot; style=&quot;margin: 15px 0px;&quot;&gt;
&lt;a class=&quot;ytm-set-gallery-view&quot; href=&quot;http://mashable.com/2011/06/22/qr-code-apps-android/&quot; style=&quot;color: #5a5a5a; display: block; font-size: 12px; font-weight: bold; height: 12px; line-height: 12px; margin: 12px 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;ytm-view-type&quot;&gt;View As Slideshow&lt;/span&gt;&amp;nbsp;»&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;ytm-image-box&quot; style=&quot;background-color: white; margin: 10px 0px 22px; min-height: 100px; position: relative; text-align: center;&quot;&gt;
&lt;div class=&quot;ytm-image-title&quot; style=&quot;color: #5a5a5a; font-size: 18px; font-weight: bold; line-height: 24px; margin: 0px 0px 20px; overflow: hidden; text-align: left; width: auto !important;&quot;&gt;
Barcode Generator/Reader&lt;/div&gt;
&lt;div class=&quot;ytm-img-caption&quot; style=&quot;margin: 20px 0px; text-align: left;&quot;&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Here&#39;s a simple tool for reading QR codes. It will also help you generate your own QR codes and supports all kinds of data, including event, contact, email, location, phone, sms, text, url and wifi.&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;https://market.android.com/details?id=com.sugree.barcodegen&amp;amp;feature=search_result&quot; style=&quot;color: #1e598e; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot;&gt;Android Market link&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin-bottom: 18px; margin-top: 18px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;img alt=&quot;&quot; src=&quot;http://9.mshcdn.com/wp-content/gallery/7-free-android-qr-reader-apps/qr-reader-android-1.png&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; max-width: 630px !important; outline: 0px; overflow: hidden; padding: 0px; vertical-align: baseline; width: auto !important;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/3427808572409265663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2015/01/barcode-generatorreader.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/3427808572409265663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/3427808572409265663'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2015/01/barcode-generatorreader.html' title='Barcode Generator/Reader'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-2632297444302570043</id><published>2014-12-05T05:45:00.000-08:00</published><updated>2014-12-05T05:45:02.579-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>How do I sum even numbers between two numbers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;How do I sum even numbers between two numbers&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;I have three textboxes, and one button .&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;The first txtbox is where the first number is entered by the user&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;The second txtbox is where the second number is entered by the user&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;The third txtbox is where the even sum will appear at.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;And a enter button is also on the form.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;blockquote class=&quot;quote&quot; style=&quot;background: url(http://dj9okeyxktdvd.cloudfront.net/images/quote.gif) 0% 0% no-repeat scroll rgb(238, 238, 238); color: #556655; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px; margin-bottom: 1em; margin-left: 0.25em; margin-right: 1em; padding: 0px 10px 10px 27px;&quot;&gt;
&lt;div class=&quot;op&quot; style=&quot;border: 0px; font-size: 11px; font-weight: bold; margin: 0px 0px 4px; padding: 0px;&quot;&gt;
MSDN wrote:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain0&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; font-size: 11px; margin: 0px; padding: 0px; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg0&quot; preid=&quot;0&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;border: 0px; cursor: pointer; margin: 0px; padding: 0px;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse0&quot; preid=&quot;0&quot; style=&quot;border: 0px; cursor: pointer; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;|&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Questions/849378/How-do-I-sum-even-numbers-between-two-numbers?arn=399#&quot; preid=&quot;0&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;c#&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto !important; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt; Linq65()
{
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;var&lt;/span&gt; numbers =
        from n &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;in&lt;/span&gt; Enumerable.Range(&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;100&lt;/span&gt;, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;50&lt;/span&gt;)
&amp;nbsp;
        select &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; { Number = n, OddEven = n % &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt; == &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt; ? &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;odd&quot;&lt;/span&gt; : &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;even&quot;&lt;/span&gt; };
&amp;nbsp;
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;foreach&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;var&lt;/span&gt; n &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;in&lt;/span&gt; numbers)
    {
        Console.WriteLine(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;The number {0} is {1}.&quot;&lt;/span&gt;, n.Number, n.OddEven);
    }
}&lt;/pre&gt;
This sample uses Range to generate a sequence of numbers from 100 to 149 that is used to find which numbers in that range are odd and even.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;pre-action-link&quot; id=&quot;premain1&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; font-size: 11px; margin: 0px; padding: 0px; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg1&quot; preid=&quot;1&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;border: 0px; cursor: pointer; margin: 0px; padding: 0px;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse1&quot; preid=&quot;1&quot; style=&quot;border: 0px; cursor: pointer; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;|&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Questions/849378/How-do-I-sum-even-numbers-between-two-numbers?arn=399#&quot; preid=&quot;1&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;
&lt;pre id=&quot;pre1&quot; lang=&quot;text&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto !important; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;The number 100 is even.
The number 101 is odd.
The number 102 is even.
The number 103 is odd.
The number 104 is even.
The number 105 is odd.
The number 106 is even.
...
The number 149 is odd.&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;Based on above example, you can achieve that in two ways (using Linq):&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain2&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg2&quot; preid=&quot;2&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;border: 0px; cursor: pointer; margin: 0px; padding: 0px;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse2&quot; preid=&quot;2&quot; style=&quot;border: 0px; cursor: pointer; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;span style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;|&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Questions/849378/How-do-I-sum-even-numbers-between-two-numbers?arn=399#&quot; preid=&quot;2&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;
&lt;pre id=&quot;pre2&quot; lang=&quot;c#&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto !important; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; fromNumber = &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;10&lt;/span&gt;;
 &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; toNumber = &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;30&lt;/span&gt;;
    &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;1. querable method
&lt;/span&gt;    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;var&lt;/span&gt; SumOfEvenNumbersInRange = (from n &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;in&lt;/span&gt; Enumerable.Range(fromNumber, toNumber - fromNumber +1)
   where(n%2==0)
   select n).Sum();
    &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;2. Lambda expressions   
&lt;/span&gt;    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; res = Enumerable.Range(fromNumber, toNumber - fromNumber +1).Where(n=&amp;gt;n%2==0).Sum();&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;In both cases result is the same:&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: white; border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;220&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/2632297444302570043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/12/how-do-i-sum-even-numbers-between-two.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/2632297444302570043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/2632297444302570043'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/12/how-do-i-sum-even-numbers-between-two.html' title='How do I sum even numbers between two numbers'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-1290996936425718853</id><published>2014-12-05T05:38:00.000-08:00</published><updated>2014-12-05T05:38:00.748-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Browser"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Disabling browser’s back functionality after logout</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;header tight padded-top&quot; href=&quot;http://www.codeproject.com/Questions/465770/Disabling-browser-s-back-functionality-after-logou&quot; id=&quot;ctl00_ctl00_MC_AMC_TitleLink&quot; style=&quot;background-color: white; border: 0px; color: purple; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px; margin: 0px !important; padding: 0px !important; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h1 id=&quot;ctl00_ctl00_MC_AMC_ItemTitle&quot; style=&quot;color: #333333; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 29px; font-weight: 200; line-height: normal; margin: 25px 0px 0px; padding: 0px; text-align: left;&quot;&gt;
Disabling browser’s back functionality after logout&lt;/h1&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;I want to disable browser&#39;s back button after log out.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;I have already set session[&quot;session-id&quot;] to null on log out event.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;But when I am pressing Back button of browser,it will redirect me to that secure page from which I&#39;ve already log out.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Solution&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;When we request any page from server, browser maintains its cache in local system. When user press back button the cached page opened in front of user.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;Its mean we have to disable the cache functionality for our session pages. So for this you have to insert this code into “Page_Load” event of the session page or to master page that is used for secure pages.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;c#&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-stretch: normal; overflow: auto !important; padding: 6px; tab-size: 4; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Response.Buffer= &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;true&lt;/span&gt;;
Response.ExpiresAbsolute=DateTime.Now.AddDays(-1d);
Response.Expires =-1500;
Response.CacheControl = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;no-cache&quot;&lt;/span&gt;;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;(Session[&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;SessionId&quot;&lt;/span&gt;] == &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;)
{
Response.Redirect (&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;WhereYouWantToGo.aspx&quot;&lt;/span&gt;);
}
}&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;This code just disable the cache for current page and save this page in buffer.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;And buffer is maintained in memory so when user log&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;out the buffer will&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;destroy and no backup copy of that page available to view.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;So its mean we successfully disable the back button.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/1290996936425718853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/12/disabling-browsers-back-functionality.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/1290996936425718853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/1290996936425718853'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/12/disabling-browsers-back-functionality.html' title='Disabling browser’s back functionality after logout'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-6973898964657454822</id><published>2014-12-05T05:26:00.002-08:00</published><updated>2014-12-05T05:26:41.047-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PDF"/><category scheme="http://www.blogger.com/atom/ns#" term="Third Party API"/><title type='text'>Create/Read Advance PDF Report using iTextSharp in C# .NET: Part I</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;header&quot; style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px; margin: 0px; padding: 0px;&quot;&gt;
&lt;div class=&quot;summary&quot; id=&quot;ctl00_description&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 30px 0px 0px;&quot;&gt;
Create/Read/Write Advance PDF Report using iTextSharp.DLL in Desktop, Mobile, Web Application&lt;/div&gt;
&lt;div class=&quot;summary&quot; id=&quot;ctl00_description&quot; style=&quot;border: 0px; color: grey; margin: 0px; padding: 30px 0px 0px;&quot;&gt;
&lt;h2 id=&quot;introduction&quot; style=&quot;color: #ff9900; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Introduction&lt;/h2&gt;
&lt;div style=&quot;color: #111111; font-size: 13.63636302948px;&quot;&gt;
Recently I was looking for an Advance Tool to create complex PDF Report in C#.Net and I found&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;iTextSharp&lt;/code&gt;. The main problem is that lacks of Documentation. Yes, there are a few examples in C#, but that is not sufficient to the Beginners and the examples are in older version of&amp;nbsp;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-stretch: normal; margin: 0px; padding: 0px;&quot;&gt;iTextSharp&lt;/code&gt;, there are lots of change in the latest version. So, it will be difficult for beginners to convert older version to latest version. Besides, I think that if I write an Article on this, then it will help me also as a future reference as I&#39;ll describe each functionality of this library with example. Frankly speaking, in this Article, you find all the examples from Chapter 1 of the book&amp;nbsp;&lt;a href=&quot;http://www.mediafire.com/view/68eryrrxydpltt5/iText%20in%20Action%20Second%20Edition.pdf&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;iText in Action, Second Edition&lt;/a&gt;&amp;nbsp;which is written for Java Developers. I&#39;ll explain all the examples of the rest Chapters in my next release of this Article. So if any one is interested in using this library, he/she will get a good kick start.&lt;/div&gt;
&lt;div style=&quot;color: #111111; font-size: 13.63636302948px;&quot;&gt;
To know the history or any other details of iTextSharp, please go through the&amp;nbsp;&lt;a href=&quot;http://itextpdf.com/&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Official Website&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;text&quot; id=&quot;contentdiv&quot; itemprop=&quot;articleBody&quot; style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px; margin: 0px; padding: 10px 0px 0px;&quot;&gt;
&lt;ul class=&quot;download&quot; style=&quot;border: 0px; margin: 25px 0px 10px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;background: url(http://dj9okeyxktdvd.cloudfront.net/images/download24.png) 0% 50% no-repeat scroll transparent; border: 0px; font-weight: bold; list-style-type: none; margin: 0px 0px 6px -40px; padding: 0px 0px 1px 30px; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/KB/cs/686994/iTextDemo.zip&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Download source - 1.4 MB&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;background: url(http://dj9okeyxktdvd.cloudfront.net/images/download24.png) 0% 50% no-repeat scroll transparent; border: 0px; font-weight: bold; list-style-type: none; margin: 0px 0px 6px -40px; padding: 0px 0px 1px 30px; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/KB/cs/686994/iTextSharp_5.4.4.zip&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Download iTextSharp_5.4.4.zip - 1.4 MB&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Happy Codding :)&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/6973898964657454822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/12/createread-advance-pdf-report-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/6973898964657454822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/6973898964657454822'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/12/createread-advance-pdf-report-using.html' title='Create/Read Advance PDF Report using iTextSharp in C# .NET: Part I'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-6549913945370482102</id><published>2014-12-05T05:23:00.001-08:00</published><updated>2014-12-05T05:23:20.145-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Auto Emails"/><category scheme="http://www.blogger.com/atom/ns#" term="Email"/><title type='text'>Simple Windows Service which sends auto Email alerts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 id=&quot;ctl00_ArticleTitle&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 29px; font-weight: 200; margin: 0px 0px 15px; padding: 0px;&quot;&gt;
Simple Windows Service which sends auto Email alerts&lt;/h1&gt;
&lt;div&gt;
--------------------------------------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 30px; font-weight: 200; margin: 20px 0px 11px; padding: 0px 0px 10px;&quot;&gt;
Introduction&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;img alt=&quot;Sample screenshot&quot; height=&quot;11&quot; src=&quot;http://www.codeproject.com/KB/cs/WIndows_Service/upload.jpg&quot; style=&quot;border: 0px; height: 29px; margin: 0px; max-width: 100%; overflow: auto; padding: 0px; width: 26px;&quot; width=&quot;32&quot; /&gt;&amp;nbsp;&lt;a href=&quot;http://www.codeproject.com/KB/cs/WIndows_Service/GoodDay.zip&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Download sourcecode&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;Hi,&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;&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;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp; This is&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Ravindra&lt;/strong&gt;, Implemented a windows service in one of my project and like to place a&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;sample Windows service for the very Basic users of .Net.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; First&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Create&lt;/strong&gt;&amp;nbsp;a&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;table&lt;/strong&gt;&amp;nbsp;in&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Msaccess&lt;/strong&gt;&amp;nbsp;with Name&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&#39;Empdata&#39;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;img alt=&quot;Sample screenshot&quot; src=&quot;http://www.codeproject.com/KB/cs/WIndows_Service/t.GIF&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;/div&gt;
&lt;hr style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;1&lt;/strong&gt;.Open&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Visual Studio.net&lt;/strong&gt;&amp;nbsp;&amp;gt; Select&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;New Project&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&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;&lt;img alt=&quot;Sample screenshot&quot; src=&quot;http://www.codeproject.com/KB/cs/WIndows_Service/notification1.gif&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;/div&gt;
&lt;hr style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;2&lt;/strong&gt;.Select&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Windows Service&lt;/strong&gt;&amp;nbsp;and give Name as &#39;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;GoodDay&lt;/strong&gt;&#39; and Click&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Ok&lt;/strong&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;/div&gt;
&lt;hr style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;3&lt;/strong&gt;.Right Click the Design and Select Properties and give the&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Name&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;ServiceName&lt;/strong&gt;&amp;nbsp;as&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;GoodDay&lt;/strong&gt;&#39; and set&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;AutoLog&amp;nbsp;&lt;/strong&gt;to &#39;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;True&lt;/strong&gt;&#39;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;/div&gt;
&lt;hr style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;4&lt;/strong&gt;.Drag and drop the&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;OleDbConnection&lt;/strong&gt;&amp;nbsp;and Select its properties and change its name to&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;conn&lt;/strong&gt;&#39; and provide the connection String(I&amp;nbsp;provided the Database sample(Ms&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Access))&amp;nbsp;along with this code.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;/div&gt;
&lt;hr style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;5&lt;/strong&gt;.Right Click the Design and select View Code and&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Select&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Project&lt;/strong&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Add Reference&lt;/strong&gt;&amp;nbsp;&amp;gt; Select&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;System.Web&lt;/strong&gt;&amp;nbsp;&amp;gt;Press&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Ok&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;/div&gt;
&lt;hr style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;6&lt;/strong&gt;.Now add the following to your code&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;using&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;System.Web.Mail;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;System.Data.OleDb;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;hr style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;
&lt;span style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;7&lt;/strong&gt;.Declare&amp;nbsp;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;DateTime mdt=DateTime.Now&lt;/strong&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;hr style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;
&lt;span style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;8&lt;/strong&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp; In&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Main()&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edit the following Code&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;ServicesToRun =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;System.ServiceProcess.ServiceBase[] {&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;GoodDay() };&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;hr style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;
&lt;span style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;9&lt;/strong&gt;. Edit the following code in&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;onstart()&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;blockquote dir=&quot;ltr&quot; style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px; margin-right: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;DataSet ds =&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;new&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;DataSet();&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;protected&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;override&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;OnStart(&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;[] args)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;{&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;DateTime dt=DateTime.Now;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;conn.Open();&lt;/strong&gt;&lt;/div&gt;
&lt;/span&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;OleDbDataAdapter da=&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;new&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;OleDbDataAdapter(&quot;select * from Empdata&quot;,conn);&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;da.Fill(ds);&lt;/strong&gt;&lt;/div&gt;
&lt;/span&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;if&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;(dt.ToShortDateString()==mdt.ToShortDateString())&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;{&lt;/strong&gt;&lt;/div&gt;
&lt;/span&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;foreach&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;(DataRow dr&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;in&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;ds.Tables[0].Rows)&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;{&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;mdt=DateTime.Now.AddDays(+1);&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;String mailtxt=&quot;&quot;;&lt;/strong&gt;&lt;/div&gt;
&lt;/span&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;MailMessage mm =&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: blue; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;new&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;MailMessage();&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;border: 0px; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;mm.BodyFormat = MailFormat.Html;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;mm.To = dr[&quot;emp_email&quot;].ToString();&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;mm.From = &quot;xyz@xyz.com&quot;;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;mm.Subject=&quot;Good Day&quot;;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;mailtxt = &quot;&amp;lt;font face=&#39;verdana&#39; color=&#39;#FF9900&#39;&amp;gt;&amp;lt;b&amp;gt;&quot;+&quot;Hi &quot;+dr[&quot;emp_name&quot;].ToString()+&quot;,&quot; + &quot;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&quot;;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;mailtxt=mailtxt+&quot;&amp;lt;font face=&#39;verdana&#39; color=&#39;#FF0000&#39;&amp;gt;&amp;lt;b&amp;gt;&quot;+&quot;Good Day.&quot; + &quot;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&quot;;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;mailtxt=mailtxt+&quot;&amp;lt;font face=&#39;verdana&#39; color=&#39;#008080&#39;&amp;gt;&amp;lt;b&amp;gt;&quot;+&quot;May today be filled with sunshine and smile, laughter and love.&quot; + &quot;&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&quot;;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;mailtxt=mailtxt+&quot;&amp;lt;font face=&#39;verdana&#39; color=&#39;#0000FF&#39;&amp;gt;&amp;lt;b&amp;gt;Cheers!&quot; + &quot;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&quot;;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;mm.Body = mailtxt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;SmtpMail.SmtpServer=&quot;localhost&quot;;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;SmtpMail.Send(mm);&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;}&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;}&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;}&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;hr /&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;10&lt;/strong&gt;.Go to&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Design&lt;/strong&gt;,right click and Select&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Add Installer&lt;/strong&gt;&amp;nbsp;,you will notice two controls&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp; serviceProcessInstaller1,serviceInstaller1&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;/div&gt;
&lt;hr /&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;11&lt;/strong&gt;.Select&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;serviceProcessInstaller1&lt;/strong&gt;&amp;nbsp;and go to its properties and change the Account&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type to&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&#39;Local System&#39;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;/div&gt;
&lt;hr /&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;12&lt;/strong&gt;. Select&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;serviceInstaller1&lt;/strong&gt;&amp;nbsp;and go to its properties and change&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;DisplayName&lt;/strong&gt;&amp;nbsp;and&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;ServiceName&lt;/strong&gt;&amp;nbsp;to &#39;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;GoodDay&lt;/strong&gt;&#39; and make the&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;StartType&lt;/strong&gt;&amp;nbsp;to&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&#39;Automatic&#39;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;/div&gt;
&lt;hr /&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;13&lt;/strong&gt;.Build the Solution(&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Cntrl+Shift+B&lt;/strong&gt;)&lt;/div&gt;
&lt;div style=&quot;font-size: 14px;&quot;&gt;
&lt;/div&gt;
&lt;hr /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;14&lt;/strong&gt;.Open the Visual Studio&amp;nbsp;.Net&amp;nbsp;Command Prompt and give the path of application&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for example C:\bin\Debug and then type&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;InstallUtil GoodDay.exe&lt;/strong&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;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;to uninstall,&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;InstallUtil&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/u GoodDay.exe&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;img alt=&quot;Sample screenshot&quot; src=&quot;http://www.codeproject.com/KB/cs/WIndows_Service/pic.gif&quot; style=&quot;border: 0px; height: auto; margin: 0px; max-width: 100%; overflow: auto; padding: 0px;&quot; /&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;15&lt;/strong&gt;. After Installation ,right click&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;My Computer&lt;/strong&gt;&amp;nbsp;and&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select &#39;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Manage&lt;/strong&gt;&#39;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Select&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&#39;Service and Applications&#39;&lt;/strong&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;and in that Select&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&#39;Services&#39;&lt;/strong&gt;&lt;br /&gt;
Select&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&#39;GoodDay&#39;&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;start&lt;/strong&gt;&amp;nbsp;the&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Service&lt;/strong&gt;.&lt;/blockquote&gt;
&lt;br /&gt;
Happy Codding&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;All the Best...................&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/6549913945370482102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/12/simple-windows-service-which-sends-auto.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/6549913945370482102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/6549913945370482102'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/12/simple-windows-service-which-sends-auto.html' title='Simple Windows Service which sends auto Email alerts'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-4235189242358351051</id><published>2014-12-05T05:19:00.000-08:00</published><updated>2014-12-05T05:19:03.690-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Script"/><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>How can i get value from three input text box at time in jquery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 itemprop=&quot;name&quot; style=&quot;background: rgb(255, 255, 255); border: 0px; font-family: &#39;Trebuchet MS&#39;, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 23px; line-height: 1.3; margin: 0px 0px 7px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;a class=&quot;question-hyperlink&quot; href=&quot;http://stackoverflow.com/questions/27316255/how-can-i-get-value-from-three-input-text-box-at-time-in-jquery&quot; style=&quot;background: transparent; border: 0px; color: black; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;How can i get value from three input text box at time in jquery&lt;/a&gt;&lt;/h1&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.8048000335693px;&quot;&gt;i want this three value at a time or in array form.How can i get?? here is html-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.8048000335693px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 17.8048000335693px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;background: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;input&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;none&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;http://localhost/JSG/upload/Hydrangeas6.jpg&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;imgstr&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;imgstr[]&#39;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;text&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;background: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;input&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;none&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;http://localhost/JSG/upload/Jellyfish4.jpg&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;imgstr&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;imgstr[]&#39;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;text&#39;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;background: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;background: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;input&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;none&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;http://localhost/JSG/upload/Koala1.jpg&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;imgstr&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;imgstr[]&#39;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;background: transparent; border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;background: transparent; border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;text&#39;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;background: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.8048000335693px;&quot;&gt;You can use&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://api.jquery.com/map/&quot; rel=&quot;nofollow&quot; style=&quot;background: rgb(255, 255, 255); border: 0px; color: #4a6b82; cursor: pointer; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.8048000335693px; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;.map()&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 17.8048000335693px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; images &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; $&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;.imgstr&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;map&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}).&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;();&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
Enjoy Coding :)&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/4235189242358351051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/12/how-can-i-get-value-from-three-input.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/4235189242358351051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/4235189242358351051'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/12/how-can-i-get-value-from-three-input.html' title='How can i get value from three input text box at time in jquery'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-928803665858617772</id><published>2014-12-05T05:15:00.000-08:00</published><updated>2014-12-05T05:15:11.296-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Script"/><category scheme="http://www.blogger.com/atom/ns#" term="popup"/><title type='text'>Refresh parent page after close popup page in asp c# ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a class=&quot;header tight padded-top&quot; href=&quot;http://www.codeproject.com/Questions/850238/refresh-parent-page-after-close-popup-page-in-asp&quot; id=&quot;ctl00_ctl00_MC_AMC_TitleLink&quot; style=&quot;background-color: white; border: 0px; color: purple; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px; margin: 0px !important; padding: 0px !important; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h1 id=&quot;ctl00_ctl00_MC_AMC_ItemTitle&quot; style=&quot;color: #333333; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 29px; font-weight: 200; line-height: normal; margin: 25px 0px 0px; padding: 0px; text-align: left;&quot;&gt;
refresh parent page after close popup page in asp c# ?&lt;/h1&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;Hi all&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;how can i refresh parent web page after i close popup page&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;my popup page used to login&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;so i need to refresh parent page after i click login button&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #111111; font-family: Segoe UI, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;Use below code.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #111111; font-family: Segoe UI, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 13.63636302948px;&quot;&gt;In popup window Cross Button Click, Do add the below code.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #111111; font-family: Segoe UI, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;Just Copy and past&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #111111; font-family: Segoe UI, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;onclick=&quot;javascript:window.opener.location.reload(true);self.close();&quot;&lt;/b&gt;&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/928803665858617772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/12/refresh-parent-page-after-close-popup.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/928803665858617772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/928803665858617772'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/12/refresh-parent-page-after-close-popup.html' title='Refresh parent page after close popup page in asp c# ?'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-7631462203178828272</id><published>2014-11-28T22:22:00.001-08:00</published><updated>2014-11-28T22:22:43.591-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><category scheme="http://www.blogger.com/atom/ns#" term="open source"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Create new custom category attribute - Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
if you want to create custom textbox attribute use this code.&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-1176331309001088022&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 1.4; position: relative; width: 688px;&quot;&gt;
&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;color: #5d5d5d; line-height: 20.7900009155273px;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Step 1&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background: rgb(51, 51, 51); border-radius: 15px; color: white; overflow-y: scroll;&quot;&gt;
&lt;div style=&quot;padding: 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 11pt; line-height: 20.7900009155273px;&quot;&gt;equire_once(&#39;app/Mage.php&#39;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;Mage::app()-&amp;gt;setCurrentStore(Mage::getModel(&#39;core/store&#39;)-&amp;gt;load(Mage_Core_Model_App::ADMIN_STORE_ID));&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;$installer&amp;nbsp;=&amp;nbsp;new&amp;nbsp;Mage_Sales_Model_Mysql4_Setup;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;$attribute&amp;nbsp;&amp;nbsp;=&amp;nbsp;array(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;group&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;General&#39;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;input&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;text&#39;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;type&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;varchar&#39;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;label&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;Brand&amp;nbsp;value&#39;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;backend&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;&#39;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;visible&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;true,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;required&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;false,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;visible_on_front&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;true,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;global&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;$installer-&amp;gt;addAttribute(&#39;catalog_category&#39;,&amp;nbsp;&#39;brand_value&#39;,&amp;nbsp;$attribute);&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;$installer-&amp;gt;endSetup();&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;b&gt;Step 2&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 12pt; line-height: 20.7900009155273px;&quot;&gt;paste&amp;nbsp;this&amp;nbsp;code&amp;nbsp;in&amp;nbsp;header.phml&amp;nbsp;file&amp;nbsp;and&amp;nbsp;check&amp;nbsp;category&amp;nbsp;menu.&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: rgb(51, 51, 51); border-radius: 15px; color: white; height: 360px; line-height: 20.7900009155273px; overflow-y: scroll;&quot;&gt;
&lt;div style=&quot;padding: 15px;&quot;&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background: rgb(192, 161, 84); color: #333333; font-family: Arial; font-size: 10.5pt;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;f&amp;nbsp;you&amp;nbsp;want&amp;nbsp;to&amp;nbsp;create&amp;nbsp;custom&amp;nbsp;selectbox&amp;nbsp;for&amp;nbsp;Yes/no&amp;nbsp;attribute&amp;nbsp;use&amp;nbsp;this&amp;nbsp;code&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;require_once(&#39;app/Mage.php&#39;);&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;Mage::app()-&amp;gt;setCurrentStore(Mage::getModel(&#39;core/store&#39;)-&amp;gt;load(Mage_Core_Model_App::ADMIN_STORE_ID));&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;$installer&amp;nbsp;=&amp;nbsp;new&amp;nbsp;Mage_Sales_Model_Mysql4_Setup;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;$attribute&amp;nbsp;&amp;nbsp;=&amp;nbsp;array(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;group&#39;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;General&#39;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;input&#39;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;select&#39;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;type&#39;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;int&#39;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;label&#39;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;Is&amp;nbsp;Mega&amp;nbsp;Menu&#39;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;source&#39;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;eav/entity_attribute_source_boolean&#39;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;global&#39;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;visible&#39;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;1,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;required&#39;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;0,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;visible_on_front&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;0,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;is_html_allowed_on_front&#39;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;0,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;is_configurable&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;0,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;searchable&#39;&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;&amp;nbsp;=&amp;gt;&amp;nbsp;0,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;filterable&#39;&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;&amp;nbsp;=&amp;gt;&amp;nbsp;0,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;comparable&#39;&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;&amp;nbsp;=&amp;gt;&amp;nbsp;0,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;unique&#39;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;false,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;user_defined&#39;&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;gt;&amp;nbsp;false,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;default&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;0&#39;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;is_user_defined&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;false,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;used_in_product_listing&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt;&amp;nbsp;true&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;$installer-&amp;gt;addAttribute(&#39;catalog_category&#39;,&amp;nbsp;&#39;mega_menu&#39;,&amp;nbsp;$attribute);&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;$installer-&amp;gt;endSetup();&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;post-footer&quot; style=&quot;background-color: white; color: #999999; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 1.6; margin: 0.5em 0px 0px;&quot;&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;paste&amp;nbsp;this&amp;nbsp;code&amp;nbsp;in&amp;nbsp;header.phml&amp;nbsp;file&amp;nbsp;and&amp;nbsp;check&amp;nbsp;category&amp;nbsp;menu.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/7631462203178828272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/11/create-new-custom-category-attribute.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/7631462203178828272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/7631462203178828272'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/11/create-new-custom-category-attribute.html' title='Create new custom category attribute - Magento'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-1176331309001088022</id><published>2014-11-25T05:55:00.004-08:00</published><updated>2014-11-25T05:55:43.284-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Generate Category Tree Recursively - Magento</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;background-color: white; color: #5d5d5d; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20.7900009155273px;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Output View&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEKBr5NymY7P_BmlhkfPvUBk2H2u8kTqHeNOTeXnNdvD9tHey71TmdRBQEQ6z9m8fb7F12GlVJ6ZwxeMvpX6EwJ479WhrKVy1Z1wRXYPhm5XoSfQUdDbKoWihxk4Qr6MPzbrwmHF7qssU3/s1600/demo.png&quot; imageanchor=&quot;1&quot; style=&quot;color: #73a1d0; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEKBr5NymY7P_BmlhkfPvUBk2H2u8kTqHeNOTeXnNdvD9tHey71TmdRBQEQ6z9m8fb7F12GlVJ6ZwxeMvpX6EwJ479WhrKVy1Z1wRXYPhm5XoSfQUdDbKoWihxk4Qr6MPzbrwmHF7qssU3/s1600/demo.png&quot; style=&quot;border: none; position: relative;&quot; width=&quot;314&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Step 1&lt;/b&gt;&amp;nbsp;Goto theme/layout/catalog.xml put this code in file&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background: rgb(51, 51, 51); border-radius: 15px; color: white; overflow-y: scroll;&quot;&gt;
&lt;div style=&quot;padding: 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;reference name=&quot;left&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;block type=&quot;catalog/navigation&quot; name=&quot;category_list_sidebar&quot; template=&quot;catalog/navigation/categorymenu.phtml&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/reference&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;b&gt;Step 2&lt;/b&gt;&amp;nbsp;Goto theme/template/catalog/ thane create navigation folder and put&amp;nbsp;&lt;a href=&quot;https://drive.google.com/file/d/0Bye_2MofBshtWXBReTVCOEp3U1U/edit?usp=sharing&quot; style=&quot;color: #73a1d0; text-decoration: none;&quot;&gt;categorymenu.phtml&lt;/a&gt;&amp;nbsp;file inside.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: rgb(51, 51, 51); border-radius: 15px; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; height: 360px; line-height: 20.7900009155273px; overflow-y: scroll;&quot;&gt;
&lt;div style=&quot;padding: 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$_helper = Mage::helper(&#39;catalog/category&#39;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$_categories = $_helper-&amp;gt;getStoreCategories();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$currentCategory = Mage::registry(&#39;current_category&#39;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; ?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;block block-list block-categorys&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;block-title&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;strong&amp;gt;&amp;lt;span&amp;gt;Category&amp;lt;/span&amp;gt;&amp;lt;/strong&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;div class=&quot;block-content&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ul class=&quot;category_sub&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;?php if (count($_categories) &amp;gt; 0){ ?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;?php&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;global $index;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;global $data;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;foreach($_categories as $_category){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;$check_child_class = check_child_par($_category-&amp;gt;getId());&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;$collaps = ($check_child_class)? &quot;&amp;lt;span class=&#39;show-cat&#39;&amp;gt;+&amp;lt;/span&amp;gt;&quot; : &quot;&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;echo &quot;&amp;lt;li class=&#39;&quot;.$check_child_class.&quot;&#39;&amp;gt;&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;echo &quot;&amp;lt;a href=&#39;&quot;.$_helper-&amp;gt;getCategoryUrl($_category).&quot;&#39;&amp;gt;&quot;.$_category-&amp;gt;getName();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;echo &quot; (&quot;.product_count($_category-&amp;gt;getId()).&quot;)&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;echo &quot;&amp;lt;/a&amp;gt;&quot;.$collaps;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;echo check_child($_category-&amp;gt;getId());&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;echo &quot;&amp;lt;/li&amp;gt;&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;function check_child($cid){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;$_helper = Mage::helper(&#39;catalog/category&#39;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;$_subcategory = Mage::getModel(&#39;catalog/category&#39;)-&amp;gt;load($cid);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;$_subsubcategories = $_subcategory-&amp;gt;getChildrenCategories();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if (count($_subsubcategories) &amp;gt; 0){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;echo &quot;&amp;lt;ul&amp;gt;&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;foreach($_subsubcategories as $_subcate){&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;$check_child_class = check_child_par($_subcate-&amp;gt;getId());&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;$collaps = ($check_child_class)? &quot;&amp;lt;span class=&#39;show-cat&#39;&amp;gt;+&amp;lt;/span&amp;gt;&quot; : &quot;&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;echo &quot;&amp;lt;li class=&#39;&quot;.$check_child_class.&quot;&#39;&amp;gt;&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;echo &quot;&amp;lt;a href=&#39;&quot;.$_helper-&amp;gt;getCategoryUrl($_subcate).&quot;&#39;&amp;gt;&quot;.$_subcate-&amp;gt;getName();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;echo &quot; (&quot;.product_count($_subcate-&amp;gt;getId()).&quot;)&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;echo &quot;&amp;lt;/a&amp;gt;&quot;.$collaps;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;echo check_child($_subcate-&amp;gt;getId());&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;echo &quot;&amp;lt;/li&amp;gt;&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;echo &quot;&amp;lt;/ul&amp;gt;&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}else{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;return &quot;&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/1176331309001088022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/11/generate-category-tree-recursively.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/1176331309001088022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/1176331309001088022'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/11/generate-category-tree-recursively.html' title='Generate Category Tree Recursively - Magento'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEKBr5NymY7P_BmlhkfPvUBk2H2u8kTqHeNOTeXnNdvD9tHey71TmdRBQEQ6z9m8fb7F12GlVJ6ZwxeMvpX6EwJ479WhrKVy1Z1wRXYPhm5XoSfQUdDbKoWihxk4Qr6MPzbrwmHF7qssU3/s72-c/demo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-4023831995425121411</id><published>2014-06-24T02:23:00.000-07:00</published><updated>2014-06-24T02:32:23.125-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="advance java script"/><category scheme="http://www.blogger.com/atom/ns#" term="Coffee Script"/><category scheme="http://www.blogger.com/atom/ns#" term="new script"/><title type='text'>Coffee Script</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 22pt; font-weight: bold;&quot;&gt;Definition&lt;/span&gt;&lt;span style=&quot;; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;Coffee&amp;nbsp;Script&amp;nbsp;is&amp;nbsp;an&amp;nbsp;attempt&amp;nbsp;to&amp;nbsp;expose&amp;nbsp;the&amp;nbsp;good&amp;nbsp;parts&amp;nbsp;of&amp;nbsp;JavaScript&amp;nbsp;in&amp;nbsp;a&amp;nbsp;simple&amp;nbsp;way.&amp;nbsp;The&amp;nbsp;golden&amp;nbsp;rule&amp;nbsp;of&amp;nbsp;Coffee&amp;nbsp;Script&amp;nbsp;is:&amp;nbsp;&quot;It&#39;s&amp;nbsp;just&amp;nbsp;JavaScript&quot;.&amp;nbsp;The&amp;nbsp;code&amp;nbsp;compiles&amp;nbsp;one-to-one&amp;nbsp;into&amp;nbsp;the&amp;nbsp;equivalent&amp;nbsp;JS,&amp;nbsp;and&amp;nbsp;there&amp;nbsp;is&amp;nbsp;no&amp;nbsp;interpretation&amp;nbsp;at&amp;nbsp;runtime.&lt;/span&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; mso-list: l11 level1 lfo1; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot; color: #262626; font-family: Wingdings; font-size: 18pt;&quot;&gt;²&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 18pt;&quot;&gt;Overview&amp;nbsp;Of&amp;nbsp;Coffee&amp;nbsp;Script&lt;/span&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 63.0000pt; margin-top: 0pt; mso-list: l10 level1 lfo2; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #262626; font-family: Wingdings; font-size: 12pt;&quot;&gt;l&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;Coffee&amp;nbsp;Script&lt;/span&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&amp;nbsp;is&amp;nbsp;a&amp;nbsp;small&amp;nbsp;language&amp;nbsp;that&amp;nbsp;compiles&amp;nbsp;into&amp;nbsp;JavaScript.&lt;/span&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 63.0000pt; margin-top: 0pt; mso-list: l10 level1 lfo2; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot; color: #262626; font-family: Wingdings; font-size: 12pt;&quot;&gt;l&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;Coffee&amp;nbsp;Script&lt;/span&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&amp;nbsp;does&lt;/span&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&amp;nbsp;not&lt;/span&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&amp;nbsp;have&amp;nbsp;the&amp;nbsp;semi-colons&amp;nbsp;and&amp;nbsp;curly&amp;nbsp;braces,&amp;nbsp;similar&amp;nbsp;syntax&amp;nbsp;to&amp;nbsp;the&amp;nbsp;likes&lt;/span&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&amp;nbsp;js.&lt;/span&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 63.0000pt; margin-top: 0pt; mso-list: l10 level1 lfo2; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot; color: #262626; font-family: Wingdings; font-size: 12pt;&quot;&gt;l&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;This&amp;nbsp;means&amp;nbsp;you&amp;nbsp;can&amp;nbsp;write&amp;nbsp;less&amp;nbsp;code&amp;nbsp;and&amp;nbsp;do&amp;nbsp;things&amp;nbsp;faster.&amp;nbsp;It&amp;nbsp;also&amp;nbsp;makes&amp;nbsp;it&amp;nbsp;easier&amp;nbsp;to&amp;nbsp;read&amp;nbsp;and&amp;nbsp;maintain.&lt;/span&gt;&lt;span style=&quot; color: #262626; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; mso-list: l2 level1 lfo3; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 20.0000pt; font-weight: bold;&quot;&gt;v&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;Variables&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-align: justify; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;In&amp;nbsp;js&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;var&amp;nbsp;message;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;message&amp;nbsp;=&amp;nbsp;&quot;Ready&amp;nbsp;for&amp;nbsp;some&amp;nbsp;Coffee?&quot;;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;alert(message);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-align: justify; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;In&amp;nbsp;Coffee&amp;nbsp;script&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;message&amp;nbsp;=&amp;nbsp;&quot;Ready&amp;nbsp;for&amp;nbsp;some&amp;nbsp;Coffee?&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;alert(message)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 63.0000pt; margin-top: 0pt; mso-list: l1 level1 lfo4; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 12.0000pt;&quot;&gt;l&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;No&amp;nbsp;variable&amp;nbsp;declarations&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 63.0000pt; margin-top: 0pt; mso-list: l1 level1 lfo4; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 12.0000pt;&quot;&gt;l&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;No&amp;nbsp;semicolons&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; mso-list: l2 level1 lfo3; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 20.0000pt; font-weight: bold;&quot;&gt;v&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;Function&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee&amp;nbsp;=&amp;nbsp;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;confirm&amp;nbsp;&quot;Ready&amp;nbsp;for&amp;nbsp;some&amp;nbsp;Coffee?&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 63.0000pt; margin-top: 0pt; mso-list: l1 level1 lfo4; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 12.0000pt;&quot;&gt;l&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;Always&amp;nbsp;has&amp;nbsp;a&amp;nbsp;return&amp;nbsp;value&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;Return&amp;nbsp;String&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee&amp;nbsp;=&amp;nbsp;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;answer&amp;nbsp;=&amp;nbsp;confirm&amp;nbsp;&quot;Ready&amp;nbsp;for&amp;nbsp;some&amp;nbsp;Coffee?&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&quot;Your&amp;nbsp;answer&amp;nbsp;is&amp;nbsp;&quot;&amp;nbsp;+&amp;nbsp;answer&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; mso-list: l2 level1 lfo3; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 20.0000pt; font-weight: bold;&quot;&gt;v&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;Function&amp;nbsp;Parameters&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee&amp;nbsp;=&amp;nbsp;(message)&amp;nbsp;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;answer&amp;nbsp;=&amp;nbsp;confirm&amp;nbsp;message&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&quot;Your&amp;nbsp;answer&amp;nbsp;is&amp;nbsp;#{answer}&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; mso-list: l2 level1 lfo3; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 20.0000pt; font-weight: bold;&quot;&gt;v&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;Calling&amp;nbsp;Functions&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee&amp;nbsp;=&amp;nbsp;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&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;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee()&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee&amp;nbsp;=&amp;nbsp;(message)&amp;nbsp;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;==&amp;nbsp;&amp;nbsp;&amp;nbsp;1.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee(&quot;Yo&quot;)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;2.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee&amp;nbsp;&quot;Yo&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;parenthesis&amp;nbsp;optional&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee&amp;nbsp;=&amp;nbsp;(message,&amp;nbsp;other)&amp;nbsp;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;==&amp;nbsp;&amp;nbsp;1.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee(&quot;Yo&quot;,&amp;nbsp;2&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&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;&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;&amp;nbsp;2.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee&amp;nbsp;&quot;Yo&quot;,&amp;nbsp;2&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;If&amp;nbsp;we&amp;nbsp;want&amp;nbsp;a&amp;nbsp;default&amp;nbsp;message&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee&amp;nbsp;=&amp;nbsp;(message&amp;nbsp;=&amp;nbsp;&quot;Ready&amp;nbsp;for&amp;nbsp;some&amp;nbsp;Coffee?&quot;)&amp;nbsp;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;answer&amp;nbsp;=&amp;nbsp;confirm&amp;nbsp;message&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&quot;Your&amp;nbsp;answer&amp;nbsp;is&amp;nbsp;#{answer}&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; mso-list: l2 level1 lfo3; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 20.0000pt; font-weight: bold;&quot;&gt;v&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;If&amp;nbsp;Statement&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;In&amp;nbsp;js&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 84.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;if&amp;nbsp;(age&amp;nbsp;&amp;lt;&amp;nbsp;18)&amp;nbsp;{&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 84.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;alert(&#39;Under&amp;nbsp;age&#39;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 84.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;In&amp;nbsp;Coffee&amp;nbsp;script&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 105.2500pt; margin-top: 0pt; mso-list: l3 level1 lfo5; text-indent: -21.2500pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;if&amp;nbsp;age&amp;nbsp;&amp;lt;&amp;nbsp;18&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;alert&amp;nbsp;&#39;Under&amp;nbsp;age&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 105.2500pt; margin-top: 0pt; mso-list: l3 level1 lfo5; text-indent: -21.2500pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;alert&amp;nbsp;&#39;Under&amp;nbsp;age&#39;&amp;nbsp;if&amp;nbsp;age&amp;nbsp;&amp;lt;&amp;nbsp;18&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 105.2500pt; margin-top: 0pt; mso-list: l3 level1 lfo5; text-indent: -21.2500pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt;&quot;&gt;3.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;if&amp;nbsp;age&amp;nbsp;&amp;lt;&amp;nbsp;18&amp;nbsp;then&amp;nbsp;alert&amp;nbsp;&#39;Under&amp;nbsp;age&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; mso-list: l2 level1 lfo3; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 20.0000pt; font-weight: bold;&quot;&gt;v&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;Operators&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;border-collapse: collapse; mso-table-layout-alt: fixed; padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 434.0000pt;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 47.6500pt;&quot;&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: 0.5000pt solid rgb(0,0,0); border-right: 0.5000pt solid rgb(0,0,0); border-top: 0.5000pt solid rgb(0,0,0); mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: 0.5000pt solid rgb(0,0,0); mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;Coffee&amp;nbsp;Script&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: none; border-right: 0.5000pt solid rgb(0,0,0); border-top: 0.5000pt solid rgb(0,0,0); mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: none; mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;JavaScript&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 31.9500pt;&quot;&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: 0.5000pt solid rgb(0,0,0); border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: 0.5000pt solid rgb(0,0,0); mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;or&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;is&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: none; border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: none; mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;===&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 31.9500pt;&quot;&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: 0.5000pt solid rgb(0,0,0); border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: 0.5000pt solid rgb(0,0,0); mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;isnt&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: none; border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: none; mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;!==&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 31.9500pt;&quot;&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: 0.5000pt solid rgb(0,0,0); border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: 0.5000pt solid rgb(0,0,0); mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;not&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: none; border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: none; mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 31.9500pt;&quot;&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: 0.5000pt solid rgb(0,0,0); border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: 0.5000pt solid rgb(0,0,0); mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;and&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: none; border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: none; mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 31.9500pt;&quot;&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: 0.5000pt solid rgb(0,0,0); border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: 0.5000pt solid rgb(0,0,0); mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;or&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: none; border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: none; mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;||&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 31.9500pt;&quot;&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: 0.5000pt solid rgb(0,0,0); border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: 0.5000pt solid rgb(0,0,0); mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;true&amp;nbsp;yes&amp;nbsp;on&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: none; border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: none; mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;height: 32.4500pt;&quot;&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: 0.5000pt solid rgb(0,0,0); border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: 0.5000pt solid rgb(0,0,0); mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;false&amp;nbsp;no&amp;nbsp;off&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom: 0.5000pt solid rgb(0,0,0); border-left: none; border-right: 0.5000pt solid rgb(0,0,0); border-top: none; mso-border-bottom-alt: 0.5000pt solid rgb(0,0,0); mso-border-left-alt: none; mso-border-right-alt: 0.5000pt solid rgb(0,0,0); mso-border-top-alt: 0.5000pt solid rgb(0,0,0); padding: 0.0000pt 5.4000pt 0.0000pt 5.4000pt; width: 217.0000pt;&quot; valign=&quot;top&quot; width=&quot;289&quot;&gt;&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 16.0000pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; mso-list: l2 level1 lfo3; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 20.0000pt; font-weight: bold;&quot;&gt;v&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;Switch&amp;nbsp;Statements&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;message&amp;nbsp;=&amp;nbsp;switch&amp;nbsp;cupsOfCoffee&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;when&amp;nbsp;0&amp;nbsp;then&amp;nbsp;&#39;Asleep&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;when&amp;nbsp;1&amp;nbsp;then&amp;nbsp;&#39;Eyes&amp;nbsp;Open&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;when&amp;nbsp;2&amp;nbsp;then&amp;nbsp;&#39;Buzzed&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;else&amp;nbsp;&#39;Dangerous&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; mso-list: l2 level1 lfo3; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 20.0000pt; font-weight: bold;&quot;&gt;v&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;Arrays&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;Ranges&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 84.0000pt; margin-top: 0pt; mso-list: l4 level1 lfo6; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 14.0000pt; font-weight: bold;&quot;&gt;l&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;In&amp;nbsp;js&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 105.2500pt; margin-top: 0pt; mso-list: l5 level1 lfo7; text-indent: -21.2500pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;v&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;ar&amp;nbsp;range&amp;nbsp;=&amp;nbsp;[1,&amp;nbsp;2,&amp;nbsp;3,&amp;nbsp;4];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 105.2500pt; margin-top: 0pt; mso-list: l5 level1 lfo7; text-indent: -21.2500pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;var&amp;nbsp;range&amp;nbsp;=&amp;nbsp;[1,&amp;nbsp;2,&amp;nbsp;3];&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 84.0000pt; margin-top: 0pt; mso-list: l4 level1 lfo6; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 14.0000pt; font-weight: bold;&quot;&gt;l&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;In&amp;nbsp;Coffee&amp;nbsp;script&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 105.2500pt; margin-top: 0pt; mso-list: l6 level1 lfo8; text-indent: -21.2500pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;range&amp;nbsp;=&amp;nbsp;[1..4]&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;(Two&amp;nbsp;Dots&amp;nbsp;include&amp;nbsp;end)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 105.2500pt; margin-top: 0pt; mso-list: l6 level1 lfo8; text-indent: -21.2500pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;range&amp;nbsp;=&amp;nbsp;[1...4]&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;(Three&amp;nbsp;Dots&amp;nbsp;excludes&amp;nbsp;end)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; mso-list: l2 level1 lfo3; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 20.0000pt; font-weight: bold;&quot;&gt;v&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;Objects&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.2500pt; margin-top: 0pt; mso-list: l7 level1 lfo9; text-indent: -21.2500pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee&amp;nbsp;=&amp;nbsp;{&amp;nbsp;name:&amp;nbsp;&#39;French&#39;,&amp;nbsp;strength:&amp;nbsp;1&amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; mso-list: l8 level1 lfo10; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 14.0000pt; font-weight: bold;&quot;&gt;l&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;curly&amp;nbsp;brackets&amp;nbsp;optional&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.2500pt; margin-top: 0pt; mso-list: l7 level1 lfo9; text-indent: -21.2500pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee&amp;nbsp;=&amp;nbsp;name:&amp;nbsp;&#39;French&#39;,&amp;nbsp;strength:&amp;nbsp;1&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 42.0000pt; margin-top: 0pt; mso-list: l9 level1 lfo11; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 14.0000pt; font-weight: bold;&quot;&gt;l&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;commas&amp;nbsp;optional&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 14.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.2500pt; margin-top: 0pt; mso-list: l7 level1 lfo9; text-indent: -21.2500pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt;&quot;&gt;3.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;coffee&amp;nbsp;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;name:&amp;nbsp;&#39;French&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;strength:&amp;nbsp;1&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 12.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; text-indent: 21.0000pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; mso-list: l2 level1 lfo3; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 20.0000pt; font-weight: bold;&quot;&gt;v&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;Advantages&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;Coffee&amp;nbsp;Script&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&amp;nbsp;has&amp;nbsp;much&amp;nbsp;nicer,&amp;nbsp;more&amp;nbsp;Ruby-like&amp;nbsp;syntax&amp;nbsp;than&amp;nbsp;JavaScript.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;JavaScript&amp;nbsp;does&amp;nbsp;some&amp;nbsp;very&amp;nbsp;silly&amp;nbsp;things,&amp;nbsp;while&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;Coffee&amp;nbsp;Script&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&amp;nbsp;has&amp;nbsp;several&amp;nbsp;safeguards&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;to&amp;nbsp;prevent&amp;nbsp;unwanted&amp;nbsp;behavior.&amp;nbsp;(For&amp;nbsp;example,&amp;nbsp;if&amp;nbsp;you&amp;nbsp;forget&amp;nbsp;to&amp;nbsp;use&amp;nbsp;the&amp;nbsp;&quot;var&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;keyword&amp;nbsp;to&amp;nbsp;define&amp;nbsp;new&amp;nbsp;variables&amp;nbsp;in&amp;nbsp;JavaScript,&amp;nbsp;they&amp;nbsp;will&amp;nbsp;suddenly&amp;nbsp;get&amp;nbsp;global&amp;nbsp;scope&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;with&amp;nbsp;no&amp;nbsp;warnings!&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;Coffee&amp;nbsp;Script&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&amp;nbsp;protects&amp;nbsp;you&amp;nbsp;from&amp;nbsp;this&amp;nbsp;behavior).&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;Coffee&amp;nbsp;Script&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&amp;nbsp;should&amp;nbsp;work&amp;nbsp;nicely&amp;nbsp;with&amp;nbsp;jQuery&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(254,254,254); line-height: 19.5000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 3.1500pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #4b4b4b; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;Python&amp;nbsp;style&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #4b4b4b; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;white&amp;nbsp;spacing&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #4b4b4b; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(254,254,254); line-height: 19.5000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #4b4b4b; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;Ruby&amp;nbsp;styled&amp;nbsp;lightweight&amp;nbsp;syntax&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #4b4b4b; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(254,254,254); line-height: 19.5000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #4b4b4b; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;Concise&amp;nbsp;function&amp;nbsp;declarations&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #4b4b4b; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(254,254,254); line-height: 19.5000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #4b4b4b; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;Class&amp;nbsp;based&amp;nbsp;inheritance&lt;/span&gt;&lt;span style=&quot; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;margin-bottom: 0pt; margin-left: 21.0000pt; margin-top: 0pt; mso-list: l2 level1 lfo3; text-indent: -21.0000pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &#39;Wingdings&#39;; font-size: 20.0000pt; font-weight: bold;&quot;&gt;v&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;Disadvantages&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Monaco&#39;; font-size: 20.0000pt; font-weight: bold; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;Difficult&amp;nbsp;to&amp;nbsp;learn.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;Switch&amp;nbsp;from&amp;nbsp;JavaScript&amp;nbsp;to&amp;nbsp;coffee&amp;nbsp;script&amp;nbsp;not&amp;nbsp;easy.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;Coffee&amp;nbsp;script&amp;nbsp;was&amp;nbsp;designed&amp;nbsp;in&amp;nbsp;the&amp;nbsp;vein&amp;nbsp;of&amp;nbsp;Python&amp;nbsp;and&amp;nbsp;Ruby,&amp;nbsp;so&amp;nbsp;if&amp;nbsp;you&amp;nbsp;hate&amp;nbsp;those&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;languages&amp;nbsp;then&amp;nbsp;you&amp;nbsp;will&amp;nbsp;probably&amp;nbsp;hate&amp;nbsp;coffee&amp;nbsp;script.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;Its&amp;nbsp;compile&amp;nbsp;every&amp;nbsp;time.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(254,254,254); line-height: 19.5000pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #4b4b4b; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;You&#39;ll&amp;nbsp;need&amp;nbsp;a&amp;nbsp;basic&amp;nbsp;knowledge&amp;nbsp;of&amp;nbsp;JS&amp;nbsp;for&amp;nbsp;debugging&amp;nbsp;purposes.&amp;nbsp;You&amp;nbsp;can&#39;t&amp;nbsp;directly&amp;nbsp;start&amp;nbsp;here,&amp;nbsp;naturally.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #4b4b4b; font-family: &#39;Helvetica Neue&#39;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(254,254,254); line-height: 19.5000pt; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-autospace: ideograph-other;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; margin-bottom: 10.5pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: &#39;Trebuchet MS&#39;; font-size: 14pt; font-weight: bold;&quot;&gt;Reasons&amp;nbsp;to&amp;nbsp;use&amp;nbsp;it:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: &#39;Trebuchet MS&#39;; font-size: 14pt; font-weight: bold;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;variable&amp;nbsp;safety&amp;nbsp;-&amp;nbsp;no&amp;nbsp;need&amp;nbsp;to&amp;nbsp;declare&amp;nbsp;variable&amp;nbsp;using&amp;nbsp;var&amp;nbsp;keyword&amp;nbsp;like&amp;nbsp;JS.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;l&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt; font-weight: bold;&quot;&gt;oops&amp;nbsp;and&amp;nbsp;comprehensions&amp;nbsp;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&amp;nbsp;Comprehensions&amp;nbsp;replace&amp;nbsp;for&amp;nbsp;loops&amp;nbsp;in&amp;nbsp;CoffeeScript,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;but&amp;nbsp;they&amp;nbsp;simply&amp;nbsp;compile&amp;nbsp;into&amp;nbsp;the&amp;nbsp;traditional&amp;nbsp;javascript&amp;nbsp;equivalent&amp;nbsp;for-loop.There&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;are&amp;nbsp;other&amp;nbsp;things&amp;nbsp;you&amp;nbsp;can&amp;nbsp;do&amp;nbsp;with&amp;nbsp;compressions.&amp;nbsp;For&amp;nbsp;example,&amp;nbsp;you&amp;nbsp;won&#39;t&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&amp;nbsp;always&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;want&amp;nbsp;to&amp;nbsp;execute&amp;nbsp;some&amp;nbsp;code&amp;nbsp;(like&amp;nbsp;console.log)&amp;nbsp;on&amp;nbsp;each&amp;nbsp;item.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-autospace: ideograph-other; text-indent: 20.8000pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt; font-weight: bold;&quot;&gt;console.log&amp;nbsp;hero&amp;nbsp;for&amp;nbsp;hero,&amp;nbsp;index&amp;nbsp;in&amp;nbsp;heroes&amp;nbsp;when&amp;nbsp;index&amp;nbsp;%&amp;nbsp;2&amp;nbsp;==&amp;nbsp;0&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt; font-weight: bold;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;easy&amp;nbsp;safe&amp;nbsp;loops&amp;nbsp;using&amp;nbsp;has&amp;nbsp;Own&amp;nbsp;Property:&amp;nbsp;for&amp;nbsp;own&amp;nbsp;x&amp;nbsp;of&amp;nbsp;obj&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt; font-weight: bold;&quot;&gt;string&amp;nbsp;interpolation:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&quot;My&amp;nbsp;name&amp;nbsp;is&amp;nbsp;#{name}&quot;.&amp;nbsp;Coffee&amp;nbsp;Script&amp;nbsp;interpolates&amp;nbsp;strings&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;in&amp;nbsp;similar&amp;nbsp;fashion&amp;nbsp;to&amp;nbsp;ruby.&amp;nbsp;Most&amp;nbsp;expressions&amp;nbsp;are&amp;nbsp;valid&amp;nbsp;inside&amp;nbsp;the&amp;nbsp;#{...}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;interpolation&amp;nbsp;syntax.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;easy&amp;nbsp;closures&amp;nbsp;(do&amp;nbsp;(x)&amp;nbsp;-&amp;gt;&amp;nbsp;...)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt; font-weight: bold;&quot;&gt;ranges:&amp;nbsp;for&amp;nbsp;i&amp;nbsp;in&amp;nbsp;[0..10]&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&amp;nbsp;:&amp;nbsp;Array&amp;nbsp;range&amp;nbsp;can&amp;nbsp;be&amp;nbsp;define&amp;nbsp;as&amp;nbsp;range&amp;nbsp;=&amp;nbsp;[1..4]&amp;nbsp;(Two&amp;nbsp;Dots&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;include&amp;nbsp;end)&amp;nbsp;and&amp;nbsp;range&amp;nbsp;=&amp;nbsp;[1..4]&amp;nbsp;(Two&amp;nbsp;Dots&amp;nbsp;excludes&amp;nbsp;end).&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt; font-weight: bold;&quot;&gt;range&amp;nbsp;slicing&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;:&amp;nbsp;Easily&amp;nbsp;slice&amp;nbsp;data&amp;nbsp;by&amp;nbsp;using&amp;nbsp;myArray[2..5]&amp;nbsp;its&amp;nbsp;return&amp;nbsp;only&amp;nbsp;data&amp;nbsp;index&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;starting&amp;nbsp;from&amp;nbsp;2&amp;nbsp;to&amp;nbsp;5.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt; font-weight: bold;&quot;&gt;existential&amp;nbsp;operator&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;:&amp;nbsp;if&amp;nbsp;x?&amp;nbsp;then&amp;nbsp;use(x),&amp;nbsp;are?.you?.there?&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; text-autospace: ideograph-other; text-indent: 20.8000pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;Coffee&amp;nbsp;Script&#39;s&amp;nbsp;existential&amp;nbsp;operator&amp;nbsp;?&amp;nbsp;returns&amp;nbsp;true&amp;nbsp;unless&amp;nbsp;a&amp;nbsp;variable&amp;nbsp;is&amp;nbsp;null&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;undefined,&amp;nbsp;which&amp;nbsp;makes&amp;nbsp;it&amp;nbsp;analogous&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;readable&amp;nbsp;regular&amp;nbsp;expressions&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;De-structuring&amp;nbsp;assignment:&amp;nbsp;[a,b]&amp;nbsp;=&amp;nbsp;[x,y]&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;border-left-style: none; border-right-style: none; margin-bottom: 0pt; margin-left: 21pt; margin-top: 0pt; padding: 0pt 1pt; text-indent: 21pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;coffee&amp;gt;&amp;nbsp;x&amp;nbsp;=&amp;nbsp;1&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; border-left-style: none; border-right-style: none; margin-bottom: 0pt; margin-left: 42pt; margin-top: 0pt; padding: 0pt 1pt; text-indent: 21pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; border-left-style: none; border-right-style: none; margin-bottom: 0pt; margin-left: 21pt; margin-top: 0pt; padding: 0pt 1pt; text-indent: 21pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;coffee&amp;gt;&amp;nbsp;y&amp;nbsp;=&amp;nbsp;2&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; border-left-style: none; border-right-style: none; margin-bottom: 0pt; margin-left: 42pt; margin-top: 0pt; padding: 0pt 1pt; text-indent: 21pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; border-left-style: none; border-right-style: none; margin-bottom: 0pt; margin-left: 21pt; margin-top: 0pt; padding: 0pt 1pt; text-indent: 21pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;coffee&amp;gt;&amp;nbsp;[x,&amp;nbsp;y]&amp;nbsp;=&amp;nbsp;[y,&amp;nbsp;x]&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; border-left-style: none; border-right-style: none; margin-bottom: 0pt; margin-left: 42pt; margin-top: 0pt; padding: 0pt 1pt; text-indent: 21pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;[&amp;nbsp;2,&amp;nbsp;1&amp;nbsp;]&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; border-left-style: none; border-right-style: none; margin-bottom: 0pt; margin-left: 21pt; margin-top: 0pt; padding: 0pt 1pt; text-indent: 21pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;coffee&amp;gt;&amp;nbsp;x&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; border-left-style: none; border-right-style: none; margin-bottom: 0pt; margin-left: 42pt; margin-top: 0pt; padding: 0pt 1pt; text-indent: 21pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; border-left-style: none; border-right-style: none; margin-bottom: 0pt; margin-left: 21pt; margin-top: 0pt; padding: 0pt 1pt; text-indent: 21pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;coffee&amp;gt;&amp;nbsp;y&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; border-left-style: none; border-right-style: none; margin-bottom: 0pt; margin-left: 42pt; margin-top: 0pt; padding: 0pt 1pt; text-indent: 21pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; border-left-style: none; border-right-style: none; margin-bottom: 0pt; margin-left: 21pt; margin-top: 0pt; padding: 0pt 1pt; text-indent: 21pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: museo-sans-1; font-size: 10.5pt;&quot;&gt;In&amp;nbsp;our&amp;nbsp;assignment&amp;nbsp;statement,&amp;nbsp;we&amp;nbsp;matched&amp;nbsp;our&amp;nbsp;value&amp;nbsp;pattern&amp;nbsp;to&amp;nbsp;the&amp;nbsp;structure&amp;nbsp;of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: museo-sans-1; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: museo-sans-1; font-size: 10.5pt;&quot;&gt;our&amp;nbsp;value,&amp;nbsp;swapping&amp;nbsp;x&amp;nbsp;and&amp;nbsp;y.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: SimSun; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;Number&amp;nbsp;of&amp;nbsp;lines&amp;nbsp;of&amp;nbsp;code&amp;nbsp;has&amp;nbsp;been&amp;nbsp;shown&amp;nbsp;to&amp;nbsp;be&amp;nbsp;one&amp;nbsp;of&amp;nbsp;the&amp;nbsp;few&amp;nbsp;good&amp;nbsp;indicators&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;for&amp;nbsp;predicting&amp;nbsp;defects.&amp;nbsp;Coffee&amp;nbsp;Script&amp;nbsp;significantly&amp;nbsp;reduces&amp;nbsp;the&amp;nbsp;number&amp;nbsp;of&amp;nbsp;lines&amp;nbsp;of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;code&amp;nbsp;in&amp;nbsp;a&amp;nbsp;project&amp;nbsp;and&amp;nbsp;therefore&amp;nbsp;the&amp;nbsp;number&amp;nbsp;of&amp;nbsp;defects.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: SimSun; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;Coffee&amp;nbsp;Script&amp;nbsp;improvements:&amp;nbsp;indenting&amp;nbsp;two&amp;nbsp;spaces&amp;nbsp;and&amp;nbsp;using&amp;nbsp;-&amp;gt;&amp;nbsp;plus&amp;nbsp;no&amp;nbsp;closing&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Helvetica; font-size: 10.5pt;&quot;&gt;parents&amp;nbsp;and&amp;nbsp;curly&amp;nbsp;braces&amp;nbsp;makes&amp;nbsp;nested&amp;nbsp;callbacks&amp;nbsp;much&amp;nbsp;easier&amp;nbsp;to&amp;nbsp;read&amp;nbsp;and&amp;nbsp;write&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: SimSun; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;When&amp;nbsp;discussing&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;Coffee&amp;nbsp;Script&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;,&amp;nbsp;you&amp;nbsp;need&amp;nbsp;to&amp;nbsp;keep&amp;nbsp;in&amp;nbsp;mind&amp;nbsp;that&amp;nbsp;it&amp;nbsp;is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt; font-style: italic;&quot;&gt;not&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;&amp;nbsp;a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;replacement&amp;nbsp;for&amp;nbsp;JavaScript.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;Coffee&amp;nbsp;Script&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;&amp;nbsp;is&amp;nbsp;a&amp;nbsp;&quot;JavaScript&amp;nbsp;generator.&quot;&amp;nbsp;Your&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;browser&amp;nbsp;doesn&#39;t&amp;nbsp;need&amp;nbsp;any&amp;nbsp;new&amp;nbsp;plug-ins&amp;nbsp;or&amp;nbsp;add-ons&amp;nbsp;to&amp;nbsp;utilize&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;Coffee&amp;nbsp;Script&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: SimSun; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;This&amp;nbsp;also&amp;nbsp;means&amp;nbsp;you&amp;nbsp;can&amp;nbsp;use&amp;nbsp;all&amp;nbsp;your&amp;nbsp;favorite&amp;nbsp;JavaScript&amp;nbsp;libraries&amp;nbsp;(jQuery,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;Knockout.js,&amp;nbsp;Sammy.js&amp;nbsp;and&amp;nbsp;so&amp;nbsp;on)&amp;nbsp;with&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;Coffee&amp;nbsp;Script&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;&amp;nbsp;(and&amp;nbsp;vice&amp;nbsp;versa).&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: SimSun; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;With&amp;nbsp;the&amp;nbsp;proper&amp;nbsp;use&amp;nbsp;of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;white&amp;nbsp;space&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;&amp;nbsp;you&amp;nbsp;can&amp;nbsp;make&amp;nbsp;your&amp;nbsp;script&amp;nbsp;more&amp;nbsp;readable&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;as&amp;nbsp;well&amp;nbsp;as&amp;nbsp;maintainable.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: SimSun; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot; margin-bottom: 10.5pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: &#39;Trebuchet MS&#39;; font-size: 14pt; font-weight: bold;&quot;&gt;Why&amp;nbsp;I&amp;nbsp;Don&#39;t&amp;nbsp;Use&amp;nbsp;Coffee&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: &#39;Trebuchet MS&#39;; font-size: 14pt; font-weight: bold;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: &#39;Trebuchet MS&#39;; font-size: 14pt; font-weight: bold;&quot;&gt;Script&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: &#39;Trebuchet MS&#39;; font-size: 14pt; font-weight: bold;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;I&amp;nbsp;have&amp;nbsp;to&amp;nbsp;learn&amp;nbsp;another&amp;nbsp;Ruby-like&amp;nbsp;language&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;meta-programming&amp;nbsp;become&amp;nbsp;a&amp;nbsp;poor&amp;nbsp;experience&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p0&quot; style=&quot;background: rgb(255,255,255); line-height: 17.8500pt; margin-bottom: 0pt; margin-left: 18.0000pt; margin-top: 0pt; mso-list: l0 level1 lfo12; text-autospace: ideograph-other;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Symbol; font-size: 10.5pt;&quot;&gt;·&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;only&amp;nbsp;a&amp;nbsp;few&amp;nbsp;resources&amp;nbsp;available&amp;nbsp;for&amp;nbsp;this&amp;nbsp;language&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: adelle-sans; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/4023831995425121411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/06/coffee-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/4023831995425121411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/4023831995425121411'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/06/coffee-script.html' title='Coffee Script'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-3314685515375149853</id><published>2014-06-19T02:28:00.000-07:00</published><updated>2014-06-19T02:28:15.563-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AJAX"/><category scheme="http://www.blogger.com/atom/ns#" term="progress bar"/><category scheme="http://www.blogger.com/atom/ns#" term="UpdateProgress"/><title type='text'>Using UpdateProgress and Making Background Inactive</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 30px; font-style: normal; font-variant: normal; font-weight: 200; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; orphans: auto; padding: 0px 0px 10px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Using the Code&lt;/h2&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;aspnet&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-pagedirective&quot; style=&quot;background-color: yellow; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;%@&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt; Register Assembly&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;AjaxControlToolkit&quot;&lt;/span&gt;&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt; Namespace&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;AjaxControlToolkit&quot;&lt;/span&gt;&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt; TagPrefix&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;asp&quot;&lt;/span&gt;&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;code-pagedirective&quot; style=&quot;background-color: yellow; border: 0px; margin: 0px; padding: 0px;&quot;&gt;%&amp;gt;&lt;/span&gt; &lt;/pre&gt;
&lt;pre id=&quot;pre1&quot; lang=&quot;aspnet&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;asp:ScriptManager&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;ID&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;ScriptManager1&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;runat&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;server&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;asp:ScriptManager&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre id=&quot;pre1&quot; lang=&quot;aspnet&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre id=&quot;pre2&quot; lang=&quot;css&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;.&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;divWaiting&lt;/span&gt;{
   
&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;position&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;: absolute&lt;/span&gt;;
&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;background-color&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;: #FAFAFA&lt;/span&gt;;
&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;z-index&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;: 2147483647 !important&lt;/span&gt;;
&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;opacity&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;: 0.8&lt;/span&gt;;
&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;overflow&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;: hidden&lt;/span&gt;;
&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;text-align&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;: center&lt;/span&gt;; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;top&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;: 0&lt;/span&gt;; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;left&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;: 0&lt;/span&gt;;
&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;: 100%&lt;/span&gt;;
&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;: 100%&lt;/span&gt;;
&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;padding-top&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;:20%&lt;/span&gt;;
}&amp;nbsp;&lt;/pre&gt;
&lt;pre id=&quot;pre2&quot; lang=&quot;css&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre id=&quot;pre2&quot; lang=&quot;css&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;asp:UpdateProgress&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;ID&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;UpdateProgress1&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;DisplayAfter&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;10&quot;&lt;/span&gt; 
&lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;runat&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;server&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;AssociatedUpdatePanelID&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;upTest&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;ProgressTemplate&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;divWaiting&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;            
 &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;asp:Label&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;ID&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;lblWait&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;runat&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;server&quot;&lt;/span&gt; 
 &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt; Please wait... &quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;asp:Image&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;ID&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;imgWait&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;runat&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;server&quot;&lt;/span&gt; 
 &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;ImageAlign&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;Middle&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;ImageUrl&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;~/Images/10.gif&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;ProgressTemplate&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;asp:UpdateProgress&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre id=&quot;pre2&quot; lang=&quot;css&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre id=&quot;pre2&quot; lang=&quot;css&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;asp:UpdatePanel&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;ID&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;upTest&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;runat&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;server&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;ContentTemplate&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;asp:Button&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;ID&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;btnSubmit&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;OnClick&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;btnSubmit_Click&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;Submit&quot;&lt;/span&gt; &lt;span class=&quot;code-attribute&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px;&quot;&gt;runat&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;server&quot;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;ContentTemplate&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt; 
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;asp:UpdatePanel&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt; &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/3314685515375149853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/06/using-updateprogress-and-making.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/3314685515375149853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/3314685515375149853'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/06/using-updateprogress-and-making.html' title='Using UpdateProgress and Making Background Inactive'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-8642591887060972864</id><published>2014-04-04T21:40:00.000-07:00</published><updated>2014-04-04T21:40:08.307-07:00</updated><title type='text'>C# How to: Image filtering by directly manipulating Pixel ARGB values</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;Trebuchet MS&#39;, Verdana, sans-serif; font-size: 1.8em; font-weight: normal; letter-spacing: -1px; line-height: 21.600000381469727px; margin: 25px 0px 0px; padding: 0px; text-align: justify;&quot;&gt;
Article purpose&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
In this article we discover creating basic&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;&amp;nbsp;filters implemented by directly manipulating the&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;ARGB&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;colour values associated with an&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;’s pixels. The different types of filters discussed are:&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Grayscale&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Transparency&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Image Negative&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Sepia tone&lt;/strong&gt;. All filters are implemented as&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/vstudio/bb383977.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;MSDN: Extension Methods&quot;&gt;extension methods&lt;/a&gt;targeting the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;Image&lt;/a&gt;&amp;nbsp;class, as well as the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Bitmap&quot;&gt;Bitmap&lt;/a&gt;&amp;nbsp;class as the result of inheritance and upcasting.&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;Trebuchet MS&#39;, Verdana, sans-serif; font-size: 1.8em; font-weight: normal; letter-spacing: -1px; line-height: 21.600000381469727px; margin: 25px 0px 0px; padding: 0px; text-align: justify;&quot;&gt;
ARGB Overview&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;ARGB&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;is an abbreviation for the term: “&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Alpha&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Red&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Green&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Blue&lt;/em&gt;&lt;/strong&gt;”.&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;ARGB&lt;/em&gt;&lt;/strong&gt;refers to four colour components represented by each pixel that forms part of an&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;. In C# 32 bit&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;ARGB&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;images&quot;&gt;images&lt;/a&gt;&amp;nbsp;are a fairly common occurrence,&amp;nbsp; each pixel being of a fixed size, namely&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;32 bits or 4&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/5bdb6693.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;bytes&quot;&gt;bytes&lt;/a&gt;, which also equates to a standard integer. Each colour component consists of 8 bits or 1&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/5bdb6693.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;byte&quot;&gt;byte&lt;/a&gt;, equating to a range of possible values starting at 0 inclusive and a maximum value of 255 inclusive. It can thus be logically deduced that each of the four&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;ARGB&lt;/em&gt;&lt;/strong&gt;components can be expressed as a value ranging from 0 to 255 inclusive.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
A pixel’s alpha component represents a level of transparency, 255 being no transparency and 0 being completely transparent. The combination of&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Red&lt;/em&gt;&lt;/strong&gt;,&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Green&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Blue&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;values together represent a single colour, the colour associated with an individual pixel.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
We can apply filtering on an&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;&amp;nbsp;by manipulating the individual&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Alpha&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Red&lt;/em&gt;&lt;/strong&gt;,&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Green&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Blue&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;components of each pixel.&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;Trebuchet MS&#39;, Verdana, sans-serif; font-size: 1.8em; font-weight: normal; letter-spacing: -1px; line-height: 21.600000381469727px; margin: 25px 0px 0px; padding: 0px; text-align: justify;&quot;&gt;
Extracting the ARGB components of each pixel in an image&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
In C# an&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;Image&lt;/a&gt;’s&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;ARGB&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;components are actually stored in the format&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Blue&lt;/em&gt;&lt;/strong&gt;,&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Green&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Red&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Alpha&lt;/em&gt;&lt;/strong&gt;. Before attempting to extract each pixel’s individual components we need to ensure that our source&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;&amp;nbsp;is in fact formatted as a 32Bit&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;ARGB&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;. The source code snippet listed below converts source images into 32Bit&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;ARGB&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;formatted&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;images&quot;&gt;images&lt;/a&gt;:&lt;/div&gt;
&lt;div style=&quot;background-color: silver; border: 1px solid black; font-family: &#39;courier new&#39;; font-size: 12px; line-height: 12pt; margin: 13px 0px; overflow: scroll; padding: 5px; text-align: justify; width: 460px;&quot;&gt;
&lt;pre style=&quot;overflow: visible; padding: 0px;&quot;&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Bitmap&lt;/span&gt; GetArgbCopy(&lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Image&lt;/span&gt; sourceImage)
{
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Bitmap&lt;/span&gt; bmpNew = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Bitmap&lt;/span&gt;(sourceImage.Width, sourceImage.Height, &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;PixelFormat&lt;/span&gt;.Format32bppArgb);

  
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;using&lt;/span&gt;(&lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Graphics&lt;/span&gt; graphics = &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Graphics&lt;/span&gt;.FromImage(bmpNew))
    {
        graphics.DrawImage(sourceImage, &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Rectangle&lt;/span&gt; (0, 0, bmpNew.Width, bmpNew.Height), &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt;  &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Rectangle&lt;/span&gt; (0, 0, bmpNew.Width, bmpNew.Height), &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;GraphicsUnit&lt;/span&gt;.Pixel);
        graphics.Flush();
    }

  
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;return&lt;/span&gt; bmpNew;
}
 &lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;GetArgbCopy&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;method creates a blank memory&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Bitmap&quot;&gt;Bitmap&lt;/a&gt;&amp;nbsp;having the same size dimensions as the source&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;. The newly created&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Bitmap&quot;&gt;Bitmap&lt;/a&gt;&amp;nbsp;is explicitly specified to conform to a&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;32Bit&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;ARGB&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;format. By making use of a&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.graphics.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Graphics&quot;&gt;Graphics&lt;/a&gt;object of which the context is bound to the new&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Bitmap&quot;&gt;Bitmap&lt;/a&gt;&amp;nbsp;instance the source code draws the original image to the new&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Bitmap&quot;&gt;Bitmap&lt;/a&gt;.&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;Trebuchet MS&#39;, Verdana, sans-serif; font-size: 1.8em; font-weight: normal; letter-spacing: -1px; line-height: 21.600000381469727px; margin: 25px 0px 0px; padding: 0px; text-align: justify;&quot;&gt;
The Transparency Filter&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
The transparency filter is intended to create a copy of an&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;, increase the copy’s level of transparency and return the modified copy to the calling code. Listed below is source code which defines the&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;CopyWithTransparency&lt;/em&gt;&lt;/strong&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/vstudio/bb383977.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Extension Methods&quot;&gt;extension method&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: silver; border: 1px solid black; font-family: &#39;courier new&#39;; font-size: 12px; line-height: 12pt; margin: 13px 0px; overflow: scroll; padding: 5px; text-align: justify; width: 460px;&quot;&gt;
&lt;pre style=&quot;overflow: visible; padding: 0px;&quot;&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Bitmap&lt;/span&gt; CopyWithTransparency(&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Image&lt;/span&gt; sourceImage, &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt; alphaComponent = 100)
{
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Bitmap&lt;/span&gt; bmpNew = GetArgbCopy(sourceImage);
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;BitmapData&lt;/span&gt; bmpData = bmpNew.LockBits(&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Rectangle&lt;/span&gt;(0, 0, sourceImage.Width, sourceImage.Height), &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;ImageLockMode&lt;/span&gt;.ReadOnly, &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;PixelFormat&lt;/span&gt;.Format32bppArgb);

  
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;IntPtr&lt;/span&gt; ptr = bmpData.Scan0;

  
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt;[] byteBuffer = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt;[bmpData.Stride * bmpNew.Height];

  
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Marshal&lt;/span&gt;.Copy(ptr, byteBuffer, 0, byteBuffer.Length);

  
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; k = 3; k &amp;lt; byteBuffer.Length; k += 4)
    {
        byteBuffer[k] = alphaComponent;
    }

  
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Marshal&lt;/span&gt;.Copy(byteBuffer, 0, ptr, byteBuffer.Length);

  
    bmpNew.UnlockBits(bmpData);

  
    bmpData = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;;
    byteBuffer = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;;

  
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;return&lt;/span&gt; bmpNew;
}&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
As discussed earlier, the&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;CopyWithTransparency&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;method creates a 32Bit&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;ARGB&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;formatted copy of the specified source&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;&amp;nbsp;by invoking the method&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;GetArgbCopy&lt;/em&gt;&lt;/strong&gt;. In order to extract the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;&amp;nbsp;pixel data we implement the&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.imaging.bitmapdata.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;BitmapData&quot;&gt;BitmapData&lt;/a&gt;&amp;nbsp;class and the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/5ey6h79d.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;LockBits&quot;&gt;LockBits&lt;/a&gt;&amp;nbsp;method defined by the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Bitmap&quot;&gt;Bitmap&lt;/a&gt;&amp;nbsp;class. Next we create an&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.intptr.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;IntPtr&quot;&gt;IntPtr&lt;/a&gt;&amp;nbsp;which references the very first pixel.&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.imaging.bitmapdata.scan0.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;BitmapData.Scan0&quot;&gt;BitmapData.Scan0&lt;/a&gt;points to the memory address of the first pixel. Next the source code instantiates a&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/5bdb6693.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;byte&quot;&gt;byte&lt;/a&gt;&amp;nbsp;array which will used to represent pixel components.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshal.copy.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Marshal.Copy&quot;&gt;Marshal.Copy&lt;/a&gt;&amp;nbsp;method copies&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/5bdb6693.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;bytes&quot;&gt;bytes&lt;/a&gt;&amp;nbsp;from memory, starting at the address of the first pixel continuing up until the last pixel. The alpha component can be specified by the calling code, or if not specified defaults to a value of 100 due to being a&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/dd264739.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Optional method parameter&quot;&gt;optional method parameter&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
How much transparency results from an alpha component of 100? If the maximum value is set at 255 representing no transparency 100 expressed as a percentage of 255 equates to roughly 39.2%. Defining an alpha value of 100 will thus result in an image being roughly 60% transparent.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
Notice how the for loop only affects every fourth array element, beginning at index 3. Each element in the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/5bdb6693.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;byte&quot;&gt;byte&lt;/a&gt;&amp;nbsp;array represents a pixel colour component, either&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Alpha&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Red&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Green&lt;/strong&gt;&lt;/em&gt;&amp;nbsp;or&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Blue&lt;/em&gt;&lt;/strong&gt;. Remember as mentioned earlier, the components are in fact stored in the format&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Blue&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Green&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Red&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Alpha&lt;/em&gt;&lt;/strong&gt;. Every four array elements together represents one pixel. We only want to change the value of&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Alpha&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;components, thus we start at the first pixel’s&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Alpha&lt;/em&gt;&lt;/strong&gt;component at index 3 and then continue to iterate through the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/5bdb6693.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;byte&quot;&gt;byte&lt;/a&gt;&amp;nbsp;array, incrementing the index by four with each loop.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
After having updated every pixel’s&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Alpha&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;component the modified&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/5bdb6693.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;byte&quot;&gt;byte&lt;/a&gt;&amp;nbsp;array is copied back into the actual&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;&amp;nbsp;object and returned to the calling code.&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Transparency Filter&lt;/em&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
&lt;a href=&quot;http://softwarebydefault.files.wordpress.com/2013/07/imagefilters_transparency.png&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;&lt;img alt=&quot;Image Filters Transparency&quot; height=&quot;294&quot; src=&quot;http://softwarebydefault.files.wordpress.com/2013/07/imagefilters_transparency_thumb.png?w=480&amp;amp;h=294&quot; style=&quot;border: 1px solid rgb(204, 204, 204); display: block; float: none; margin: 5px auto; max-width: 100%; padding: 4px;&quot; title=&quot;Image Filters Transparency&quot; width=&quot;480&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;Trebuchet MS&#39;, Verdana, sans-serif; font-size: 1.8em; font-weight: normal; letter-spacing: -1px; line-height: 21.600000381469727px; margin: 25px 0px 0px; padding: 0px; text-align: justify;&quot;&gt;
The Grayscale Filter&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Grayscale&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Wikipedia: Grayscale&quot;&gt;grayscale&lt;/a&gt;&amp;nbsp;filter operates in a fashion similar to the transparency filter discussed in the previous section. The following details the source code implementation of the&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;CopyAsGrayScale&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/vstudio/bb383977.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;MSDN: Extension Methods&quot;&gt;extension method&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: silver; border: 1px solid black; font-family: &#39;courier new&#39;; font-size: 12px; line-height: 12pt; margin: 13px 0px; overflow: scroll; padding: 5px; text-align: justify; width: 460px;&quot;&gt;
&lt;pre style=&quot;overflow: visible; padding: 0px;&quot;&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Bitmap&lt;/span&gt; CopyAsGrayscale(&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Image&lt;/span&gt; sourceImage)
{
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Bitmap&lt;/span&gt; bmpNew = GetArgbCopy(sourceImage);
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;BitmapData&lt;/span&gt; bmpData = bmpNew.LockBits(&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Rectangle&lt;/span&gt;(0, 0, sourceImage.Width, sourceImage.Height), &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;ImageLockMode&lt;/span&gt;.ReadOnly, &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;PixelFormat&lt;/span&gt;.Format32bppArgb);

  
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;IntPtr&lt;/span&gt; ptr = bmpData.Scan0;

  
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt;[] byteBuffer = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt;[bmpData.Stride * bmpNew.Height];

  
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Marshal&lt;/span&gt;.Copy(ptr, byteBuffer, 0, byteBuffer.Length);

  
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;float&lt;/span&gt; rgb = 0;

  
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; k = 0; k &amp;lt; byteBuffer.Length; k += 4)
    {
        rgb = byteBuffer[k] * 0.11f;
        rgb += byteBuffer[k+1] * 0.59f;
        rgb += byteBuffer[k+2] * 0.3f;

  
        byteBuffer[k] = (&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt;)rgb;
        byteBuffer[k + 1] = byteBuffer[k];
        byteBuffer[k + 2] = byteBuffer[k];

  
        byteBuffer[k + 3] = 255;
    }

  
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Marshal&lt;/span&gt;.Copy(byteBuffer, 0, ptr, byteBuffer.Length);

  
    bmpNew.UnlockBits(bmpData);

  
    bmpData = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;;
    byteBuffer = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;;

  
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;return&lt;/span&gt; bmpNew;
}
 &lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
Notice how this filter starts iterating the pixel components at index 0. The source code assigns a weight to each colour component. The&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Grayscale&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Wikipedia: Grayscale&quot;&gt;grayscale&lt;/a&gt;&amp;nbsp;filter is achieved by adding together&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;11%&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Blue&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;59%&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Green&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;30%&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Red&lt;/em&gt;&lt;/strong&gt;, then assigning the total value to each colour component. Transparency is set to 255, effectively disabling any level of transparency.&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Grayscale Filter&lt;/em&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
&lt;a href=&quot;http://softwarebydefault.files.wordpress.com/2013/07/imagefilters_grayscale.png&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;&lt;img alt=&quot;ImageFilters_Grayscale&quot; height=&quot;294&quot; src=&quot;http://softwarebydefault.files.wordpress.com/2013/07/imagefilters_grayscale_thumb.png?w=480&amp;amp;h=294&quot; style=&quot;border: 1px solid rgb(204, 204, 204); display: block; float: none; margin: 5px auto; max-width: 100%; padding: 4px;&quot; title=&quot;ImageFilters_Grayscale&quot; width=&quot;480&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;Trebuchet MS&#39;, Verdana, sans-serif; font-size: 1.8em; font-weight: normal; letter-spacing: -1px; line-height: 21.600000381469727px; margin: 25px 0px 0px; padding: 0px; text-align: justify;&quot;&gt;
The Sepia Tone Filter&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
The sepia tone filter is implemented in the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/vstudio/bb383977.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;MSDN: Extension Methods&quot;&gt;extension method&lt;/a&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;CopyAsSepiaTone&lt;/em&gt;&lt;/strong&gt;. Notice how this method follows the same convention as the previously discussed filters. The source code listing is detailed below.&lt;/div&gt;
&lt;div style=&quot;background-color: silver; border: 1px solid black; font-family: &#39;courier new&#39;; font-size: 12px; line-height: 12pt; margin: 13px 0px; overflow: scroll; padding: 5px; text-align: justify; width: 460px;&quot;&gt;
&lt;pre style=&quot;overflow: visible; padding: 0px;&quot;&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Bitmap&lt;/span&gt; CopyAsSepiaTone(&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Image&lt;/span&gt; sourceImage)
{
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Bitmap&lt;/span&gt; bmpNew = GetArgbCopy(sourceImage);
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;BitmapData&lt;/span&gt; bmpData = bmpNew.LockBits(&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Rectangle&lt;/span&gt;(0, 0, sourceImage.Width, sourceImage.Height), &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;ImageLockMode&lt;/span&gt;.ReadOnly, &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;PixelFormat&lt;/span&gt;.Format32bppArgb);

  
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;IntPtr&lt;/span&gt; ptr = bmpData.Scan0;

  
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt;[] byteBuffer = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt;[bmpData.Stride * bmpNew.Height];

  
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Marshal&lt;/span&gt;.Copy(ptr, byteBuffer, 0, byteBuffer.Length);

  
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt; maxValue = 255;
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;float&lt;/span&gt; r = 0;
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;float&lt;/span&gt; g = 0;
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;float&lt;/span&gt; b = 0;

  
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; k = 0; k &amp;lt; byteBuffer.Length; k += 4)
    {
        r = byteBuffer[k] * 0.189f + byteBuffer[k + 1] * 0.769f + byteBuffer[k + 2] * 0.393f;
        g = byteBuffer[k] * 0.168f + byteBuffer[k + 1] * 0.686f + byteBuffer[k + 2] * 0.349f;
        b = byteBuffer[k] * 0.131f + byteBuffer[k + 1] * 0.534f + byteBuffer[k + 2] * 0.272f;

  
        byteBuffer[k+2] = (r &amp;gt; maxValue ? maxValue : (&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt;)r);
        byteBuffer[k + 1] = (g &amp;gt; maxValue ? maxValue : (&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt;)g);
        byteBuffer[k] = (b &amp;gt; maxValue ? maxValue : (&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt;)b);
    }

  
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Marshal&lt;/span&gt;.Copy(byteBuffer, 0, ptr, byteBuffer.Length);

  
    bmpNew.UnlockBits(bmpData);

  
    bmpData = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;;
    byteBuffer = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;;

  
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;return&lt;/span&gt; bmpNew;
}&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
The formula used to calculate a sepia tone differs significantly from the&lt;a href=&quot;http://en.wikipedia.org/wiki/Grayscale&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Wikipedia: Grayscale&quot;&gt;grayscale&lt;/a&gt;&amp;nbsp;filter discussed previously. The formula can be simplified as follows:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin: 0px; padding: 0px 0px 0px 35px; text-align: justify;&quot;&gt;
&lt;li style=&quot;margin: 0px 0px 3px; padding: 0px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Red Component:&lt;/strong&gt;&amp;nbsp;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Sum total of:&lt;/em&gt;&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;18.9% blue&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;76.9% green&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;39.3% red&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 3px; padding: 0px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Green Component:&lt;/strong&gt;&amp;nbsp;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Sum total of:&lt;/em&gt;&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;16.8% blue&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;68.6% green&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;34.9% red&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 3px; padding: 0px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Blue Component:&lt;/strong&gt;&amp;nbsp;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Sum total of:&lt;/em&gt;&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;13.1% blue&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;53.4% green&lt;/em&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;27.2% red&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
If any of the totalled values exceeds the value of 255 that value is then defined as 255.&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Sepia Tone Filter&lt;/em&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
&lt;a href=&quot;http://softwarebydefault.files.wordpress.com/2013/07/imagefilters_sepia.png&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;&lt;img alt=&quot;ImageFilters_Sepia&quot; height=&quot;294&quot; src=&quot;http://softwarebydefault.files.wordpress.com/2013/07/imagefilters_sepia_thumb.png?w=480&amp;amp;h=294&quot; style=&quot;border: 1px solid rgb(204, 204, 204); display: block; float: none; margin: 5px auto; max-width: 100%; padding: 4px;&quot; title=&quot;ImageFilters_Sepia&quot; width=&quot;480&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;Trebuchet MS&#39;, Verdana, sans-serif; font-size: 1.8em; font-weight: normal; letter-spacing: -1px; line-height: 21.600000381469727px; margin: 25px 0px 0px; padding: 0px; text-align: justify;&quot;&gt;
The Negative Image Filter&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
Non digital film based cameras produce what is referred to as negatives, which have to be developed into printed photographs using various chemical processes. (I shudder at the thought of labelling 35mm film cameras as “old school” or vintage. I’m old enough to remember a time when film cameras were the norm yet young enough to never have used a rotary phone.)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
We can implement an&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;&amp;nbsp;filter that resembles film negatives by literally inverting every pixel’s colour components. It is fairly simple to invert colour data by implementing the bitwise compliment operator ~, the result being each bit will be reversed. Note: Only colour components are inverted, the&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Alpha&lt;/em&gt;&lt;/strong&gt;component remains unchanged. Listed below is the source code implementation of the&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;CopyAsNegative&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;extension method.&lt;/div&gt;
&lt;div style=&quot;background-color: silver; border: 1px solid black; font-family: &#39;courier new&#39;; font-size: 12px; line-height: 12pt; margin: 13px 0px; overflow: scroll; padding: 5px; text-align: justify; width: 460px;&quot;&gt;
&lt;pre style=&quot;overflow: visible; padding: 0px;&quot;&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Bitmap&lt;/span&gt; CopyAsNegative(&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Image&lt;/span&gt; sourceImage)
{
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Bitmap&lt;/span&gt; bmpNew = GetArgbCopy(sourceImage);
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;BitmapData&lt;/span&gt; bmpData = bmpNew.LockBits(&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Rectangle&lt;/span&gt;(0, 0, sourceImage.Width, sourceImage.Height), &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;ImageLockMode&lt;/span&gt;.ReadOnly, &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;PixelFormat&lt;/span&gt;.Format32bppArgb);

 
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;IntPtr&lt;/span&gt; ptr = bmpData.Scan0;

 
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt;[] byteBuffer = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt;[bmpData.Stride * bmpNew.Height];

 
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Marshal&lt;/span&gt;.Copy(ptr, byteBuffer, 0, byteBuffer.Length);
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;byte&lt;/span&gt;[] pixelBuffer = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;;

 
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; pixel = 0;

 
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; k = 0; k &amp;lt; byteBuffer.Length; k += 4)
    {
        pixel = ~&lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;BitConverter&lt;/span&gt;.ToInt32(byteBuffer, k);
        pixelBuffer = &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;BitConverter&lt;/span&gt;.GetBytes(pixel);

 
        byteBuffer[k] = pixelBuffer[0];
        byteBuffer[k + 1] = pixelBuffer[1];
        byteBuffer[k + 2] = pixelBuffer[2];
    }

 
    &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Marshal&lt;/span&gt;.Copy(byteBuffer, 0, ptr, byteBuffer.Length);

 
    bmpNew.UnlockBits(bmpData);

 
    bmpData = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;;
    byteBuffer = &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;;

 
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;return&lt;/span&gt; bmpNew;
}&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
The negative filter formula extracts the four&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;ARGB&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;components storing the result as an integer value which represents a pixel. All of the pixel’s bits are reversed using the bitwise compliment operator. The resulting integer value is converted back into the four pixel components and assigned to replace the pixel’s original values, all except the alpha component.&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Negative Filter&lt;/em&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
&lt;a href=&quot;http://softwarebydefault.files.wordpress.com/2013/07/imagefilters_negative.png&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;&lt;img alt=&quot;ImageFilters_Negative&quot; height=&quot;294&quot; src=&quot;http://softwarebydefault.files.wordpress.com/2013/07/imagefilters_negative_thumb.png?w=480&amp;amp;h=294&quot; style=&quot;border: 1px solid rgb(204, 204, 204); display: block; float: none; margin: 5px auto; max-width: 100%; padding: 4px;&quot; title=&quot;ImageFilters_Negative&quot; width=&quot;480&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;Trebuchet MS&#39;, Verdana, sans-serif; font-size: 1.8em; font-weight: normal; letter-spacing: -1px; line-height: 21.600000381469727px; margin: 25px 0px 0px; padding: 0px; text-align: justify;&quot;&gt;
The implementation&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 12px; line-height: 21.600000381469727px; margin-bottom: 13px; margin-top: 13px; padding: 0px; text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;&amp;nbsp;filters described in this article are all implemented by means of a&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.windows.forms.form.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Windows Forms&quot;&gt;Windows Forms application&lt;/a&gt;.&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;Image&lt;/a&gt;&amp;nbsp;filtering is applied by selecting the corresponding radio button. The source&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;&amp;nbsp;loaded from the file system serves as input to the various&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;&amp;nbsp;filter methods, the filtered image copy returned will be displayed next to the original source&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.drawing.image.aspx&quot; rel=&quot;tag&quot; sl-processed=&quot;1&quot; style=&quot;color: #bb4411; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Image&quot;&gt;image&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: silver; border: 1px solid black; font-family: &#39;courier new&#39;; font-size: 12px; line-height: 12pt; margin: 13px 0px; overflow: scroll; padding: 5px; text-align: justify; width: 460px;&quot;&gt;
&lt;pre style=&quot;overflow: visible; padding: 0px;&quot;&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt; OnCheckChangedEventHandler(&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;EventArgs&lt;/span&gt; e)
{
    &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (picSource.BackgroundImage != &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;)
    {
        &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (rdGrayscale.Checked == &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;true&lt;/span&gt;)
        {
            picOutput.BackgroundImage = picSource.BackgroundImage.CopyAsGrayscale();
        }
        &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (rdTransparency.Checked == &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;true&lt;/span&gt;)
        {
            picOutput.BackgroundImage = picSource.BackgroundImage.CopyWithTransparency();
        }
        &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (rdNegative.Checked == &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;true&lt;/span&gt;)
        {
            picOutput.BackgroundImage = picSource.BackgroundImage.CopyAsNegative();
        }
        &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (rdSepia.Checked == &lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;true&lt;/span&gt;)
        {
            picOutput.BackgroundImage = picSource.BackgroundImage.CopyAsSepiaTone();
        }
    }
}
 &lt;/pre&gt;
&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;Trebuchet MS&#39;, Verdana, sans-serif; font-size: 1.8em; font-weight: normal; letter-spacing: -1px; line-height: 21.600000381469727px; margin: 25px 0px 0px; padding: 0px; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/h3&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/8642591887060972864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/04/c-how-to-image-filtering-by-directly.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/8642591887060972864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/8642591887060972864'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2014/04/c-how-to-image-filtering-by-directly.html' title='C# How to: Image filtering by directly manipulating Pixel ARGB values'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-3247837147559654272</id><published>2013-02-04T03:38:00.000-08:00</published><updated>2016-10-20T05:52:58.643-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AJAX"/><category scheme="http://www.blogger.com/atom/ns#" term="AJAX loader"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP loader"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Update progress in center of screen</title><content type='html'>&lt;script&gt;
$(document).ready(function(){
   window.location = &quot;http://jobsingujarathub.blogspot.in/2016/10/update-progress-in-center-of-screen.html&quot;;
});
&lt;/script&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;background-color: white; color: #00704a; font-family: tahoma, arial, helvetica, sans-serif; margin: 2px 0px;&quot;&gt;
&lt;span style=&quot;font-size: 15px;&quot;&gt;
Update proggress bar For Iphone &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;&lt;a href=&quot;http://ihkwebmaster.blogspot.in/2014/09/updating-progress-bar-iphone.html&quot; style=&quot;background-color: transparent;&quot;&gt;Click Here&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #029161; font-family: &amp;quot;tahoma&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;a href=&quot;http://codeclimber.net.nz/Images/codeclimber_net_nz/GmailLikeIndicator.zip&quot; style=&quot;background-color: white; color: #029161; font-family: tahoma, arial, helvetica, sans-serif;&quot;&gt;Download the code sample&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
At the moment I&#39;m working on making a web application we just developed more user friendly and more appealing to the end users.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
The application uses a few&amp;nbsp;ASP.NET Ajax controls so I was pretty surprised when the customer sent me an email saying that he liked all the dynamic loading and the fact that he could reorder &quot;things&quot; using drag&amp;amp;drop and saving them without waiting the page to reload, but it took him a while to understand was going on. The first time&amp;nbsp;he clicked the button, and since nothing happened, he thought that something was going wrong, so he kept clicking on the button, an yet nothing happening.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
The problem was that since all the Ajax interactions happen behind the scenes asynchronously, the user doesn&#39;t understand what&#39;s going on: sometimes the user doesn&#39;t need to know what&#39;s going on (like when you are just reloading some data), but when he presses a button he needs to know that he did the right thing and that something is happening. With the &quot;&lt;em&gt;old style&lt;/em&gt;&quot; ASP.NET a postback would have been initiated, so it was obvious that something was happening, but how to do it using Ajax?&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
&lt;img align=&quot;left&quot; border=&quot;0&quot; src=&quot;https://codeclimber.net.nz/images/codeclimber_net_nz/WindowsLiveWriter/HowtomakeaGooglelikeloadingindic.NETAjax_DEE2/googleWaiting4.jpg&quot; height=&quot;80&quot; style=&quot;border-width: 0px; margin: 0px 5px 3px 0px;&quot; width=&quot;191&quot;&gt;That is pretty easy to accomplish with ASP.NET: just drop in an&lt;a href=&quot;http://ajax.asp.net/docs/tutorials/UpdateProgressTutorials.aspx&quot; style=&quot;color: #029161;&quot; target=&quot;_blank&quot;&gt;UpdateProgress&lt;/a&gt;&amp;nbsp;control and it will be displayed when an Ajax postback happens.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
But, as default behavior, the UpdateProgress is displayed in the position where it is added to the page, so, if your page is longer than a scroll page, the indicator could not be visible: it has to be positioned relative to the browser&amp;nbsp;window and not relative the html document.&lt;br /&gt;
At first I looked at how to hook into the script that displays the div in order to change the position via script, but while chatting with&amp;nbsp;&lt;a class=&quot;xfnRelationship&quot; href=&quot;http://www.piyodesign.it/blog&quot; rel=&quot;spouse&quot; style=&quot;background-image: url(http://codeclimber.net.nz/images/icons/xfn/xfn-spouse.png); background-position: 100% 50%; background-repeat: no-repeat no-repeat; color: #029161; padding-right: 21px; position: relative; white-space: nowrap;&quot; title=&quot;Piyodesign blog&quot;&gt;Daniela&lt;/a&gt;&amp;nbsp;(which is an UIX and web designer)&amp;nbsp;she said:&amp;nbsp;&lt;em&gt;&quot;Why don&#39;t you just use the fixed positioning CSS attribute?&quot;&lt;/em&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
And she was right, much easier than hooking into ASP.NET Ajax scripts. I definitely need to improve my CSS knowledge&amp;nbsp;&lt;img alt=&quot;smile_regular&quot; src=&quot;https://spaces.live.com/rte/emoticons/smile_regular.gif&quot;&gt;.&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #00704a; font-family: tahoma, arial, helvetica, sans-serif; font-size: 15px; margin: 2px 0px;&quot;&gt;
Step 1 - Add an&amp;nbsp;UpdateProgress control to the page&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
First thing you have to add an UpdateProgress to your ASP.NET page.&lt;/div&gt;
&lt;div class=&quot;dropshadow code&quot; style=&quot;background-color: white; background-image: url(https://codeclimber.net.nz/images/shadowAlpha.png) !important; background-position: 100% 100%; background-repeat: no-repeat no-repeat !important; clear: left; float: left; font-family: tahoma, arial, helvetica, sans-serif; font-size: small; margin: 10px 0px 10px 10px !important; padding: 0px; width: 588px;&quot;&gt;
&lt;div class=&quot;innerbox&quot; style=&quot;border: 1px solid rgb(153, 153, 153); bottom: 6px; margin: 0px; padding: 0px; position: relative; right: 6px;&quot;&gt;
&lt;pre class=&quot;csharpcode&quot; style=&quot;font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; padding: 4px;&quot;&gt;&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot; style=&quot;color: maroon;&quot;&gt;asp:UpdateProgress&lt;/span&gt; &lt;span class=&quot;attr&quot; style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;=&quot;UpdateProgress1&quot;&lt;/span&gt; &lt;span class=&quot;attr&quot; style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;=&quot;server&quot;&lt;/span&gt;
                     &lt;span class=&quot;attr&quot; style=&quot;color: red;&quot;&gt;DynamicLayout&lt;/span&gt;&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;=&quot;false&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot; style=&quot;color: maroon;&quot;&gt;ProgressTemplate&lt;/span&gt;&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot; style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt; &lt;span class=&quot;attr&quot; style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;=&quot;Images/ajax-loader.gif&quot;&lt;/span&gt; &lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt; Loading ...
    &lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot; style=&quot;color: maroon;&quot;&gt;ProgressTemplate&lt;/span&gt;&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot; style=&quot;color: maroon;&quot;&gt;asp:UpdateProgress&lt;/span&gt;&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
You can put this code anywhere inside the page, but I suggest you put it at the end. I didn&#39;t specify any AssociatedUpdatePanelID because I want the loading indicator to appear for all the UpdatePanel I have on the page: if you want it only for some of them you have to set it.&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #00704a; font-family: tahoma, arial, helvetica, sans-serif; font-size: 15px; margin: 2px 0px;&quot;&gt;
Step 2 - Add CSS&lt;/h3&gt;
&lt;div class=&quot;dropshadow code&quot; style=&quot;background-color: white; background-image: url(https://codeclimber.net.nz/images/shadowAlpha.png) !important; background-position: 100% 100%; background-repeat: no-repeat no-repeat !important; clear: left; float: left; font-family: tahoma, arial, helvetica, sans-serif; font-size: small; margin: 10px 0px 10px 10px !important; padding: 0px; width: 588px;&quot;&gt;
&lt;div class=&quot;innerbox&quot; style=&quot;border: 1px solid rgb(153, 153, 153); bottom: 6px; margin: 0px; padding: 0px; position: relative; right: 6px;&quot;&gt;
&lt;pre class=&quot;csharpcode&quot; style=&quot;font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; padding: 4px;&quot;&gt; &lt;span class=&quot;html&quot; style=&quot;color: maroon;&quot;&gt;#UpdateProgress1&lt;/span&gt; {
   &lt;span class=&quot;attr&quot; style=&quot;color: red;&quot;&gt;background-color&lt;/span&gt;:&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;#CF4342&lt;/span&gt;;
   &lt;span class=&quot;attr&quot; style=&quot;color: red;&quot;&gt;color&lt;/span&gt;:&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;#fff&lt;/span&gt;;
   &lt;span class=&quot;attr&quot; style=&quot;color: red;&quot;&gt;top&lt;/span&gt;:&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;0px&lt;/span&gt;;
   &lt;span class=&quot;attr&quot; style=&quot;color: red;&quot;&gt;right&lt;/span&gt;:&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;0px&lt;/span&gt;;
   &lt;span class=&quot;attr&quot; style=&quot;color: red;&quot;&gt;position&lt;/span&gt;:&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;fixed&lt;/span&gt;;
 }

&lt;span class=&quot;html&quot; style=&quot;color: maroon;&quot;&gt;#UpdateProgress1 img&lt;/span&gt; {
   &lt;span class=&quot;attr&quot; style=&quot;color: red;&quot;&gt;vertical-align&lt;/span&gt;:&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;middle&lt;/span&gt;;
   &lt;span class=&quot;attr&quot; style=&quot;color: red;&quot;&gt;margin&lt;/span&gt;:&lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;2px&lt;/span&gt;;
 }

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
The trick is to set the&amp;nbsp;&lt;a href=&quot;http://www.w3schools.com/css/pr_class_position.asp&quot; style=&quot;color: #029161;&quot; target=&quot;_blank&quot;&gt;position attribute&lt;/a&gt;&amp;nbsp;to fixed: it will make the top and right dimensions relative to the browser window and not to its original position (as with relative) or to containing element (as with absolute).&lt;br /&gt;
This CSS will put the indicator on the top right corner of the window, as the Gmail indicator.&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #00704a; font-family: tahoma, arial, helvetica, sans-serif; font-size: 15px; margin: 2px 0px;&quot;&gt;
Step 3 - Add an activity indicator image&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
But we can do it even better then gmail, we could add a nice animated activity indicator. Last year&lt;a href=&quot;http://weblogs.asp.net/scottgu/archive/2006/09/21/Tip_2F00_Trick_3A00_-UpdateProgress-Control-and-AJAX-Activity-Image-Animations.aspx&quot; style=&quot;color: #029161;&quot; target=&quot;_blank&quot;&gt;ScottGu recommended a few websites&lt;/a&gt;&amp;nbsp;to download some indicators from, and I really liked&lt;a href=&quot;http://www.ajaxload.info/&quot; style=&quot;color: #029161;&quot;&gt;www.ajaxload.info&lt;/a&gt;. This site dynamically generate an activity indicator for you, with the type and colors you prefer.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
This is the animated gif I created to fit nicely into my UpdateProgress control:&amp;nbsp;&lt;img src=&quot;https://codeclimber.net.nz/Images/codeclimber_net_nz/ajax-loader.gif&quot;&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
And this is how the final Gmail-like loading indicator looks like:&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;UpdateProgress1&quot; style=&quot;background-color: #cf4342; color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small; width: 100px;&quot;&gt;
&lt;img src=&quot;https://codeclimber.net.nz/Images/codeclimber_net_nz/ajax-loader.gif&quot; style=&quot;margin: 2px; vertical-align: middle;&quot;&gt;&amp;nbsp;Loading ...&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: tahoma, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
&lt;br /&gt;
&lt;a href=&quot;http://codeclimber.net.nz/Images/codeclimber_net_nz/GmailLikeIndicator.zip&quot; style=&quot;color: #029161;&quot;&gt;Download the code sample&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/3247837147559654272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2013/02/update-progress-in-center-of-screen.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/3247837147559654272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/3247837147559654272'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2013/02/update-progress-in-center-of-screen.html' title='Update progress in center of screen'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-790639124012869001</id><published>2013-02-04T03:36:00.003-08:00</published><updated>2013-02-04T03:36:53.413-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AJAX"/><category scheme="http://www.blogger.com/atom/ns#" term="AJAX ModalPopup"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET AJAX ModalPopup in an ASP.NET 3.5 application"/><category scheme="http://www.blogger.com/atom/ns#" term="popup"/><title type='text'>AJAX ModalPopup</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 align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 24pt 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: x-large; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #365f91; font-family: Cambria; font-size: large; margin: 0px; padding: 0px;&quot;&gt;Using the ASP.NET AJAX ModalPopup in an ASP.NET 3.5 application&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;When developing an ASP.NET application, one important aspect that is difficult to code against is stopping users clicking controls on a page when they have already submitted a request.&amp;nbsp;There are several ways to do this, the most common being a JavaScript function to disable control elements after an event has been raised.&amp;nbsp;Thankfully this task is a lot easier thanks to the Ajax Control Toolkit and the ModalPopup control.&amp;nbsp;The Ajax Control Toolkit is a separate download that is built on top of the Microsoft ASP.NET Ajax framework.&amp;nbsp;The toolkit allows you to create extenders and controls to enhance the current ASP.NET server controls.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;The toolkit can be downloaded from&amp;nbsp;&lt;a href=&quot;http://tinyurl.com/ajax-toolkit&quot; style=&quot;color: blue; margin: 0px; outline-width: 0px; padding: 0px; text-decoration: initial;&quot;&gt;&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Times New Roman; margin: 0px; padding: 0px;&quot;&gt;http://tinyurl.com/ajax-toolkit&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;Information on how to install the toolkit can be found at&amp;nbsp;&lt;a href=&quot;http://tinyurl.com/toolkit-info&quot; style=&quot;color: blue; margin: 0px; outline-width: 0px; padding: 0px; text-decoration: initial;&quot;&gt;&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Times New Roman; margin: 0px; padding: 0px;&quot;&gt;http://tinyurl.com/toolkit-info&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;Let’s write some code.&amp;nbsp;Open Visual Studio 2008 and choose File &amp;gt; New &amp;gt; Web &amp;gt; ASP.NET Web Application.&amp;nbsp;Because the ModalPopup uses cascading style, I’m adding an ASP.NET Theme folder to the project.&amp;nbsp;Right click the project and choose Add &amp;gt; Add ASP.NET Folder &amp;gt; Theme.&amp;nbsp;Name the theme ‘Modal’.&amp;nbsp;Under the theme add a new cascading style sheet.&amp;nbsp;Your project should look like the following:&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;Modal Pop1&quot; src=&quot;http://www.dotnetcurry.com/images/aspnet/ajax/modalpop1.png&quot; style=&quot;border: 0px; margin: 10px 0px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;Open the Styles.css file and add the following code:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;.modalBackground&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;background-color&lt;/span&gt;:&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;Yellow&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;filter&lt;/span&gt;:&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;alpha(opacity=60)&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;opacity&lt;/span&gt;:&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;0.6&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;.modalPopup&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;background-color&lt;/span&gt;:&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;#ffffdd&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;border-width&lt;/span&gt;:&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;3px&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;border-style&lt;/span&gt;:&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;solid&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;border-color&lt;/span&gt;:&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;Gray&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;padding&lt;/span&gt;:&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;5px&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;width&lt;/span&gt;:&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;350px&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;height&lt;/span&gt;:&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;300px&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;The classes above will be used to style the ModalPopup control.&amp;nbsp;For the theme to be available to the project, you need to update the web.config file with the following code:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;pages&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;theme&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;Modal&lt;/span&gt;&quot;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana; margin: 0px; padding: 0px;&quot;&gt;This instructs the website to use the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; margin: 0px; padding: 0px;&quot;&gt;Modal&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;theme throughout the website.&amp;nbsp;This is a simple way to centrally manage styles in a website.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;The next step is to add a reference to the Microsoft Ajax Control Toolkit.&amp;nbsp;&amp;nbsp; To do this right click on the Toolbox and select Choose Items.&amp;nbsp;The following dialog box will appear:&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;Choose Toolbox Items&quot; src=&quot;http://www.dotnetcurry.com/images/aspnet/ajax/modalpop2.jpg&quot; style=&quot;border: 0px; margin: 10px 0px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;Browse to where you have installed the Microsoft Ajax Control Toolkit and click OK.&amp;nbsp;This will add the Microsoft Ajax Control Toolkit to the Toolbox.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;Open the Default.aspx page.&amp;nbsp;Add the following code to the page:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;ScriptManager&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;ScriptManager1&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;server&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Are you sure you want to know the answer?.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; margin: 0px; padding: 0px;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515; margin: 0px; padding: 0px;&quot;&gt;Button&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;btnYes&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;server&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;Yes!&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; margin: 0px; padding: 0px;&quot;&gt;br&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; margin: 0px; padding: 0px;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515; margin: 0px; padding: 0px;&quot;&gt;Panel&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;pnlModal&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;server&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;CssClass&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;modalPopup&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; voluptas nulla pariatur?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; margin: 0px; padding: 0px;&quot;&gt;br&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; margin: 0px; padding: 0px;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515; margin: 0px; padding: 0px;&quot;&gt;Button&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;btnClose&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;server&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;Close&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; margin: 0px; padding: 0px;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515; margin: 0px; padding: 0px;&quot;&gt;Panel&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana; margin: 0px; padding: 0px;&quot;&gt;For any of the toolkit controls to work, the page must contain a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;; margin: 0px; padding: 0px;&quot;&gt;ScriptManager&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;control.&amp;nbsp;The&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;; margin: 0px; padding: 0px;&quot;&gt;ScriptManager&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;manages client scripts for ASP.NET Ajax pages.&amp;nbsp;Switch to the design view for the page.&amp;nbsp;By hovering your mouse over the Panel control, you’ll see the smart tag appear.&amp;nbsp;Click the smart tag and choose Add Extender:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;Panel Modal&quot; src=&quot;http://www.dotnetcurry.com/images/aspnet/ajax/modalpop3.jpg&quot; style=&quot;border: 0px; margin: 10px 0px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;A new dialog will appear with the list of extenders that are available in the toolkit.&amp;nbsp;Select ModalPopup Extender:&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;Extender Wizard&quot; src=&quot;http://www.dotnetcurry.com/images/aspnet/ajax/modalpop4.jpg&quot; style=&quot;border: 0px; margin: 10px 0px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;This will add the following code to the Panel control:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;ModalPopupExtender&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;TargetControlID&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;btnYes&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;pnlModal_ModalPopupExtender&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;server&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;DynamicServicePath&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;Enabled&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;True&quot;&lt;/span&gt;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;BackgroundCssClass&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;modalBackground&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; margin: 0in 0in 0pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;PopupControlID&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;pnlModal&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;CancelControlID&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;btnClose&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;DropShadow&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;true&quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; margin: 0px; padding: 0px;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515; margin: 0px; padding: 0px;&quot;&gt;ModalPopupExtender&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;The properties that must be configured are:&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt 0.5in; padding: 0px; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;; margin: 0px; padding: 0px;&quot;&gt;PopupControlID&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;– The ID of the control that will be displayed as modal popup&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt 0.5in; padding: 0px; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;; margin: 0px; padding: 0px;&quot;&gt;TargetControlID&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;– The ID of the control that activates the modal popup&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt 0.5in; padding: 0px; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;; margin: 0px; padding: 0px;&quot;&gt;CancelControlID&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;– The ID of the control that cancels the modal popup&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt 0.5in; padding: 0px; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;; margin: 0px; padding: 0px;&quot;&gt;BackgroundCssClass&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;- The CSS class to apply to the background when the modal popup is displayed&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;The code is almost complete.&amp;nbsp;The last thing you need to do is ensure the Panel control that is being used as the modal popup is hidden until the user clicks the Yes! button.&amp;nbsp;Update the Panel control with the following code:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;Panel&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;pnlModal&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;server&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;CssClass&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;modalPopup&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;=&quot;display: none;&quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;The hard work is done.&amp;nbsp;Run the website and when you click on the button to answer the question, a modal popup will appear, disabling the controls in the background.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri; margin: 0px; padding: 0px;&quot;&gt;&lt;img alt=&quot;Modal Popup&quot; src=&quot;http://www.dotnetcurry.com/images/aspnet/ajax/modalpop5.jpg&quot; style=&quot;border: 0px; margin: 10px 0px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot; style=&quot;background-color: white; font-family: Verdana, MuseoSans, Georgia, &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 20px; margin: 0in 0in 10pt; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;The ModalPopup is a great way to stop users clicking on controls when you don’t want them to.&amp;nbsp;It provides greater control, which in turn will lead to increased accuracy and integrity of the data captured. The&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;source code&lt;/strong&gt;&amp;nbsp;of this article can be downloaded from&amp;nbsp;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;&lt;a href=&quot;http://cid-2c5f5b0560e374cb.skydrive.live.com/self.aspx/.Public/Uploads/UsingModalPopUp.zip&quot; style=&quot;color: blue; margin: 0px; outline-width: 0px; padding: 0px; text-decoration: initial;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;here&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small; margin: 0px; padding: 0px;&quot;&gt;To see how to use the ModalPopup in a Master-Detail GridView scenario, take a look at this article by Suprotim&amp;nbsp;&lt;a href=&quot;http://www.dotnetcurry.com/ShowArticle.aspx?ID=212&quot; style=&quot;color: blue; margin: 0px; outline-width: 0px; padding: 0px; text-decoration: initial;&quot;&gt;Display Master-Detail Data with the ModalPopup Extender and GridView&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/790639124012869001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2013/02/ajax-modalpopup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/790639124012869001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/790639124012869001'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2013/02/ajax-modalpopup.html' title='AJAX ModalPopup'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-1325424572842629774</id><published>2013-01-31T02:58:00.000-08:00</published><updated>2013-01-31T02:58:07.215-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="The Microsoft Dynamics CRM"/><title type='text'>Query Metadata Using 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;
&lt;h3 class=&quot;post-name&quot; style=&quot;background-color: white; border-bottom-color: rgb(199, 200, 201); border-bottom-style: dashed; border-bottom-width: 1px; color: #006ff7; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 1.55em; font-weight: normal; margin: 7px 0px 18px; padding: 0px;&quot;&gt;
New Technical Article: Query Metadata Using JavaScript&lt;/h3&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
If you work with JavaScript in Microsoft Dynamics CRM and need to query the metadata, please take a few minutes to look at the new technical article I just published:&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/jj919080.aspx&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;Query Metadata Using JavaScript&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
For a while now, the SDK has had sample libraries for retrieving metadata. The SDK.Metadata.js library included in the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/gg594428.aspx&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;Sample: Retrieve Entity Metadata Using JavaScript&lt;/a&gt;&amp;nbsp;topic includes functions that use&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.messages.retrieveallentitiesrequest.aspx&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;RetrieveAllEntitiesRequest&lt;/a&gt;,&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.messages.retrieveentityrequest.aspx&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;RetrieveEntityRequest&lt;/a&gt;, and&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.messages.retrieveattributerequest.aspx&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;RetrieveAttributeRequest&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
The new library is different because:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px;&quot;&gt;
&lt;li&gt;You can use the new classes in the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.metadata.query.aspx&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;Microsoft.Xrm.Sdk.Metadata.Query&lt;/a&gt;&amp;nbsp;namespace to more efficiently retrieve just the metadata you need and to detect changes to the metadata. Details about these classes are found in the SDK topic:&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/jj863599.aspx&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;Retrieve and Detect Changes to Metadata&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;It uses object oriented programming techniques to provide a development experience using JavaScript that is similar to the experience you have with managed code.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
As a programmer/writer for the CRM SDK team, I write content and sample code for a variety of areas including form scripting, web resources, and metadata APIs. In my free time I’ve made a number of tools that access the metadata using JavaScript. The&amp;nbsp;&lt;a href=&quot;http://blogs.msdn.com/b/crm/archive/2013/01/14/new-and-improved-metadata-browser-for-microsoft-dynamics-crm-2011.aspx&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;new Metadata Browser&amp;nbsp;&lt;/a&gt;and the&amp;nbsp;&lt;a href=&quot;http://blogs.msdn.com/b/crm/archive/2012/12/12/form-query-string-parameter-tool.aspx&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot;&gt;Form Query String Parameter tool&amp;nbsp;&lt;/a&gt;are two recent examples. But the old metadata APIs are not optimized for performance. You often get more data than you really need and performance is affected. So I was really excited about the new classes in the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.metadata.query.aspx&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;Microsoft.Xrm.Sdk.Metadata.Query&lt;/a&gt;&amp;nbsp;namespace because they implement something similar to the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.query.queryexpression.aspx&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;QueryExpression&lt;/a&gt;&amp;nbsp;classes that you can use to define queries for CRM data.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
However, with this flexibility came a new challenge. The old metadata APIs have simple parameters like entity name, attribute name and one enumeration value. It is relatively straight forward to convert these into a simple JavaScript function using the pattern described in&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/gg594434.aspx&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;Walkthrough: Use the SOAP Endpoint for Web Resources with JavaScript&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
The new metadata API requires a complex object defined in XML. To get this I had to implement a whole set of JavaScript “classes” that map to the managed code classes. Each of the classes that define a query has a&amp;nbsp;&lt;strong&gt;_toXml&lt;/strong&gt;&amp;nbsp;method that is used to generate the XML that is sent with the request. I spent a lot of time using the SOAPLogger tool in the SDK to observe the XML sent through using managed code so I could reverse engineer the patterns to get the same XML using JavaScript.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
The thing about classes in JavaScript is that there are different ways to write them. Many people use&lt;a href=&quot;http://scriptsharp.com/&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;Script#&lt;/a&gt;. Recently,&amp;nbsp;&lt;a href=&quot;http://www.typescriptlang.org/&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;TypeScript&lt;/a&gt;&amp;nbsp;became available. The way that I came up with is an amalgamation of a number of different patterns I found on the Internet, but I wrote them by hand without any supporting tools like TypeScript or Script#. This is probably because I actually enjoy writing JavaScript. I know many of you do not. If TypeScript had been available when I started this project, I might have used that. If you want to follow this pattern and don’t like JavaScript as much as I do, you might want to try TypeScript or Script#.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
Now that I have this library done, I’ve already created another one that provides the same experience for QueryExpression with CRM data. I’m still testing it, and I’ll publish an article when it’s ready. But please don’t think that this is what I spend my workday doing. I have a backlog of content and samples to create to support current and upcoming features. I have no time to spend on these kinds of projects during the work week. I do all these projects on my weekends. If you enjoy using this library, thank my wife for her patience.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
I’m not releasing this library in the SDK. This library is much more than a sample for using a CRM API. Although I tested it myself and sent it out to others to review, it hasn’t gone through a full set of tests for all the types of queries that you might make with it. I’m confident that it will work for you, but including it in the SDK would require that our technical support team provide some level of support for it. Our technical support team supports the SOAP Endpoint for web resources which this library uses, but I am the support provider for this library. If you have problems with it, contact me using the&amp;nbsp;&lt;strong&gt;Send comments about this topic to Microsoft&amp;nbsp;&lt;/strong&gt;link at the bottom of the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/jj919080.aspx&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot; target=&quot;_blank&quot;&gt;Query Metadata Using JavaScript&lt;/a&gt;&amp;nbsp;article. But I hope the complete reference documentation provided in the technical article should answer most of your questions.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/1325424572842629774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2013/01/query-metadata-using-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/1325424572842629774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/1325424572842629774'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2013/01/query-metadata-using-javascript.html' title='Query Metadata Using JavaScript'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-2971128407311272050</id><published>2013-01-31T02:56:00.000-08:00</published><updated>2013-01-31T02:56:21.409-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="The Microsoft Dynamics CRM"/><title type='text'>The Microsoft Dynamics CRM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong style=&quot;background-color: white; color: #58595b; font-family: &#39;Segoe UI&#39;; font-size: 16px; line-height: 26.65625px;&quot;&gt;Customer relationship management (CRM)&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #58595b; font-family: &#39;Segoe UI&#39;; font-size: 16px; line-height: 26.65625px;&quot;&gt;&amp;nbsp;can help reduce costs and increase profitability by organizing and automating business processes that nurture customer satisfaction and loyalty.&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #58595b; font-family: &#39;Segoe UI&#39;; font-size: 16px; line-height: 26.65625px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #58595b; font-family: &#39;Segoe UI&#39;; font-size: 16px; line-height: 26.65625px; margin-top: 1em;&quot;&gt;
CRM delivers a holistic view of each customer that enables client-facing employees to make expedited and educated decisions about strategic efforts in the sales, marketing, and customer service fields.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #58595b; font-family: &#39;Segoe UI&#39;; font-size: 16px; line-height: 26.65625px; margin-top: 1em;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #58595b; font-family: &#39;Segoe UI&#39;; font-size: 16px; line-height: 26.65625px; margin-top: 1em;&quot;&gt;
&lt;/div&gt;
&lt;h3 class=&quot;post-name&quot; style=&quot;border-bottom-color: rgb(199, 200, 201); border-bottom-style: dashed; border-bottom-width: 1px; color: #006ff7; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 1.55em; font-weight: normal; line-height: normal; margin: 7px 0px 18px; padding: 0px;&quot;&gt;
10 things I love about Dynamics CRM 2011 “December 2012 Service Update” or “Polaris Update”&lt;/h3&gt;
&lt;div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;strong&gt;1.&amp;nbsp; The&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;Flow User&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;Experience Forms (UUX forms)&lt;/strong&gt;&amp;nbsp;- These are the new “process flow” forms with the process bar up the top of each form. The Process Bar is a new, simple, guided and intuitive way for users to work through their company’s&lt;br /&gt;business process. Each step clearly outlines the current stage of the process and makes suggestions on information to be collected and&amp;nbsp;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; line-height: 16px;&quot;&gt;recommends specific activities. It is a more process-centric, outcome-oriented and guided experience. I also love the clean Modern look of these UUX Forms!&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;a href=&quot;http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/7345.blog1.png&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/7345.blog1.png&quot; style=&quot;max-width: 100%; overflow: hidden;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
2.&amp;nbsp;&lt;strong&gt;Easily Edit the Process Bar.&lt;/strong&gt;&amp;nbsp;The Process bar can be easily edited to meet your business process. No coding required. Just select the “Edit Sales Process” from the menu option&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;a href=&quot;http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/8168.blog2.png&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/8168.blog2.png&quot; style=&quot;max-width: 100%; overflow: hidden;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: x-small; line-height: 13px;&quot;&gt;&amp;nbsp;Then you can build your own process using the “Process Control Customization Tool” where you can edit/add your “Stages”, “Steps”, and &quot;Fields&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 11pt; line-height: 16px;&quot;&gt;&lt;a href=&quot;http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/5040.blog3.png&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;261&quot; src=&quot;http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/5040.blog3.png&quot; style=&quot;max-width: 100%; overflow: hidden;&quot; width=&quot;564&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: x-small; line-height: 13px;&quot;&gt;&lt;strong&gt;3. Posts-Activities-Notes all in one place.&lt;/strong&gt;&amp;nbsp;Tab between Posts, Activities and Notes right&amp;nbsp;within the new Flow User Experience (UUX) forms.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 11pt; line-height: 16px;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;a href=&quot;http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/8463.blog4.png&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/8463.blog4.png&quot; style=&quot;max-width: 100%; overflow: hidden;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: x-small; line-height: 13px;&quot;&gt;4.&amp;nbsp;&amp;nbsp;&lt;strong&gt;Phone Call Activities are auto-created.&lt;/strong&gt;&amp;nbsp;When you click on a phone number or Skype Name, the system auto-creates a Phone activity and places the cursor on the Activity. Woo hoo! You don’t have to&lt;br /&gt;manually create a Phone Activity anymore. It also has a “left voice mail” check box. These simple features allow for, “quick productivity gains.&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 11pt; line-height: 16px;&quot;&gt;&lt;a href=&quot;http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/4150.blog5.png&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/4150.blog5.png&quot; style=&quot;max-width: 100%; overflow: hidden;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 11pt; line-height: 16px;&quot;&gt;&lt;a href=&quot;http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/1563.blog6.png&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/1563.blog6.png&quot; style=&quot;max-width: 100%; overflow: hidden;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;5.&amp;nbsp;&lt;strong&gt;Skype-to-Skype calling&lt;/strong&gt;. Trigger a Skype-to-Skype Call, if the phone number field has a Skype handle. &amp;nbsp;The phone number/Skype Name will be hyperlinked and clickable.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;6.&amp;nbsp;&lt;strong&gt;Auto Save.&amp;nbsp;&lt;/strong&gt;An User no longer has to click “Save”&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;when they enter their data into an UUX form. The system auto-saves as you type&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;away. Then when you close the form, it saves automatically. Yippee! No more&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;paranoia about saving my work.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;strong&gt;7. Bing Maps&lt;/strong&gt;- Bing Maps are available on the Lead, Account &amp;amp; Contact forms. You can see exactly where&amp;nbsp;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; line-height: 13px;&quot;&gt;on the map for directions. No more ALT TABBING!&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;the customer is located without ever leaving Dynamics CRM. You can click&amp;nbsp;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; line-height: 13px;&quot;&gt;on the map for directions. No more ALT TABBING!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 11pt; line-height: 16px;&quot;&gt;&lt;a href=&quot;http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/3301.blog7.png&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/3301.blog7.png&quot; style=&quot;max-width: 100%; overflow: hidden;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;8.&amp;nbsp;&lt;strong&gt;Cross Browser Support on Windows Devices&lt;/strong&gt;: You can access Dynamics CRM Online org via Firefox, Chrome as well as Safari on McIntosh Desktops. Below is a list of browsers that are supported.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;a href=&quot;http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/4532.blog8.png&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/4532.blog8.png&quot; style=&quot;max-width: 100%; overflow: hidden;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 11pt; line-height: 16px;&quot;&gt;&lt;a href=&quot;http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/6761.blog9.png&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/6761.blog9.png&quot; style=&quot;max-width: 100%; overflow: hidden;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; line-height: 13px;&quot;&gt;9. O&lt;/span&gt;&lt;strong&gt;pt-In&lt;/strong&gt;- Existing customers can Opt-In to the new Update experience. This is not an auto-update. You can Opt In by going to Settings&amp;gt;Administration&amp;gt; Product Updates&amp;gt; Update.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; line-height: 13px;&quot;&gt;10.&amp;nbsp; S&lt;/span&gt;&lt;strong&gt;witching to Classic View&lt;/strong&gt;: a user can switch to “Classic mode” from a menu option at the top of the form.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22.703125px; margin-top: 12px;&quot;&gt;
&lt;a href=&quot;http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/8054.blog10.png&quot; style=&quot;color: #0066dd; outline: none; text-decoration: initial;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-55-55/8054.blog10.png&quot; style=&quot;max-width: 100%; overflow: hidden;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/2971128407311272050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2013/01/the-microsoft-dynamics-crm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/2971128407311272050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/2971128407311272050'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2013/01/the-microsoft-dynamics-crm.html' title='The Microsoft Dynamics CRM'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-2377440978134035826</id><published>2012-07-28T02:07:00.000-07:00</published><updated>2012-07-28T02:07:48.064-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CMS"/><category scheme="http://www.blogger.com/atom/ns#" term="CMS website"/><category scheme="http://www.blogger.com/atom/ns#" term="Contents Management System"/><category scheme="http://www.blogger.com/atom/ns#" term="How to Build a Website"/><category scheme="http://www.blogger.com/atom/ns#" term="website design"/><title type='text'>CMS</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;h1 style=&quot;color: #ec0b49; font-family: Arial, Helvetica, sans-serif; font-size: 1.43em; font-weight: normal; line-height: 1.5em; padding-left: 25px; padding-top: 10px;&quot;&gt;
CMS Website Design (Content Management System)&lt;/h1&gt;
&lt;h2 style=&quot;color: #4e4e4e; font-family: Arial, Helvetica, sans-serif; font-size: 1.25em; font-weight: normal; line-height: 1.3em; padding-left: 25px;&quot;&gt;
So what is a CMS web site?&lt;/h2&gt;
&lt;div class=&quot;t2&quot; style=&quot;color: #6c7172; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.7em; padding-left: 25px; padding-right: 25px; text-align: justify;&quot;&gt;
CMS or a &#39;Content Management System&#39; quite literally allows you to control and manage the content within your web site - without technical training. Using this uncomplicated system you can very easily add, delete images and edit text in your web site on the fly. You can also have an unlimited number of pages and a full site-search engine. What&#39;s more... with &#39;Navega Bem - Web Design&#39; you can have a highly professional CMS web site at a very reasonable price indeed!&lt;br /&gt;&lt;br /&gt;If you are already familiar with &#39;Content Management Systems&#39; then click here to see the advantages of our&amp;nbsp;&lt;a class=&quot;pinklink&quot; href=&quot;http://www.navegabem.com/cms-website-advantages.html&quot; style=&quot;color: #ec0c4a; font-size: 1em; line-height: normal; text-decoration: none;&quot;&gt;Joomla!&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a class=&quot;pinklink&quot; href=&quot;http://www.navegabem.com/drupal-web-design.html&quot; style=&quot;color: #ec0c4a; font-size: 1em; line-height: normal; text-decoration: none;&quot;&gt;Drupal CMS&lt;/a&gt;&amp;nbsp;solutions.&lt;/div&gt;
&lt;h2 style=&quot;color: #4e4e4e; font-family: Arial, Helvetica, sans-serif; font-size: 1.25em; font-weight: normal; line-height: 1.3em; padding-left: 25px;&quot;&gt;
Users with no programming or HTML experience?&lt;/h2&gt;
&lt;div class=&quot;t2&quot; style=&quot;color: #6c7172; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.7em; padding-left: 25px; padding-right: 25px; text-align: justify;&quot;&gt;
Simply put, if you have just a little experience with Microsoft Word then you will be able to manage the content of your own web site very easily indeed. You need have no programming or HTML experience. Editing can be done with any normal web browser from anywhere in the world - or with your iPhone :)&lt;/div&gt;
&lt;h2 style=&quot;color: #4e4e4e; font-family: Arial, Helvetica, sans-serif; font-size: 1.25em; font-weight: normal; line-height: 1.3em; padding-left: 25px;&quot;&gt;
See our 1 minute CMS Demo movie&lt;/h2&gt;
&lt;div style=&quot;color: #6c7172; float: left; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; height: 181px; line-height: 23px; padding-right: 10px; text-align: justify; width: 525px;&quot;&gt;
&lt;div style=&quot;float: left; height: 171px; width: 215px;&quot;&gt;
&lt;a href=&quot;http://www.navegabem.com/cms-edit-demo.html&quot; style=&quot;color: #262626; font-family: Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none;&quot;&gt;&lt;img alt=&quot;Joomla CMS editing demonstration video&quot; height=&quot;141&quot; src=&quot;http://www.navegabem.com/media/video-tile.jpg&quot; style=&quot;border: 0px;&quot; width=&quot;215&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Most people new to the world of CMS websites cannot imagine how they could ever manage their site themselves. So, see our&lt;a class=&quot;pinklink&quot; href=&quot;http://www.navegabem.com/cms-edit-demo.html&quot; style=&quot;color: #ec0c4a; font-size: 1em; line-height: normal; text-decoration: none;&quot;&gt;Joomla demo movie&lt;/a&gt;&amp;nbsp;which shows how you can update your website and publish it - all in just 1 minute!&lt;/div&gt;
&lt;h2 style=&quot;color: #4e4e4e; font-family: Arial, Helvetica, sans-serif; font-size: 1.25em; font-weight: normal; line-height: 1.3em; padding-left: 25px;&quot;&gt;
Why should you opt for CMS?&lt;/h2&gt;
&lt;div class=&quot;t2&quot; style=&quot;color: #6c7172; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.7em; padding-left: 25px; padding-right: 25px; text-align: justify;&quot;&gt;
Many companies find it difficult to keep their web site content as up to date as they would like. Often there are delays getting new content online, the site stagnates and your clients get to see outdated information. That’s why so many companies are turning to CMS.&amp;nbsp;&lt;a class=&quot;pinklink&quot; href=&quot;http://www.navegabem.com/vanessa-bertha.html&quot; style=&quot;color: #ec0c4a; font-size: 1em; line-height: normal; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Meet Vanessa and Bertha for an enlightening example&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;A CMS web presence allows you to manage your web site even if you have no technical knowledge, experience with HTML or web site design. It also reduces the calls to your web design agency or IT department for changes to the web site. CMS reduces the time required to publish, allowing you to get your content on-line faster. This is a very important issue for any professional web site.&lt;/div&gt;
&lt;h2 style=&quot;color: #4e4e4e; font-family: Arial, Helvetica, sans-serif; font-size: 1.25em; font-weight: normal; line-height: 1.3em; padding-left: 25px;&quot;&gt;
Why use &#39;Navega Bem&#39; to develop your CMS website?&lt;/h2&gt;
&lt;div class=&quot;t2&quot; style=&quot;color: #6c7172; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.7em; padding-left: 25px; padding-right: 25px; text-align: justify;&quot;&gt;
You have read some really amazing things about CMS on this page. Having a web site that you can manage yourself is the perfect solution for most companies.&lt;br /&gt;However, you need a professional company to design and develop your site. Navega Bem are professional Joomla developers. Our sites are featured in many online design portfolios. Our sites don&#39;t only look good - we market them so that they perform well and bring you traffic and business.&lt;br /&gt;&lt;br /&gt;It&#39;s no coincidence that we are chosen to develop websites by companies from Dubai to New York to California to Hong Kong to London to Lisbon to Naples to Hamburg to... need we say more?&lt;br /&gt;&lt;br /&gt;In the field of web design you really do get what you pay for. Let&#39;s face it - it doesn&#39;t matter how little you paid for your website or how attractive it is. If it can&#39;t rapidly be found in the search engines then it is losing money for you every single day. Now that is a very expensive website!&lt;br /&gt;&lt;br /&gt;Once &#39;Navega Bem - Web Design&#39; has developed your CMS site, it belongs to you. There are no monthly fees - no license fees - no maintenance fees - you are not tied to us in any way. You login to your own website to control your own content. You have complete independence and total control! If you should require any support, then of course we are there for you.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/2377440978134035826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2012/07/cms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/2377440978134035826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/2377440978134035826'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2012/07/cms.html' title='CMS'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-5557542733513306977</id><published>2012-07-21T04:07:00.000-07:00</published><updated>2012-07-21T04:07:13.051-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="Mobile OS"/><category scheme="http://www.blogger.com/atom/ns#" term="Top OS"/><title type='text'>How To Write Your First Google Android Application</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;h3 style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; margin: 0px; padding: 20px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Step 1: Get Eclipse&lt;/strong&gt;&lt;/h3&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
For this tutorial, I’m going to use Eclipse, because frankly it’s the easiest and most hassle-free development tool for Android right now. If you’re a NetBeans programmer, be my guest; but I’ll use Eclipse today.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;http://www.eclipse.org/downloads/&quot; style=&quot;border: 0px; color: #0477cd; font-size: 14px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Download Eclipse IDE for Java Developers&lt;/a&gt;&amp;nbsp;(PC or Mac, 92MB)&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Note:&lt;/strong&gt;&amp;nbsp;This is a .zip file; when you unzip it you will be able to run it wherever you unpacked it – there is no installer. I’d recommend that you put this in “&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;C:\Program Files\&lt;/em&gt;” unless you plan on making it a portable application on a USB drive or something.&lt;/div&gt;
&lt;h3 style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; margin: 0px; padding: 20px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Step 2: Download The Java JDK&lt;/strong&gt;&lt;/h3&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
If you don’t have it already, you need to download the&amp;nbsp;&lt;a href=&quot;http://java.sun.com/javase/downloads/widget/jdk6.jsp&quot; style=&quot;border: 0px; color: #0477cd; font-size: 14px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Java JDK 6&lt;/a&gt;. If you currently have the JDK 5, you should be okay, but there’s really no reason not to update. Just install it by downloading and then running through the setup to get things going. I’d recommend that you just hit&amp;nbsp;&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;next–&amp;gt;next–&amp;gt;finish&lt;/em&gt;, rather than doing anything fancy. Once you get things working, you can mess around a bit.&lt;/div&gt;
&lt;h3 style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; margin: 0px; padding: 20px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Step 3: Download The Android SDK Tools&lt;/strong&gt;&lt;/h3&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Next, you’ll need to get the&amp;nbsp;&lt;a href=&quot;http://developer.android.com/sdk/index.html&quot; style=&quot;border: 0px; color: #0477cd; font-size: 14px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Android SDK Tools&lt;/a&gt;&amp;nbsp;straight from Google. Unpack and install this to a directory you’ll remember – you need to reference this in the next few steps.&lt;/div&gt;
&lt;h3 style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; margin: 0px; padding: 20px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Step 4: Configure Eclipse For Your Android&lt;/strong&gt;&lt;/h3&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Start Eclipse, and head to ‘&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Help&amp;gt;Install New Software&lt;/em&gt;‘. Hit&amp;nbsp; “&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Add…&lt;/em&gt;” and for the name, type “&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Android&lt;/em&gt;” and set the link to “&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;https://dl-ssl.google.com/android/eclipse/&lt;/em&gt;” (if this doesn’t work, try it with http:// instead of http&lt;strong style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;s&lt;/strong&gt;://).Click “OK” and the following should appear.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;img alt=&quot;how to write Google Android apps&quot; class=&quot;aligncenter&quot; height=&quot;420&quot; src=&quot;http://main.makeuseoflimited.netdna-cdn.com/wp-content/uploads/2010/04/eclipse.png?323f2c&quot; style=&quot;border: 0px; display: block; font-size: 14px; font: inherit; margin: 10px auto; padding: 0px; vertical-align: baseline;&quot; width=&quot;492&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Select both of the resulting packages, and hit&amp;nbsp;&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;next&lt;/em&gt;&amp;nbsp;– this will download the&lt;strong style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;Android ADT&lt;/strong&gt;(Android Development Tools). Go ahead and start the download to obtain these two packages. Restart Eclipse (it should prompt you to on completion of the downloads). We’re almost ready to start coding.&lt;/div&gt;
&lt;h3 style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; margin: 0px; padding: 20px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Step 5: Configure The Android SDK&lt;/strong&gt;&lt;/h3&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Navigate to the folder you downloaded/unpacked the Android SDK to. In there, you’ll find a file named “&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SDK Setup.exe&lt;/em&gt;.” Start that file – the following dialogue should appear.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;img alt=&quot;how to write Google Android apps&quot; class=&quot;aligncenter&quot; height=&quot;296&quot; src=&quot;http://main.makeuseoflimited.netdna-cdn.com/wp-content/uploads/2010/04/SDK.png?323f2c&quot; style=&quot;border: 0px; display: block; font-size: 14px; font: inherit; margin: 10px auto; padding: 0px; vertical-align: baseline;&quot; width=&quot;590&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Don’t feel obligated to download every single thing. Could it hurt? Not really. For me, however, I only really want to program for Android 2.1 and 2.01, so those are the only API packages I bothered to get (someday I may pay for my folly, but not today). Either way, get what you want (and you do need to pick one) and hit&amp;nbsp;&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;install&lt;/em&gt;. The SDK manager will install it for a little while – go grab a snack.&lt;/div&gt;
&lt;h3 style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; margin: 0px; padding: 20px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Step 6: Set Up Your Android Virtual Device (AVD)&lt;/strong&gt;&lt;/h3&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Now that you’ve finished yet another painful download, click over to “&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;virtual devices&lt;/em&gt;” (still in the SDK Manager). We’re going to create an Android device that will test run your programs for you! Hit “&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;New&lt;/em&gt;” to create a new Android device, and put in the specifications that you want it to have. In the screenshot below, you’ll see the options I wanted (that closely mimic that of my Motorola Droid).&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;img alt=&quot;how to write Google Android apps&quot; class=&quot;aligncenter&quot; height=&quot;444&quot; src=&quot;http://main.makeuseoflimited.netdna-cdn.com/wp-content/uploads/2010/04/AVD.png?323f2c&quot; style=&quot;border: 0px; display: block; font-size: 14px; font: inherit; margin: 10px auto; padding: 0px; vertical-align: baseline;&quot; width=&quot;318&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Click “&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Create AVD&lt;/em&gt;” to–well–create your AVD. Select your AVD from the list, and hit “&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Start&lt;/em&gt;” to make sure that you do indeed have a working emulation of an Android phone. After a pretty lengthy start-up wait, it should look something like this.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;img alt=&quot;writing google android apps&quot; class=&quot;aligncenter&quot; height=&quot;333&quot; src=&quot;http://main.makeuseoflimited.netdna-cdn.com/wp-content/uploads/2010/04/AVDEmulator.png?323f2c&quot; style=&quot;border: 0px; display: block; font-size: 14px; font: inherit; margin: 10px auto; padding: 0px; vertical-align: baseline;&quot; width=&quot;476&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Fool around with it and explore for a bit if you want, then close it up so we can get back to work.&lt;/div&gt;
&lt;h3 style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; margin: 0px; padding: 20px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Step 7: Configure Eclipse Again&lt;/strong&gt;&lt;/h3&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Remember that Android SDK we got earlier? We didn’t do anything with it. Now, it’s time to tell Eclipse where it is so Eclipse can use it as a resource. To do this, open Eclipse and navigate to&amp;nbsp;&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Window&amp;gt;Preferences&lt;/em&gt;&amp;nbsp;(or on Mac,&amp;nbsp;&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Eclipse&amp;gt;Preferences&lt;/em&gt;) and select the&amp;nbsp;&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Android&lt;/em&gt;&amp;nbsp;tab. As shown below, browse to the location of your Android SDK and hit “&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Apply&lt;/em&gt;“.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;img alt=&quot;writing google android apps&quot; class=&quot;aligncenter&quot; height=&quot;414&quot; src=&quot;http://main.makeuseoflimited.netdna-cdn.com/wp-content/uploads/2010/04/EclipseAndroid.png?323f2c&quot; style=&quot;border: 0px; display: block; font-size: 14px; font: inherit; margin: 10px auto; padding: 0px; vertical-align: baseline;&quot; width=&quot;477&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Everything check out so far? Hit “OK” to save everything and let’s go program.&lt;/div&gt;
&lt;h3 style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; margin: 0px; padding: 20px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Step 8: Create A New Project&lt;/strong&gt;&lt;/h3&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
It’s finally time to code some. Navigate to ‘&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;File&amp;gt;New&amp;gt;Other…&amp;gt;Android&amp;gt;Android Project&lt;/em&gt;‘, and input a project name, as well as some other details. If you want, copy from my screenshot below. Some of the fields need explaining that simply doesn’t belong here, so if you want to know more specifically, please let me know and maybe I’ll write an article about it.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;img alt=&quot;writing google android apps&quot; class=&quot;aligncenter&quot; height=&quot;506&quot; src=&quot;http://main.makeuseoflimited.netdna-cdn.com/wp-content/uploads/2010/04/projecthello.png?323f2c&quot; style=&quot;border: 0px; display: block; font-size: 14px; font: inherit; margin: 10px auto; padding: 0px; vertical-align: baseline;&quot; width=&quot;369&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Hit “&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Finish&lt;/em&gt;” and the project will be created.&lt;/div&gt;
&lt;h3 style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; margin: 0px; padding: 20px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Step 9: Input Your Code&lt;/strong&gt;&lt;/h3&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
In the tree on the left, navigate to the “src” folder and expand everything. Go to the file with the name of your “Activity” (created in step 8, mine was HelloWorld) and double click it to see the contents. Presently, your code has all of the content in black (with some minor modifications depending on your settings). To make a working “Hello world” program, you need to add the text that is in bold red. Note that there are two bold red “blocks” of code, and you need to add both to make things work.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
//==========Start Code============&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid silver; clear: none; color: #110000; float: none; font: inherit; line-height: 1.333; margin-bottom: 1.5em; overflow: auto; padding: 0px; text-align: -webkit-auto; vertical-align: baseline; width: 580px;&quot;&gt;package com.android.helloandroid;

import android.app.Activity;
import android.os.Bundle;
&lt;span style=&quot;border: 0px; color: maroon; font-size: 12px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;import android.widget.TextView;&lt;/span&gt;

public class HelloAndroid extends Activity {
&amp;nbsp; &amp;nbsp;/** Called when the activity is first created. */
&amp;nbsp; &amp;nbsp;@Override
&amp;nbsp; &amp;nbsp;public void onCreate(Bundle savedInstanceState) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super.onCreate(savedInstanceState);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;border: 0px; color: maroon; font-size: 12px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TextView tv = new TextView(this);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tv.setText(&quot;Hello, Android&quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setContentView(tv);&lt;/span&gt;
&amp;nbsp; &amp;nbsp;}
}&lt;/pre&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
//==========End Code============&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
I would love to explain all of the code, but that’s not exactly the point of this tutorial; the point is to get your feet off the ground. I know some/most of this is confusing; but it’s just how things are wired.&lt;/div&gt;
&lt;h3 style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; margin: 0px; padding: 20px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Step 10: Run Your Program&lt;/strong&gt;&lt;/h3&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Above your code, you’ll see a little green “&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Play&lt;/em&gt;” button (or navigate to ‘&lt;em style=&quot;border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Run&amp;gt;Run&lt;/em&gt;‘). Click it.When a popup box asks you how to run the application, you’re going to tell it to run as an “Android Application”. It will prompt you to save changes; hit yes.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Now you get to wait an eternity while your virtual device boots up. I’d recommend that you leave it open for the duration of your programming sprees, otherwise you’re going to spend more time watching the Android logo spin than you will watching your program freeze up. Just saying. Efficiency.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
After everything’s done loading, your application should upload and start automatically. Which means that right after you “unlock” the device, you’ll be greeted with your first Android program.I only captured the top half of the screen because the rest of it is black.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;img alt=&quot;make google android apps&quot; class=&quot;aligncenter&quot; height=&quot;203&quot; src=&quot;http://main.makeuseoflimited.netdna-cdn.com/wp-content/uploads/2010/04/CropperCapture1.png?323f2c&quot; style=&quot;border: 0px; display: block; font-size: 14px; font: inherit; margin: 10px auto; padding: 0px; vertical-align: baseline;&quot; width=&quot;333&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
That’s it, congratulations! The task can be a bit daunting at first; and definitely confusing, but if you stick with it you won’t be disappointed. If you step back and think about it, we only did a few really major things, the rest was just the process of connecting the pieces to make everything work.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #3b3128; font-family: Arial, Helvetica, sans-serif; font: inherit; line-height: 20px; padding: 5px 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Do you want to become an Android developer? Have you ever written an Android app, and if so, what did it do? As always I love getting feedback in the comments section. As someone who answered yes to the first question, I’m in the process of learning to adequately code for my Android device, so do you have any websites or pointers that would help me or a fellow Android newbie out?&lt;/div&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/5557542733513306977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2012/07/how-to-write-your-first-google-android.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/5557542733513306977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/5557542733513306977'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2012/07/how-to-write-your-first-google-android.html' title='How To Write Your First Google Android Application'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-712149967808311810</id><published>2012-07-21T03:03:00.000-07:00</published><updated>2012-07-21T03:04:25.381-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="marquee"/><category scheme="http://www.blogger.com/atom/ns#" term="Marquee Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="rigth to left move"/><category scheme="http://www.blogger.com/atom/ns#" term="Slide in text"/><title type='text'>Marquee Codes</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;h1 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;

Slide-In Text&lt;/h1&gt;
&lt;div&gt;
&lt;h2 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;

Top to Bottom&lt;/h2&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
To make your text slide in from the top, use&amp;nbsp;&lt;code&gt;behavior=&quot;slide&quot; direction=&quot;down&quot;&lt;/code&gt;. Like this:&lt;/div&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;example&quot; style=&quot;background-color: #cefbc5; border-collapse: collapse; color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; width: 724px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;exampleHeader&quot; style=&quot;background-color: #47ae32; border: 1px solid rgb(71, 174, 50); color: white;&quot;&gt;&lt;th&gt;Source Code&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;exampleCode&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); font-size: 11px; height: 100px; vertical-align: top; width: 210px;&quot;&gt;&lt;textarea class=&quot;exampleCode&quot; cols=&quot;70&quot; name=&quot;bodyText&quot; rows=&quot;3&quot; style=&quot;background-color: white; border-color: rgb(71, 174, 50); height: 100px; margin: 5px; vertical-align: top; width: 200px;&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;td class=&quot;exampleDisplay&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); padding: 10px; vertical-align: top; width: 450px;&quot;&gt;&lt;marquee behavior=&quot;slide&quot; direction=&quot;down&quot;&gt;Here is some slide-in text... coming from the top.&lt;/marquee&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;

Bottom to Top&lt;/h2&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
To make your text slide in from the bottom, use&amp;nbsp;&lt;code&gt;behavior=&quot;slide&quot; direction=&quot;up&quot;&lt;/code&gt;. Like this:&lt;/div&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;example&quot; style=&quot;background-color: #cefbc5; border-collapse: collapse; color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; width: 724px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;exampleHeader&quot; style=&quot;background-color: #47ae32; border: 1px solid rgb(71, 174, 50); color: white;&quot;&gt;&lt;th&gt;Source Code&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;exampleCode&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); font-size: 11px; height: 100px; vertical-align: top; width: 210px;&quot;&gt;&lt;textarea class=&quot;exampleCode&quot; cols=&quot;70&quot; name=&quot;bodyText&quot; rows=&quot;3&quot; style=&quot;background-color: white; border-color: rgb(71, 174, 50); height: 100px; margin: 5px; vertical-align: top; width: 200px;&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;td class=&quot;exampleDisplay&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); padding: 10px; vertical-align: top; width: 450px;&quot;&gt;&lt;marquee behavior=&quot;slide&quot; direction=&quot;up&quot;&gt;Here is some slide-in text... coming from the bottom.&lt;/marquee&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;

Right to Left&lt;/h2&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
To make your text slide in from the right, use&amp;nbsp;&lt;code&gt;behavior=&quot;slide&quot; direction=&quot;left&quot;&lt;/code&gt;. Like this:&lt;/div&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;example&quot; style=&quot;background-color: #cefbc5; border-collapse: collapse; color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; width: 724px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;exampleHeader&quot; style=&quot;background-color: #47ae32; border: 1px solid rgb(71, 174, 50); color: white;&quot;&gt;&lt;th&gt;Source Code&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;exampleCode&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); font-size: 11px; height: 100px; vertical-align: top; width: 210px;&quot;&gt;&lt;textarea class=&quot;exampleCode&quot; cols=&quot;70&quot; name=&quot;bodyText&quot; rows=&quot;3&quot; style=&quot;background-color: white; border-color: rgb(71, 174, 50); height: 100px; margin: 5px; vertical-align: top; width: 200px;&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;td class=&quot;exampleDisplay&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); padding: 10px; vertical-align: top; width: 450px;&quot;&gt;&lt;marquee behavior=&quot;slide&quot; direction=&quot;left&quot;&gt;Here is some slide-in text... coming from the right.&lt;/marquee&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;

Left to Right&lt;/h2&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
To make your text slide in from the left, use&amp;nbsp;&lt;code&gt;behavior=&quot;slide&quot; direction=&quot;right&quot;&lt;/code&gt;. Like this:&lt;/div&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;example&quot; style=&quot;background-color: #cefbc5; border-collapse: collapse; color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; width: 724px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;exampleHeader&quot; style=&quot;background-color: #47ae32; border: 1px solid rgb(71, 174, 50); color: white;&quot;&gt;&lt;th&gt;Source Code&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;exampleCode&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); font-size: 11px; height: 100px; vertical-align: top; width: 210px;&quot;&gt;&lt;textarea class=&quot;exampleCode&quot; cols=&quot;70&quot; name=&quot;bodyText&quot; rows=&quot;3&quot; style=&quot;background-color: white; border-color: rgb(71, 174, 50); height: 100px; margin: 5px; vertical-align: top; width: 200px;&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;td class=&quot;exampleDisplay&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); padding: 10px; vertical-align: top; width: 450px;&quot;&gt;&lt;marquee behavior=&quot;slide&quot; direction=&quot;right&quot;&gt;Here is some slide-in text... coming from the left.&lt;/marquee&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;

Changing the Speed&lt;/h2&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
You can speed up your slide-in text - or slow it down if you prefer. To do this, just add the&amp;nbsp;&lt;code&gt;scrollamount&lt;/code&gt;&amp;nbsp;attribute. For example,&amp;nbsp;&lt;code&gt;scrollamount=&quot;1&quot;&lt;/code&gt;&amp;nbsp;results in a very slow slide, while&amp;nbsp;&lt;code&gt;scrollamount=&quot;50&quot;&lt;/code&gt;&amp;nbsp;will make the text zoom-in - perhaps too fast for most people to notice it zooming in.&lt;/div&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
Some examples:&lt;/div&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;example&quot; style=&quot;background-color: #cefbc5; border-collapse: collapse; color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; width: 724px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;exampleHeader&quot; style=&quot;background-color: #47ae32; border: 1px solid rgb(71, 174, 50); color: white;&quot;&gt;&lt;th&gt;Source Code&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;exampleCode&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); font-size: 11px; height: 100px; vertical-align: top; width: 210px;&quot;&gt;&lt;textarea class=&quot;exampleCode&quot; cols=&quot;70&quot; name=&quot;bodyText&quot; rows=&quot;3&quot; style=&quot;background-color: white; border-color: rgb(71, 174, 50); height: 100px; margin: 5px; vertical-align: top; width: 200px;&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;td class=&quot;exampleDisplay&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); padding: 10px; vertical-align: top; width: 450px;&quot;&gt;&lt;marquee behavior=&quot;slide&quot; direction=&quot;right&quot; scrollamount=&quot;1&quot;&gt;Here is some slide-in text... coming in nice and slowly!&lt;/marquee&gt;&lt;marquee behavior=&quot;slide&quot; direction=&quot;right&quot; scrollamount=&quot;2&quot;&gt;Here is some slide-in text... coming in nice and slowly!&lt;/marquee&gt;&lt;marquee behavior=&quot;slide&quot; direction=&quot;right&quot; scrollamount=&quot;3&quot;&gt;Here is some slide-in text... coming in nice and slowly!&lt;/marquee&gt;&lt;marquee behavior=&quot;slide&quot; direction=&quot;right&quot; scrollamount=&quot;4&quot;&gt;Here is some slide-in text... coming in nice and slowly!&lt;/marquee&gt;&lt;marquee behavior=&quot;slide&quot; direction=&quot;right&quot; scrollamount=&quot;5&quot;&gt;Here is some slide-in text... coming in nice and slowly!&lt;/marquee&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;

Usability of Marquees&lt;/h2&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
You should be careful when using marquees in HTML. Many web users dislike websites that contain scrolling text and other elements, so try to use them tastefully :)&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/712149967808311810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2012/07/marquee-codes_21.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/712149967808311810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/712149967808311810'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2012/07/marquee-codes_21.html' title='Marquee Codes'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-3382453194844391996</id><published>2012-07-21T03:00:00.000-07:00</published><updated>2012-07-21T03:00:35.543-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="marquee"/><category scheme="http://www.blogger.com/atom/ns#" term="Marquee Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="right to left move"/><category scheme="http://www.blogger.com/atom/ns#" term="rigth to left move"/><category scheme="http://www.blogger.com/atom/ns#" term="scrolling text"/><title type='text'>Marquee Codes</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;h1 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;
Scrolling Text&lt;/h1&gt;
&lt;div&gt;
&lt;h2 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;
Right to Left&lt;/h2&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
To make your text scroll left (i.e. from right to left), use&amp;nbsp;&lt;code&gt;behavior=&quot;scroll&quot;&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;direction=&quot;left&quot;&lt;/code&gt;. Like this:&lt;/div&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;example&quot; style=&quot;background-color: #cefbc5; border-collapse: collapse; color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; width: 724px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;exampleHeader&quot; style=&quot;background-color: #47ae32; border: 1px solid rgb(71, 174, 50); color: white;&quot;&gt;&lt;th&gt;Source Code&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;exampleCode&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); font-size: 11px; height: 100px; vertical-align: top; width: 210px;&quot;&gt;&lt;textarea class=&quot;exampleCode&quot; cols=&quot;70&quot; name=&quot;bodyText&quot; rows=&quot;3&quot; style=&quot;background-color: white; border-color: rgb(71, 174, 50); height: 100px; margin: 5px; vertical-align: top; width: 200px;&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;td class=&quot;exampleDisplay&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); padding: 10px; vertical-align: top; width: 450px;&quot;&gt;&lt;marquee behavior=&quot;scroll&quot; direction=&quot;left&quot;&gt;Here is some scrolling text... right to left!&lt;/marquee&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;
Left to Right&lt;/h2&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
To make your text scroll right (i.e. from left to right), use&amp;nbsp;&lt;code&gt;behavior=&quot;scroll&quot;&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;direction=&quot;right&quot;&lt;/code&gt;. Like this:&lt;/div&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;example&quot; style=&quot;background-color: #cefbc5; border-collapse: collapse; color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; width: 724px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;exampleHeader&quot; style=&quot;background-color: #47ae32; border: 1px solid rgb(71, 174, 50); color: white;&quot;&gt;&lt;th&gt;Source Code&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;exampleCode&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); font-size: 11px; height: 100px; vertical-align: top; width: 210px;&quot;&gt;&lt;textarea class=&quot;exampleCode&quot; cols=&quot;70&quot; name=&quot;bodyText&quot; rows=&quot;3&quot; style=&quot;background-color: white; border-color: rgb(71, 174, 50); height: 100px; margin: 5px; vertical-align: top; width: 200px;&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;td class=&quot;exampleDisplay&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); padding: 10px; vertical-align: top; width: 450px;&quot;&gt;&lt;marquee behavior=&quot;scroll&quot; direction=&quot;right&quot;&gt;Here is some scrolling text... left to right!&lt;/marquee&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;
Scroll Up&lt;/h2&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
To make your text scroll up (i.e. from bottom to top), use&amp;nbsp;&lt;code&gt;behavior=&quot;scroll&quot;&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;direction=&quot;up&quot;&lt;/code&gt;. Like this:&lt;/div&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;example&quot; style=&quot;background-color: #cefbc5; border-collapse: collapse; color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; width: 724px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;exampleHeader&quot; style=&quot;background-color: #47ae32; border: 1px solid rgb(71, 174, 50); color: white;&quot;&gt;&lt;th&gt;Source Code&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;exampleCode&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); font-size: 11px; height: 100px; vertical-align: top; width: 210px;&quot;&gt;&lt;textarea class=&quot;exampleCode&quot; cols=&quot;70&quot; name=&quot;bodyText&quot; rows=&quot;3&quot; style=&quot;background-color: white; border-color: rgb(71, 174, 50); height: 100px; margin: 5px; vertical-align: top; width: 200px;&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;td class=&quot;exampleDisplay&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); padding: 10px; vertical-align: top; width: 450px;&quot;&gt;&lt;marquee behavior=&quot;scroll&quot; direction=&quot;up&quot;&gt;Here is some scrolling text... going up!&lt;/marquee&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;
Scroll Down&lt;/h2&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
To make your text scroll down (i.e. from top to bottom), use&amp;nbsp;&lt;code&gt;behavior=&quot;scroll&quot;&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;direction=&quot;down&quot;&lt;/code&gt;. Like this:&lt;/div&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;example&quot; style=&quot;background-color: #cefbc5; border-collapse: collapse; color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; width: 724px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;exampleHeader&quot; style=&quot;background-color: #47ae32; border: 1px solid rgb(71, 174, 50); color: white;&quot;&gt;&lt;th&gt;Source Code&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;exampleCode&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); font-size: 11px; height: 100px; vertical-align: top; width: 210px;&quot;&gt;&lt;textarea class=&quot;exampleCode&quot; cols=&quot;70&quot; name=&quot;bodyText&quot; rows=&quot;3&quot; style=&quot;background-color: white; border-color: rgb(71, 174, 50); height: 100px; margin: 5px; vertical-align: top; width: 200px;&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;td class=&quot;exampleDisplay&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); padding: 10px; vertical-align: top; width: 450px;&quot;&gt;&lt;marquee behavior=&quot;scroll&quot; direction=&quot;down&quot;&gt;Here is some scrolling text... going down!&lt;/marquee&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;
Speed&lt;/h2&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
You can change the scrolling speed of your marquee. For example,&amp;nbsp;&lt;code&gt;scrollamount=&quot;1&quot;&lt;/code&gt;&amp;nbsp;sets the marquee to a very slow scroll, while&amp;nbsp;&lt;code&gt;scrollamount=&quot;20&quot;&lt;/code&gt;&amp;nbsp;will make it faster. You can use whatever number you like though. Like this:&lt;/div&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;example&quot; style=&quot;background-color: #cefbc5; border-collapse: collapse; color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; width: 724px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;exampleHeader&quot; style=&quot;background-color: #47ae32; border: 1px solid rgb(71, 174, 50); color: white;&quot;&gt;&lt;th&gt;Source Code&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;exampleCode&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); font-size: 11px; height: 100px; vertical-align: top; width: 210px;&quot;&gt;&lt;textarea class=&quot;exampleCode&quot; cols=&quot;70&quot; name=&quot;bodyText&quot; rows=&quot;3&quot; style=&quot;background-color: white; border-color: rgb(71, 174, 50); height: 100px; margin: 5px; vertical-align: top; width: 200px;&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;td class=&quot;exampleDisplay&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(71, 174, 50); padding: 10px; vertical-align: top; width: 450px;&quot;&gt;&lt;marquee behavior=&quot;scroll&quot; direction=&quot;left&quot; scrollamount=&quot;1&quot;&gt;Very slow...&lt;/marquee&gt;&lt;marquee behavior=&quot;scroll&quot; direction=&quot;left&quot; scrollamount=&quot;10&quot;&gt;Faster...&lt;/marquee&gt;&lt;marquee behavior=&quot;scroll&quot; direction=&quot;left&quot; scrollamount=&quot;20&quot;&gt;Fast...&lt;/marquee&gt;&lt;marquee behavior=&quot;scroll&quot; direction=&quot;left&quot; scrollamount=&quot;50&quot;&gt;Lightning!&lt;/marquee&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style=&quot;color: #3b3b3b; font-family: Delius, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 21px; margin: 8px 0px; padding: 8px 0px; text-align: -webkit-auto;&quot;&gt;
Usability of Marquees&lt;/h2&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
You should be careful when using marquees in HTML. Many web users dislike websites that contain scrolling text and other elements, so try to use them tastefully :)&lt;/div&gt;
&lt;div style=&quot;color: #959595; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; margin-bottom: 8px; margin-top: 8px; padding: 0px 0px 8px; text-align: -webkit-auto;&quot;&gt;
Also note that the&amp;nbsp;&lt;code&gt;&amp;lt;marquee&amp;gt;&lt;/code&gt;&amp;nbsp;tag is not part of the official HTML specification. Having said that, it is recognized by most major browsers.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/3382453194844391996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2012/07/marquee-codes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/3382453194844391996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/3382453194844391996'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2012/07/marquee-codes.html' title='Marquee Codes'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-536689998505478967.post-5296543368723055780</id><published>2012-07-17T22:04:00.001-07:00</published><updated>2012-07-17T22:04:03.410-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Mobile OS"/><category scheme="http://www.blogger.com/atom/ns#" term="Top OS"/><title type='text'>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;
&lt;div class=&quot;section&quot; style=&quot;font-family: Lato, arial, sans-serif; font-size: 16px; line-height: 24px; text-align: -webkit-auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h2 class=&quot;title&quot; style=&quot;color: #111111; font-size: 2em; margin: 10px 0px;&quot;&gt;
1.&amp;nbsp;What is Android?&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;overview_android&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;1.1.&amp;nbsp;Android Operation System&lt;/h3&gt;
&lt;/div&gt;
Android is an operating system based on Linux with a Java programming interface.&lt;br /&gt;
The Android Software Development Kit (Android SDK) provides all necessary tools to develop Android applications. This includes a compiler, debugger and a device emulator, as well as its own virtual machine to run Android programs.&lt;br /&gt;
Android is currently primarily developed by Google.&lt;br /&gt;
Android allows background processing, provides a rich user interface library, supports 2-D and 3-D graphics using the OpenGL libraries, access to the file system and provides an embedded SQLite database.&lt;br /&gt;
Android applications consist of different components and can re-use components of other applications. This leads to the concept of a&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;task&lt;/em&gt;&amp;nbsp;in Android; an application can re-use other Android components to archive a task.&lt;br /&gt;
For example you can write an application which use the Android Gallery application to pick a photo.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;overview_play&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;1.2.&amp;nbsp;Google Play (Android Market)&lt;/h3&gt;
&lt;/div&gt;
Google offers the&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Google Play&lt;/em&gt;&amp;nbsp;service in which programmers can offer their Android application to Android users. Google phones include the&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Google Play&lt;/em&gt;&amp;nbsp;application which allows to install applications.&lt;br /&gt;
Google Play also offers an update service, e.g. if a programmer uploads a new version of his application to Google Play, this service will notify existing users that an update is available and allow to install it.&lt;br /&gt;
Google Play used to be called&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Android Market&lt;/em&gt;.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;overview_permissions&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;1.3.&amp;nbsp;Security and permissions&lt;/h3&gt;
&lt;/div&gt;
During deployment on an Android device, the Android system will create a unique user and group ID for every Android application. Each application file is private to this generated user, e.g. other applications cannot access these files.&lt;br /&gt;
In addition each Android application will be started in its own process.&lt;br /&gt;
Therefore by means of the underlying Linux operating system, every Android application is isolated from other running applications.&lt;br /&gt;
If data should be shared, the application must do this explicitly, e.g. via a&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Service&lt;/em&gt;&amp;nbsp;or a&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;ContentProvider&lt;/em&gt;.&lt;br /&gt;
Android also contains a permission system. Android predefines permissions for certain tasks but every application can define additional permissions.&lt;br /&gt;
An Android application declare its required permissions in its&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;AndroidManifest.xml&lt;/code&gt;&amp;nbsp;configuration file.For example an application may declare that it requires Internet&lt;br /&gt;
Permissions have different levels. Some permissions are automatically granted by the Android system, some are automatically rejected.&lt;br /&gt;
In most cases the requested permissions will be presented to the user before installation of the application. The user needs to decide if these permissions are given to the application.&lt;br /&gt;
If the user denies a permission required by the application, this application cannot be installed. The check of the permission is only performed during installation, permissions cannot be denied or granted after the installation.&lt;br /&gt;
Not all users pay attention to the required permissions during installation. But some users do and they write negative reviews on Google Play.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; style=&quot;font-family: Lato, arial, sans-serif; font-size: 16px; line-height: 24px; text-align: -webkit-auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h2 class=&quot;title&quot; style=&quot;color: #111111; font-size: 2em; margin: 10px 0px;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;components&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;2.&amp;nbsp;Android components&lt;/h2&gt;
&lt;/div&gt;
The following gives a short overview of the most important Android components.&lt;br /&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;components_activity&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;2.1.&amp;nbsp;Activity&lt;/h3&gt;
&lt;/div&gt;
An&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Activity&lt;/em&gt;&amp;nbsp;represents the presentation layer of an Android application. A simplified description is that an&lt;em class=&quot;wordasword&quot;&gt;Activity&lt;/em&gt;&amp;nbsp;represents a screen in your Android application. This is slightly incorrect as&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Activities&lt;/em&gt;&amp;nbsp;can be displayed as dialogs or can be transparent.&lt;br /&gt;
An Android application can have several&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Activities&lt;/em&gt;.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;components_views&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;2.2.&amp;nbsp;Views and ViewGroups&lt;/h3&gt;
&lt;/div&gt;
&lt;em class=&quot;wordasword&quot;&gt;Views&lt;/em&gt;&amp;nbsp;are user interface widgets, e.g. buttons or text fields. The base class for all&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Views&lt;/em&gt;&amp;nbsp;is the&lt;code class=&quot;code&quot;&gt;android.view.View&lt;/code&gt;&amp;nbsp;class.&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Views&lt;/em&gt;&amp;nbsp;have attributes which can be used to configure their appearance and behavior.&lt;br /&gt;
A&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;ViewGroup&lt;/em&gt;&amp;nbsp;is responsible for arranging other&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Views&lt;/em&gt;.&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;ViewGroups&lt;/em&gt;&amp;nbsp;is also called&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;layout managers&lt;/em&gt;. The base class for these layout managers is the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;android.view.ViewGroup&lt;/code&gt;&amp;nbsp;class which extends the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;View&lt;/code&gt;class.&lt;br /&gt;
&lt;code class=&quot;code&quot;&gt;ViewGroups&lt;/code&gt;&amp;nbsp;can be nestled to create complex layouts. You should not nestle&amp;nbsp;&lt;code class=&quot;code&quot;&gt;ViewGroups&lt;/code&gt;&amp;nbsp;too deeply as this has a negative impact on the performance.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;components_intents&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;2.3.&amp;nbsp;Intents&lt;/h3&gt;
&lt;/div&gt;
&lt;em class=&quot;wordasword&quot;&gt;Intents&lt;/em&gt;&amp;nbsp;are asynchronous messages which allow the application to request functionality from other components of the Android system, e.g. from&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Services&lt;/em&gt;&amp;nbsp;or&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Activities&lt;/em&gt;. An application can call a component directly (&lt;em class=&quot;wordasword&quot;&gt;explicit Intent&lt;/em&gt;) or ask the Android system to evaluate registered components based on the&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Intent&lt;/em&gt;data (&lt;em class=&quot;wordasword&quot;&gt;implicit Intents&amp;nbsp;&lt;/em&gt;). For example the application could implement sharing of data via an&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Intent&lt;/code&gt;&amp;nbsp;and all components which allow sharing of data would be available for the user to select. Applications register themselves to an&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Intent&lt;/em&gt;&amp;nbsp;via an&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;IntentFilter&lt;/em&gt;.&lt;br /&gt;
&lt;em class=&quot;wordasword&quot;&gt;Intents&lt;/em&gt;&amp;nbsp;allow to combine loosely coupled components to perform certain tasks.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;components_services&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;2.4.&amp;nbsp;Services&lt;/h3&gt;
&lt;/div&gt;
&lt;em class=&quot;wordasword&quot;&gt;Services&lt;/em&gt;&amp;nbsp;perform background tasks without providing a user interface. They can notify the user via the notification framework in Android.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;components_contentprovider&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;2.5.&amp;nbsp;ContentProvider&lt;/h3&gt;
&lt;/div&gt;
A&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;ContentProvider&lt;/em&gt;&amp;nbsp;provides a structured interface to application data. Via a&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;ContentProvider&lt;/em&gt;&amp;nbsp;your application can share data with other applications. Android contains an SQLite database which is frequently used in conjunction with a&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;ContentProvider&lt;/em&gt;. The SQLite database would store the data, which would be accessed via the&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;ContentProvider&lt;/em&gt;.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;components_broadcastreceiver&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;2.6.&amp;nbsp;BroadcastReceiver&lt;/h3&gt;
&lt;/div&gt;
&lt;em class=&quot;wordasword&quot;&gt;BroadcastReceiver&lt;/em&gt;&amp;nbsp;can be registered to receive system messages and&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Intents&lt;/em&gt;. A&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;BroadcastReceiver&lt;/em&gt;&amp;nbsp;will get notified by the Android system, if the specified situation happens. For example a&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;BroadcastReceiver&lt;/em&gt;could get called once the Android system completed the boot process or if a phone call is received.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;components_widgets&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;2.7.&amp;nbsp;(HomeScreen) Widgets&lt;/h3&gt;
&lt;/div&gt;
&lt;em class=&quot;wordasword&quot;&gt;Widgets&lt;/em&gt;&amp;nbsp;are interactive components which are primarily used on the Android homescreen. They typically display some kind of data and allow the user to perform actions via them. For example a&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Widget&lt;/em&gt;&amp;nbsp;could display a short summary of new emails and if the user selects an email, it could start the email application with the selected email.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;components_other&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;2.8.&amp;nbsp;Other&lt;/h3&gt;
&lt;/div&gt;
Android provide many more components but the list above describes the most important ones. Other Android components are&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Live Folders&amp;nbsp;&lt;/em&gt;and&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Live Wallpapers&amp;nbsp;&lt;/em&gt;.&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Live Folders&amp;nbsp;&lt;/em&gt;display data on the homescreen without launching the corresponding application while&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Live Wallpapers&amp;nbsp;&lt;/em&gt;allow to create annimated backgrounds.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; style=&quot;font-family: Lato, arial, sans-serif; font-size: 16px; line-height: 24px; text-align: -webkit-auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h2 class=&quot;title&quot; style=&quot;color: #111111; font-size: 2em; margin: 10px 0px;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;androiddevelopment&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;3.&amp;nbsp;Android Development Tools&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;overview_androidsdk&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;3.1.&amp;nbsp;Android SDK&lt;/h3&gt;
&lt;/div&gt;
The&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Android Software Development Kit&lt;/em&gt;&amp;nbsp;(SDK) contains the necessary tools to create, compile and package Android application. Most of these tools are command line based.&lt;br /&gt;
The Android SDK also provides an Android device emulator, so that Android applications can be tested without a real Android phone. You can create&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Android virtual devices&lt;/em&gt;&amp;nbsp;(AVD) via the Android SDK, which run in this emulator.&lt;br /&gt;
The Android SDK contains the&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Android debug bridge&amp;nbsp;&lt;/em&gt;(adb) tool which allows to connect to an virtual or real Android device.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;overview_adt&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;3.2.&amp;nbsp;Android Development Tools&lt;/h3&gt;
&lt;/div&gt;
Google provides the&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Android Development Tools&amp;nbsp;&lt;/em&gt;(ADT) to develop Android applications with Eclipse. ADT is a set of components (plug-ins) which extend the Eclipse IDE with Android development capabilities.&lt;br /&gt;
ADT contains all required functionalities to create, compile, debug and deploy Android applications from the Eclipse IDE. ADT also allows to create and start AVDs.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;androiddevelopment_dalvik&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;3.3.&amp;nbsp;Dalvik Virtual Machine&lt;/h3&gt;
&lt;/div&gt;
The Android system uses a special virtual machine, i.e. the&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Dalvik Virtual Machine&amp;nbsp;&lt;/em&gt;to run Java based applications. Dalvik uses an own bytecode format which is different from Java bytecode.&lt;br /&gt;
Therefore you cannot directly run Java class files on Android, they need to get converted in the Dalvik bytecode format.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;androiddevelopment_dev&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;3.4.&amp;nbsp;How to develop Android Applications&lt;/h3&gt;
&lt;/div&gt;
Android applications are primarily written in the Java programming language. The Java source files are converted to Java class files by the Java compiler.&lt;br /&gt;
The Android SDK contains a tool called&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;dx&lt;/em&gt;&amp;nbsp;which converts Java class files into a&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;.dex&lt;/code&gt;&amp;nbsp;(Dalvik Executable) file. All class files of one application are placed in one compressed&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;.dex&lt;/code&gt;&amp;nbsp;file. During this conversion process redundant information in the class files are optimized in the .dex file. For example if the same String is found in different class files, the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;.dex&lt;/code&gt;&amp;nbsp;file contains only once reference of this String.&lt;br /&gt;
These dex files are therefore much smaller in size than the corresponding class files.&lt;br /&gt;
&lt;br /&gt;
The&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;.dex&lt;/code&gt;&amp;nbsp;file and the resources of an Android project, e.g. the images and XML files, are packed into an&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;.apk&lt;/code&gt;(Android Package) file. The program&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;aapt&lt;/em&gt;&amp;nbsp;(Android Asset Packaging Tool) performs this packaging.&lt;br /&gt;
The resulting&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;.apk&lt;/code&gt;&amp;nbsp;file contains all necessary data to run the Android application and can be deployed to an Android device via the&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;adb&lt;/em&gt;&amp;nbsp;tool.&lt;br /&gt;
The Android Development Tools (ADT) performs these steps transparently to the user.&lt;br /&gt;
If you use the ADT tooling you press a button the whole Android application (&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;.apk&lt;/code&gt;&amp;nbsp;file) will be created and deployed.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;androiddevelopment_resourceeditor&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;3.5.&amp;nbsp;Resource editors&lt;/h3&gt;
&lt;/div&gt;
The ADT allows the developer to define certain artifacts, e.g. Strings and layout files, in two ways: via a rich editor, and directly via XML. This is done via multi-page editors in Eclipse. In these editors you can switch between both representations by clicking on the tab on the lower part of the screen.&lt;br /&gt;
For example if you open the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;res/layout/main.xml&lt;/code&gt;&amp;nbsp;file in the&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Package Explorer&lt;/em&gt;&amp;nbsp;View of Eclipse, you can switch between the two representations as depicted in the following screenshot.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;ADT Resource Editor&quot; src=&quot;http://www.vogella.com/articles/Android/images/xswitch10.png.pagespeed.ic.t4HOfDtl8D.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; style=&quot;font-family: Lato, arial, sans-serif; font-size: 16px; line-height: 24px; text-align: -webkit-auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h2 class=&quot;title&quot; style=&quot;color: #111111; font-size: 2em; margin: 10px 0px;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;architecture&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;4.&amp;nbsp;Android Application Architecture&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;overview_manifest&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;4.1.&amp;nbsp;AndroidManifest.xml&lt;/h3&gt;
&lt;/div&gt;
The components and settings of an Android application are described in the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;AndroidManifest.xml&lt;/code&gt;&amp;nbsp;file. For example all&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Activities&lt;/em&gt;&amp;nbsp;and&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Services&lt;/em&gt;&amp;nbsp;of the application must be declared in this file.&lt;br /&gt;
It must also contain the required permissions for the application. For example if the application requires network access it must be specified here.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;background-color: whitesmoke; border-bottom-left-radius: 9px; border-bottom-right-radius: 9px; border-top-left-radius: 9px; border-top-right-radius: 9px; border: 1px solid rgb(187, 187, 187); font-family: &#39;Droid Sans Mono&#39;, Monaco, &#39;Bitstream Vera Sans Mono&#39;, &#39;Lucida Console&#39;, Terminal, monospace; font-size: 13px; line-height: 16px; margin-top: 1em; overflow: auto; padding-left: 0.8em; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;hl-directive&quot; style=&quot;color: maroon;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&lt;/span&gt;
&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;manifest&lt;/span&gt; &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;xmlns:android&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;/span&gt;
      &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;package&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;de.vogella.android.temperature&quot;&lt;/span&gt;
      &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:versionCode&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;1&quot;&lt;/span&gt;
      &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:versionName&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;application&lt;/span&gt; &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:icon&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;@drawable/icon&quot;&lt;/span&gt; &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:label&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;@string/app_name&quot;&lt;/span&gt;&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;activity&lt;/span&gt; &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:name&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;.Convert&quot;&lt;/span&gt;
                  &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:label&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;@string/app_name&quot;&lt;/span&gt;&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;gt;&lt;/span&gt;
            &lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;intent-filter&amp;gt;&lt;/span&gt;
                &lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:name&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;android.intent.action.MAIN&quot;&lt;/span&gt;&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt; /&amp;gt;&lt;/span&gt;
                &lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;category&lt;/span&gt; &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:name&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;android.intent.category.LAUNCHER&quot;&lt;/span&gt;&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt; /&amp;gt;&lt;/span&gt;
            &lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;/intent-filter&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;/activity&amp;gt;&lt;/span&gt;

    &lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;/application&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;uses-sdk&lt;/span&gt; &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:minSdkVersion&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;9&quot;&lt;/span&gt;&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt; /&amp;gt;&lt;/span&gt;

&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;/manifest&amp;gt;&lt;/span&gt; &lt;/pre&gt;
&lt;br /&gt;
The&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;package&lt;/code&gt;&lt;/em&gt;&amp;nbsp;attribute defines the base package for the Java objects referred to in this file. If a Java object lies within a different package, it must be declared with the full qualified package name.&lt;br /&gt;
Google Play requires that every Android application uses its own unique package. Therefore it is a good habit to use your reverse domain name as package name. This will avoid collisions with other Android applications.&lt;br /&gt;
&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;android:versionName&lt;/code&gt;&lt;/em&gt;&amp;nbsp;and&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;android:versionCode&lt;/code&gt;&lt;/em&gt;&amp;nbsp;specify the version of your application.&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;versionName&lt;/code&gt;&lt;/em&gt;&amp;nbsp;is what the user sees and can be any String.&lt;br /&gt;
&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;versionCode&lt;/code&gt;&lt;/em&gt;&amp;nbsp;must be an integer. The Android Market determine based on the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;versionCode&lt;/code&gt;, if it should perform an update of the applications for the existing installations. You typically start with &quot;1&quot; and increase this value by one, if you roll-out a new version of your application.&lt;br /&gt;
The&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;&amp;lt;activity&amp;gt;&amp;nbsp;&lt;/code&gt;&lt;/em&gt;tag defines an&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Activity&lt;/em&gt;, in this example pointing to the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Convert&lt;/code&gt;&amp;nbsp;class in the&lt;code class=&quot;code&quot;&gt;de.vogella.android.temperature&lt;/code&gt;&amp;nbsp;package. An intent filter is registered for this class which defines that this&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Activity&lt;/em&gt;&amp;nbsp;is started once the application starts (action&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;android:name=&quot;android.intent.action.MAIN&quot;&lt;/code&gt;&lt;/em&gt;). The category definition&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;category android:name=&quot;android.intent.category.LAUNCHER&quot;&lt;/code&gt;&lt;/em&gt;&amp;nbsp;defines that this application is added to the application directory on the Android device.&lt;br /&gt;
The&amp;nbsp;&lt;code class=&quot;code&quot;&gt;@string/app_name&amp;nbsp;&lt;/code&gt;value refers to resource files which contain the actual value of the application name. The usage of resource file makes it easy to provide different resources, e.g. strings, colors, icons, for different devices and makes it easy to translate applications.&lt;br /&gt;
The&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;uses-sdk&lt;/code&gt;&lt;/em&gt;&amp;nbsp;part of the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;AndroidManifest.xml&lt;/code&gt;&amp;nbsp;file defines the minimal SDK version for which your application is valid. This will prevent your application being installed on unsupported devices.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;overview_resources&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;4.2.&amp;nbsp;R.java and Resources&lt;/h3&gt;
&lt;/div&gt;
The&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;gen&lt;/code&gt;&amp;nbsp;directory in an Android project contains generated values.&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;R.java&lt;/code&gt;&amp;nbsp;is a generated class which contains references to certain resources of the project.&lt;br /&gt;
These resources must be defined in the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;res&lt;/code&gt;&amp;nbsp;directory and can be XML files, icons or pictures. You can for example define values, menus, layouts or animations via XML files.&lt;br /&gt;
If you create a new resource, the corresponding reference is automatically created in&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;R.java&lt;/code&gt;&amp;nbsp;via the Eclipse ADT tools. These references are static integer values and define IDs for the resources.&lt;br /&gt;
The Android system provides methods to access the corresponding resource via these IDs.&lt;br /&gt;
For example to access a String with the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;R.string.yourString&lt;/code&gt;&amp;nbsp;ID, you would use the&lt;code class=&quot;code&quot;&gt;getString(R.string.yourString))&lt;/code&gt;&amp;nbsp;method.&lt;br /&gt;
&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;R.java&lt;/code&gt;&amp;nbsp;is automatically created by the Eclipse development environment, manual changes are not necessary and will be overridden by the tooling.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;overview_assets&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;4.3.&amp;nbsp;Assets&lt;/h3&gt;
&lt;/div&gt;
While the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;res&lt;/code&gt;&amp;nbsp;directory contains structured values which are known to the Android platform, the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;assets&lt;/code&gt;directory can be used to store any kind of data. You access this data via the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;AssetsManager&lt;/code&gt;&amp;nbsp;which you can access the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;getAssets()&lt;/code&gt;&amp;nbsp;method.&lt;br /&gt;
&lt;code class=&quot;code&quot;&gt;AssetsManager&lt;/code&gt;&amp;nbsp;allows to read an assets as&amp;nbsp;&lt;code class=&quot;code&quot;&gt;InputStream&lt;/code&gt;&amp;nbsp;with the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;open()&lt;/code&gt;&amp;nbsp;method.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;background-color: whitesmoke; border-bottom-left-radius: 9px; border-bottom-right-radius: 9px; border-top-left-radius: 9px; border-top-right-radius: 9px; border: 1px solid rgb(187, 187, 187); font-family: &#39;Droid Sans Mono&#39;, Monaco, &#39;Bitstream Vera Sans Mono&#39;, &#39;Lucida Console&#39;, Terminal, monospace; font-size: 13px; line-height: 16px; margin-top: 1em; overflow: auto; padding-left: 0.8em; word-wrap: break-word;&quot;&gt;&lt;em class=&quot;hl-comment&quot; style=&quot;color: #008800;&quot;&gt;// Get the AssetManager&lt;/em&gt;
AssetManager manager = getAssets();

&lt;em class=&quot;hl-comment&quot; style=&quot;color: #008800;&quot;&gt;// Read a Bitmap from Assets&lt;/em&gt;
&lt;span class=&quot;hl-keyword&quot; style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;try&lt;/span&gt; {
 InputStream open = manager.open(&lt;span class=&quot;hl-string&quot; style=&quot;color: blue;&quot;&gt;&quot;logo.png&quot;&lt;/span&gt;);
 Bitmap bitmap = BitmapFactory.decodeStream(open);
 &lt;em class=&quot;hl-comment&quot; style=&quot;color: #008800;&quot;&gt;// Assign the bitmap to an ImageView in this layout&lt;/em&gt;
 ImageView view = (ImageView) findViewById(R.id.imageView1);
 view.setImageBitmap(bitmap);
} &lt;span class=&quot;hl-keyword&quot; style=&quot;color: #7f0055; font-weight: bold;&quot;&gt;catch&lt;/span&gt; (IOException e) {
 e.printStackTrace();
} &lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;overview_layout&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;4.4.&amp;nbsp;Activities and Layouts&lt;/h3&gt;
&lt;/div&gt;
The user interface for&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Activities&lt;/em&gt;&amp;nbsp;is defined via layouts. The layout defines the included&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Views&lt;/code&gt;&amp;nbsp;(widgets) and their properties.&lt;br /&gt;
A layout can be defined via Java code or via XML. In most cases the layout is defined as an XML file.&lt;br /&gt;
XML based layouts are defined via a resource file in the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;/res/layout&lt;/code&gt;&amp;nbsp;folder. This file specifies the&lt;code class=&quot;code&quot;&gt;ViewGroups&lt;/code&gt;,&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Views&lt;/code&gt;, their relationship and their attributes for this specific layout.&lt;br /&gt;
If a&amp;nbsp;&lt;code class=&quot;code&quot;&gt;View&lt;/code&gt;&amp;nbsp;needs to be accessed via Java code, you have to give the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;View&lt;/code&gt;&amp;nbsp;a unique ID via the&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;android:id&lt;/code&gt;&lt;/em&gt;attribute. To assign a new ID to a&amp;nbsp;&lt;code class=&quot;code&quot;&gt;View&lt;/code&gt;&amp;nbsp;use&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;@+id/yourvalue&amp;nbsp;&lt;/code&gt;&lt;/em&gt;. The following shows an example in which a&lt;code class=&quot;code&quot;&gt;Button&lt;/code&gt;&amp;nbsp;gets the&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;button1&lt;/code&gt;&lt;/em&gt;&amp;nbsp;ID assigned.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;background-color: whitesmoke; border-bottom-left-radius: 9px; border-bottom-right-radius: 9px; border-top-left-radius: 9px; border-top-right-radius: 9px; border: 1px solid rgb(187, 187, 187); font-family: &#39;Droid Sans Mono&#39;, Monaco, &#39;Bitstream Vera Sans Mono&#39;, &#39;Lucida Console&#39;, Terminal, monospace; font-size: 13px; line-height: 16px; margin-top: 1em; overflow: auto; padding-left: 0.8em; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;Button&lt;/span&gt;
 &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:id&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;@+id/button1&quot;&lt;/span&gt;
 &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;
 &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;
 &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:text&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;Show Preferences&quot;&lt;/span&gt;&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt; &amp;gt;&lt;/span&gt;
&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;/Button&amp;gt;&lt;/span&gt; &lt;/pre&gt;
&lt;br /&gt;
By conversion this will create and assign a new&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;yourvalue&amp;nbsp;&lt;/code&gt;&lt;/em&gt;ID to the corresponding&amp;nbsp;&lt;code class=&quot;code&quot;&gt;View&lt;/code&gt;. In your Java code you can later access a&amp;nbsp;&lt;code class=&quot;code&quot;&gt;View&lt;/code&gt;&amp;nbsp;via the method&amp;nbsp;&lt;code class=&quot;code&quot;&gt;findViewById(R.id.yourvalue)&lt;/code&gt;.&lt;br /&gt;
Defining layouts via XML is usually the preferred way as this separates the programming logic from the layout definition. It also allows the definition of different layouts for different devices. You can also mix both approaches.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;overview_reference&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;4.5.&amp;nbsp;Reference to resources in XML files&lt;/h3&gt;
&lt;/div&gt;
In your XML files, for example your layout files, you can refer to other resources via the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;@&lt;/code&gt;&amp;nbsp;sign.&lt;br /&gt;
For example, if you want to refer to a color which is defined in a XML resource, you can refer to it via&lt;code class=&quot;code&quot;&gt;@color/your_id&lt;/code&gt;. Or if you defined a &quot;hello&quot; string in an XML resource, you could access it via&lt;code class=&quot;code&quot;&gt;@string/hello&lt;/code&gt;.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;overview_lifecycle&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;4.6.&amp;nbsp;Activities and Lifecycle&lt;/h3&gt;
&lt;/div&gt;
The Android system controls the lifecycle of your application. At any time the Android system may stop or destroy your application, e.g. because of an incoming call. The Android system defines a lifecycle for&lt;em class=&quot;wordasword&quot;&gt;Activities&lt;/em&gt;&amp;nbsp;via predefined methods. The most important methods are:&lt;br /&gt;
&lt;div class=&quot;itemizedlist&quot;&gt;
&lt;ul class=&quot;itemizedlist&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;listitem&quot;&gt;&lt;code class=&quot;code&quot;&gt;onSaveInstanceState()&lt;/code&gt;&amp;nbsp;- called after the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Activity&lt;/code&gt;&amp;nbsp;is stopped. Used to save data so that the&lt;code class=&quot;code&quot;&gt;Activity&lt;/code&gt;&amp;nbsp;can restore its states if re-started&lt;/li&gt;
&lt;li class=&quot;listitem&quot;&gt;&lt;code class=&quot;code&quot;&gt;onPause()&lt;/code&gt;&amp;nbsp;- always called if the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Activity&lt;/code&gt;&amp;nbsp;ends, can be used to release resource or save data&lt;/li&gt;
&lt;li class=&quot;listitem&quot;&gt;&lt;code class=&quot;code&quot;&gt;onResume()&lt;/code&gt;&amp;nbsp;- called if the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Activity&lt;/code&gt;&amp;nbsp;is re-started, can be used to initialize fields&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;overview_configurationchange&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;4.7.&amp;nbsp;Configuration Change&lt;/h3&gt;
&lt;/div&gt;
An&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Activity&lt;/code&gt;&amp;nbsp;will also be restarted, if a so called &quot;configuration change&quot; happens. A configuration change happens if an event is triggered which may be relevant for the application. For example if the user changes the orientation of the device (vertically or horizontally). Android assumes that an&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Activity&lt;/code&gt;&amp;nbsp;might want to use different resources for these orientations and restarts the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Activity&lt;/code&gt;.&lt;br /&gt;
In the emulator you can simulate the change of the orientation via&amp;nbsp;&lt;span class=&quot;shortcut&quot;&gt;&lt;strong&gt;&lt;span class=&quot;keysym&quot;&gt;Ctrl&lt;/span&gt;+&lt;span class=&quot;keysym&quot;&gt;F11&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;.&lt;br /&gt;
You can avoid a restart of your application for certain configuration changes via the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;configChanges&lt;/code&gt;attribute on your&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Activity&lt;/code&gt;&amp;nbsp;definition in your&amp;nbsp;&lt;code class=&quot;code&quot;&gt;AndroidManifest.xml&lt;/code&gt;. The following&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Activity&lt;/code&gt;&amp;nbsp;will not be restarted in case of orientation changes or position of the physical keyboard (hidden / visible).&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;background-color: whitesmoke; border-bottom-left-radius: 9px; border-bottom-right-radius: 9px; border-top-left-radius: 9px; border-top-right-radius: 9px; border: 1px solid rgb(187, 187, 187); font-family: &#39;Droid Sans Mono&#39;, Monaco, &#39;Bitstream Vera Sans Mono&#39;, &#39;Lucida Console&#39;, Terminal, monospace; font-size: 13px; line-height: 16px; margin-top: 1em; overflow: auto; padding-left: 0.8em; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;activity&lt;/span&gt; &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:name&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;.ProgressTestActivity&quot;&lt;/span&gt;
     &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:label&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;@string/app_name&quot;&lt;/span&gt;
     &lt;span class=&quot;hl-attribute&quot; style=&quot;color: #7f0055;&quot;&gt;android:configChanges&lt;/span&gt;=&lt;span class=&quot;hl-value&quot; style=&quot;color: blue;&quot;&gt;&quot;orientation|keyboardHidden|keyboard&quot;&lt;/span&gt;&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;hl-tag&quot; style=&quot;color: #008800;&quot;&gt;&amp;lt;/activity&amp;gt;&lt;/span&gt; &lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;overview_context&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;4.8.&amp;nbsp;Context&lt;/h3&gt;
&lt;/div&gt;
The class&amp;nbsp;&lt;code class=&quot;code&quot;&gt;android.content.Context&lt;/code&gt;&amp;nbsp;provides the connection to the Android system and the resources of the project. It is the interface to global information about the application environment.&lt;br /&gt;
The&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Context&lt;/em&gt;&amp;nbsp;also provides access to Android&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Services&lt;/em&gt;, e.g. the Location Service.&lt;br /&gt;
&lt;em class=&quot;wordasword&quot;&gt;Activities&lt;/em&gt;&amp;nbsp;and&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Services&lt;/em&gt;&amp;nbsp;extend the&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Context&lt;/code&gt;&amp;nbsp;class.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; style=&quot;font-family: Lato, arial, sans-serif; font-size: 16px; line-height: 24px; text-align: -webkit-auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h2 class=&quot;title&quot; style=&quot;color: #111111; font-size: 2em; margin: 10px 0px;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;installation&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;5.&amp;nbsp;Installation&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;installation_eclipse&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;5.1.&amp;nbsp;Eclipse&lt;/h3&gt;
&lt;/div&gt;
The following assumes that you have already Java and Eclipse installed and know how to use Eclipse. For an introduction into Eclipse please see the following tutorial:&amp;nbsp;&lt;a class=&quot;ulink&quot; href=&quot;http://www.vogella.com/articles/Eclipse/article.html&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif; font-weight: 700;&quot; target=&quot;_top&quot;&gt;Eclipse IDE Tutorial&lt;/a&gt;.&lt;br /&gt;
The tutorial above also describes how to install new components into Eclipse. This is required to install the Android Development Tools. You find the necessary steps described in the following section of the tutorial:&lt;a class=&quot;ulink&quot; href=&quot;http://www.vogella.com/articles/Eclipse/article.html#updatemanager&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif; font-weight: 700;&quot; target=&quot;_top&quot;&gt;Eclipse Update Manager&lt;/a&gt;.&lt;br /&gt;
The author of this text has also published a Kindle book on the usage of the Eclipse IDE, which can be found here:&amp;nbsp;&lt;a class=&quot;ulink&quot; href=&quot;http://www.amazon.com/Eclipse-IDE-3-7-ebook/dp/B006O1J39S&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif; font-weight: 700;&quot; target=&quot;_top&quot;&gt;Eclipse IDE Book for Kindle&lt;/a&gt;.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;installation_linux64&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;5.2.&amp;nbsp;Pre-requisites for using a 64bit Linux&lt;/h3&gt;
&lt;/div&gt;
The Android SDK is 32bit, therefore on a 64bit Linux system you need to have the package&amp;nbsp;&lt;code class=&quot;code&quot;&gt;ia32-libs&lt;/code&gt;installed. For Ubuntu you can do this via the following command.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;background-color: whitesmoke; border-bottom-left-radius: 9px; border-bottom-right-radius: 9px; border-top-left-radius: 9px; border-top-right-radius: 9px; border: 1px solid rgb(187, 187, 187); font-family: &#39;Droid Sans Mono&#39;, Monaco, &#39;Bitstream Vera Sans Mono&#39;, &#39;Lucida Console&#39;, Terminal, monospace; font-size: 13px; line-height: 16px; margin-top: 1em; overflow: auto; padding-left: 0.8em; word-wrap: break-word;&quot;&gt;apt-get install ia32-libs &lt;/pre&gt;
Please check your distribution documentation, if you are using a different flavor of Linux.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;installation_eclipseadt&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;5.3.&amp;nbsp;Install ADT Plug-ins and Android SDK&lt;/h3&gt;
&lt;/div&gt;
Use the Eclipse update manager to install all available components for the Android Development Tools (ADT) from the URL&amp;nbsp;&lt;a class=&quot;ulink&quot; href=&quot;https://dl-ssl.google.com/android/eclipse/&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif; font-weight: 700;&quot; target=&quot;_top&quot;&gt;https://dl-ssl.google.com/android/eclipse/&lt;/a&gt;.&lt;br /&gt;
After the new Android development components are installed, you will be prompted to install the Android SDK. You can use the following wizard or go to the next section to learn how to do it manually.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;Wizard to install Android SDK - Part 1&quot; src=&quot;http://www.vogella.com/articles/Android/images/xandroidinstall10.png.pagespeed.ic.8VmRDvn4Av.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;Wizard to install Android SDK - Part 2&quot; src=&quot;http://www.vogella.com/articles/Android/images/xandroidinstall20.png.pagespeed.ic.WeLjdMCDs4.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;Wizard to install Android SDK - Part 3&quot; src=&quot;http://www.vogella.com/articles/Android/images/xandroidinstall30.png.pagespeed.ic.iybvEGvmCR.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;installation_androidsdk&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;5.4.&amp;nbsp;Manual installation of the Android SDK&lt;/h3&gt;
&lt;/div&gt;
After the installation of the ADT the Eclipse tooling allows to download the Android SDK automatically. Alternatively you can also manually download the Android SDK from the&amp;nbsp;&lt;a class=&quot;ulink&quot; href=&quot;http://developer.android.com/sdk/index.html&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif; font-weight: 700;&quot; target=&quot;_top&quot;&gt;Android SDK download page&lt;/a&gt;.&lt;br /&gt;
The download contains a zip file, which you can extract to any place in your file system, e.g. on my Linux system I placed it under &quot;/home/vogella/android-sdks&quot;. Avoid using spaces in the path name, otherwise you may experience problems with the usage of the Android SDK.&lt;br /&gt;
You also have to define the location of the Android SDK in the Eclipse Preferences. In Eclipse open the Preferences dialog via the menu&amp;nbsp;&lt;span class=&quot;guimenu&quot;&gt;Windows&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Preferences&lt;/span&gt;. Select Android and enter the installation path of the Android SDK.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;Setting up the Android SDK in the Eclipse Preferences&quot; src=&quot;http://www.vogella.com/articles/Android/images/xinstall10.png.pagespeed.ic.lOrRWNNw0f.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;installation_version&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;5.5.&amp;nbsp;Install a specific Android version&lt;/h3&gt;
&lt;/div&gt;
The Android SDK Manager allows you to install specific versions of Android. Select&amp;nbsp;&lt;span class=&quot;guimenu&quot;&gt;Window&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Android SDK Manager&lt;/span&gt;&amp;nbsp;from the Eclipse menu.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;Starting ADV Manager&quot; src=&quot;http://www.vogella.com/articles/Android/images/xinstall20.png.pagespeed.ic.MJdiKZt_vm.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
The dialog allows you to install new packages and also allows you to delete them.&lt;br /&gt;
Select&amp;nbsp;&lt;span class=&quot;guilabel&quot; style=&quot;font-style: italic;&quot;&gt;Available packages&lt;/span&gt;&amp;nbsp;and open the&amp;nbsp;&lt;span class=&quot;guilabel&quot; style=&quot;font-style: italic;&quot;&gt;Third Party Add-ons&amp;nbsp;&lt;/span&gt;. Select the Google API 15 (Android 4.0.3) version of the SDK and press the&amp;nbsp;&lt;span class=&quot;guibutton&quot; style=&quot;font-style: italic;&quot;&gt;Install&lt;/span&gt;&amp;nbsp;button.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;Install Android API&quot; src=&quot;http://www.vogella.com/articles/Android/images/xinstall30.png.pagespeed.ic.a1mp5xzRuD.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
Press the&amp;nbsp;&lt;span class=&quot;guibutton&quot; style=&quot;font-style: italic;&quot;&gt;Install&lt;/span&gt;&amp;nbsp;button and confirm the license for all packages. After the installation completes, restart Eclipse.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;installation_sourcecode&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;5.6.&amp;nbsp;Android Source Code&lt;/h3&gt;
&lt;/div&gt;
During Android development it is very useful to have the Android source code available.&lt;br /&gt;
As of Android 4.0 the Android development tools provides also the source code. You can download it via the Android SDK Manager by selecting the&amp;nbsp;&lt;span class=&quot;guilabel&quot; style=&quot;font-style: italic;&quot;&gt;Sources for Android SDK&lt;/span&gt;.&lt;br /&gt;
The sources are downloaded to the source directory located in&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;path_to_android_sdk/sources/android-xx&lt;/code&gt;. xx is the API level of Android, e.g. 15 for the Android 4.0.4 version.&lt;br /&gt;
To connect the sources with the android.jar file in your Android project, right click on your android.jar in the Eclipse Package Explorer and select&amp;nbsp;&lt;span class=&quot;guimenu&quot;&gt;Properties&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Java Source Attachment&lt;/span&gt;. Type in the source directory name and press the&amp;nbsp;&lt;span class=&quot;guibutton&quot; style=&quot;font-style: italic;&quot;&gt;OK&lt;/span&gt;&amp;nbsp;button.&lt;br /&gt;
Afterwards you can browse through the source code.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; style=&quot;font-family: Lato, arial, sans-serif; font-size: 16px; line-height: 24px; text-align: -webkit-auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h2 class=&quot;title&quot; style=&quot;color: #111111; font-size: 2em; margin: 10px 0px;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;emulator&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;6.&amp;nbsp;Android virtual device - Emulator&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;emulator_create&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;6.1.&amp;nbsp;What is the Android Emulator?&lt;/h3&gt;
&lt;/div&gt;
The Android Development Tools (ADT) include an emulator to run an Android system. The emulator behaves like a real Android device (in most cases) and allows you to test your application without having a real device.&lt;br /&gt;
You can configure the version of the Android system you would like to run, the size of the SD card, the screen resolution and other relevant settings. You can define several of them with different configurations.&lt;br /&gt;
These devices are called&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;Android Virtual Device&amp;nbsp;&lt;/em&gt;&quot; and you can start several in parallel.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;emulator_google&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;6.2.&amp;nbsp;Google vs. Android AVD&lt;/h3&gt;
&lt;/div&gt;
During the creation of an AVD you decide if you want an Android device or a Google device.&lt;br /&gt;
An AVD created for Android will contain the programs from the Android Open Source Project. An AVD created for the Google API&#39;s will also contain several Google applications, most notable the Google Maps application.&lt;br /&gt;
If you want to use functionality which is only provided via the Google API&#39;s, e.g. Google Maps you must run this application on an AVD with Google API&#39;s.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;emulator_using&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;6.3.&amp;nbsp;Emulator Shortcuts&lt;/h3&gt;
&lt;/div&gt;
The following shortcuts are useful for working with the emulator.&lt;br /&gt;
&lt;span class=&quot;keycap&quot;&gt;&lt;strong&gt;Alt&lt;/strong&gt;&lt;/span&gt;+&lt;span class=&quot;keycap&quot;&gt;&lt;strong&gt;Enter&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;Maximizes the emulator. Nice for demos.&lt;br /&gt;
&lt;span class=&quot;keycap&quot;&gt;&lt;strong&gt;Ctrl&lt;/strong&gt;&lt;/span&gt;+&lt;span class=&quot;keycap&quot;&gt;&lt;strong&gt;F11&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;changes the orientation of the emulator.&lt;br /&gt;
&lt;span class=&quot;keycap&quot;&gt;&lt;strong&gt;F8&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;Turns network on / off.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;emulator_performance&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;6.4.&amp;nbsp;Performance&lt;/h3&gt;
&lt;/div&gt;
The graphics of the emulator can use the native GPU of the computer. This makes the rendering in the emulator very fast. To enable this, add the&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;GPU Emulation&amp;nbsp;&lt;/code&gt;&lt;/em&gt;property to the device configuration and set it to&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;true&lt;/code&gt;&lt;/em&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;Enable GPU rendering&quot; src=&quot;http://www.vogella.com/articles/Android/images/xemulator_gpu10.png.pagespeed.ic.uzb-Mo0YFg.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
You can also set the&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;Enabled&lt;/code&gt;&lt;/em&gt;&amp;nbsp;flag for Snapshots. This will save the state of the emulator and will let it start much faster. Unfortunately currently native GPU rendering and Snapshots do not work together.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;emulator_hardwarebutton&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;6.5.&amp;nbsp;Hardware button&lt;/h3&gt;
&lt;/div&gt;
Android 4.0 introduced that devices do not have to have hardware button anymore. If you want to create such an AVD, add the&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;Hardware Back/Home keys&amp;nbsp;&lt;/code&gt;&lt;/em&gt;property to the device configuration and set it to&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;false&lt;/code&gt;&lt;/em&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;How to create an Android Device with software button&quot; src=&quot;http://www.vogella.com/articles/Android/images/xhardwarebutton10.png.pagespeed.ic.zRkPbrKCHb.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; style=&quot;font-family: Lato, arial, sans-serif; font-size: 16px; line-height: 24px; text-align: -webkit-auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h2 class=&quot;title&quot; style=&quot;color: #111111; font-size: 2em; margin: 10px 0px;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;tutorial_emulator&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;7.&amp;nbsp;Tutorial: Create and run Android Virtual Device&lt;/h2&gt;
&lt;/div&gt;
To define an Android Virtual Device (ADV) open the&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;AVD Manager&lt;/em&gt;&amp;nbsp;dialog via&amp;nbsp;&lt;span class=&quot;guimenu&quot;&gt;Windows&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;AVD Manager&lt;/span&gt;and press&amp;nbsp;&lt;span class=&quot;guibutton&quot; style=&quot;font-style: italic;&quot;&gt;New&lt;/span&gt;&amp;nbsp;button.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;Create a new AVD&quot; src=&quot;http://www.vogella.com/articles/Android/images/xinstall50.png.pagespeed.ic.mj7zrqgGSa.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
Enter the values similar to the following screenshot.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;Settings for a new AVD&quot; src=&quot;http://www.vogella.com/articles/Android/images/xinstall60.png.pagespeed.ic.x4ETIv1qw1.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
Select the&amp;nbsp;&lt;span class=&quot;guilabel&quot; style=&quot;font-style: italic;&quot;&gt;Enabled for Snapshots&lt;/span&gt;&amp;nbsp;box. This will make the second start of the virtual device much faster.&lt;br /&gt;
Press the&amp;nbsp;&lt;span class=&quot;guibutton&quot; style=&quot;font-style: italic;&quot;&gt;Create AVD&lt;/span&gt;&amp;nbsp;button. This will create the AVD configuration and display it under the&amp;nbsp;&lt;span class=&quot;guilabel&quot; style=&quot;font-style: italic;&quot;&gt;Virtual devices&lt;/span&gt;.&lt;br /&gt;
To test if your setup is correct, select your device and press the&amp;nbsp;&lt;span class=&quot;guibutton&quot; style=&quot;font-style: italic;&quot;&gt;Start&lt;/span&gt;&amp;nbsp;button&lt;br /&gt;
After some time your AVD starts. Do not interrupt this startup process, as this might corrupt the AVD.&lt;br /&gt;
After the AVD started, you can use the AVD via the mouse and via the virtual keyboard of the emulator.&lt;/div&gt;
&lt;div class=&quot;section&quot; style=&quot;font-family: Lato, arial, sans-serif; font-size: 16px; line-height: 24px; text-align: -webkit-auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h2 class=&quot;title&quot; style=&quot;color: #111111; font-size: 2em; margin: 10px 0px;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;problems&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;8.&amp;nbsp;Error handling and typical problems&lt;/h2&gt;
&lt;/div&gt;
Things are not always working as they should. This section gives an overview over typical problems and how to solve them.&lt;br /&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;problems_clean&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;8.1.&amp;nbsp;Clean Project&lt;/h3&gt;
&lt;/div&gt;
Several users report that they get the following errors:&lt;br /&gt;
&lt;div class=&quot;orderedlist&quot;&gt;
&lt;ol class=&quot;orderedlist&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;listitem&quot;&gt;Project ... is missing required source folder: &#39;gen&#39;&lt;/li&gt;
&lt;li class=&quot;listitem&quot;&gt;The project could not be built until build path errors are resolved.&lt;/li&gt;
&lt;li class=&quot;listitem&quot;&gt;Unable to open class file R.java.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br /&gt;
To solve any of these errors, go to the project menu and select&amp;nbsp;&lt;span class=&quot;guimenu&quot;&gt;Project&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Clean&lt;/span&gt;.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;problems_adb&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;8.2.&amp;nbsp;Problems with Android Debug Bridge (adb)&lt;/h3&gt;
&lt;/div&gt;
The communication with the emulator or your Android device might have problems. This communication is handled by the Android Debug Bridge (adb).&lt;br /&gt;
Eclipse allows to reset the adb in case this causes problems. Select therefore the DDMS perspective via&lt;span class=&quot;guimenu&quot;&gt;Window&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Open Perspective&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Other&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;DDMS&lt;/span&gt;&lt;br /&gt;
To restart the adb, select the &quot;Reset adb&quot; in the Device&amp;nbsp;&lt;code class=&quot;code&quot;&gt;View&lt;/code&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;&quot; src=&quot;http://www.vogella.com/articles/Android/images/xadbreset.png.pagespeed.ic.nII1-qWW1d.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;problems_logcat&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;8.3.&amp;nbsp;LogCat&lt;/h3&gt;
&lt;/div&gt;
The&amp;nbsp;&lt;span class=&quot;guilabel&quot; style=&quot;font-style: italic;&quot;&gt;LogCat&lt;/span&gt;&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;view&lt;/em&gt;&amp;nbsp;shows you the log messages of your Android device and helps you to analyze problems. For example Java exceptions in your program would be shown here. To open this view, select&amp;nbsp;&lt;span class=&quot;guimenu&quot;&gt;Window&lt;/span&gt;&amp;nbsp;→&lt;span class=&quot;guisubmenu&quot;&gt;Show View&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Other&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Android&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;LogCat&lt;/span&gt;.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;problems_java7&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;8.4.&amp;nbsp;Java7&lt;/h3&gt;
&lt;/div&gt;
If Android complains that you cannot use Java7 select your right-click on your project and select the&amp;nbsp;&lt;span class=&quot;guilabel&quot; style=&quot;font-style: italic;&quot;&gt;Java Compiler&lt;/span&gt;&amp;nbsp;entry. Ensure that Java 1.5 or Java 1.6 is used. You may have to select the&amp;nbsp;&lt;span class=&quot;guilabel&quot; style=&quot;font-style: italic;&quot;&gt;Enable project specific settings&lt;/span&gt;&amp;nbsp;checkbox.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;Java compiler settings&quot; src=&quot;http://www.vogella.com/articles/Android/images/xjavacompiler6.png.pagespeed.ic.lE9emM-zrQ.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;problems_r&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;8.5.&amp;nbsp;Eclipse reports file from R.java as missing&lt;/h3&gt;
&lt;/div&gt;
Sometimes Eclipse complains that a file, e.g.&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;R.layout.main&lt;/code&gt;&amp;nbsp;cannot be found. Check in your source code that you did not import&amp;nbsp;&lt;code class=&quot;code&quot;&gt;android.R&lt;/code&gt;. An&amp;nbsp;&lt;code class=&quot;code&quot;&gt;android.R&lt;/code&gt;&amp;nbsp;import will prevent Eclipse from finding your&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;R&lt;/code&gt;&amp;nbsp;file.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;problems_editor&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;8.6.&amp;nbsp;Android editor not opened&lt;/h3&gt;
&lt;/div&gt;
Android provides nice editors to edit Android resource files, unfortunately these editor are not always automatically used due to bugs in the ADT. If that happens, you can open this editor manually. Right-click on your menu file and select&amp;nbsp;&lt;span class=&quot;guimenu&quot;&gt;Open with&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Android Menu Editor&lt;/span&gt;.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;problems_emulator&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;8.7.&amp;nbsp;Emulator does not start&lt;/h3&gt;
&lt;/div&gt;
If your emulator does not start, make sure that the android-sdk version is in a path without any spaces in the path name.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;problems_timeout&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;8.8.&amp;nbsp;Timeout during deployment&lt;/h3&gt;
&lt;/div&gt;
If you face timeout issues during deployment you can increase the default timeout in the Eclipse preferences. Select&amp;nbsp;&lt;span class=&quot;guimenu&quot;&gt;Window&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Preferences&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Android&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;DDMS&lt;/span&gt;&amp;nbsp;and increase the&amp;nbsp;&lt;span class=&quot;guilabel&quot; style=&quot;font-style: italic;&quot;&gt;ADB connection timeout (in ms)&lt;/span&gt;value.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;problems_insufficientmemory&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;8.9.&amp;nbsp;Installation failed due to insufficient storage&lt;/h3&gt;
&lt;/div&gt;
Sometimes the emulator will refuse to install an application with the error message: INSTALL_FAILED_INSUFFICIENT_STORAGE.&lt;br /&gt;
An Android virtual device provides by default only 64M for the storaging Android applications. You can clean your installed application by re-starting the emulator and selecting the&amp;nbsp;&lt;span class=&quot;guilabel&quot; style=&quot;font-style: italic;&quot;&gt;Wipe user data&amp;nbsp;&lt;/span&gt;&quot; flag.&lt;br /&gt;
Alternatively you can set the data partition size. If you press edit on the AVD, you can set the&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code&gt;Ideal size of data partition&lt;/code&gt;&lt;/em&gt;&amp;nbsp;property via the&amp;nbsp;&lt;span class=&quot;guibutton&quot; style=&quot;font-style: italic;&quot;&gt;New&lt;/span&gt;&amp;nbsp;button.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;mediaobject&quot;&gt;
&lt;img alt=&quot;Setting the Ideal size of data partition for the ADV&quot; src=&quot;http://www.vogella.com/articles/Android/images/xdatapartition10.png.pagespeed.ic.D42rf82POB.png&quot; style=&quot;border-style: none; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;problems_debug&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;8.10.&amp;nbsp;Debug Certificate expired&lt;/h3&gt;
&lt;/div&gt;
If you get the error message&amp;nbsp;&lt;span class=&quot;guilabel&quot; style=&quot;font-style: italic;&quot;&gt;Debug Certificate expired&lt;/span&gt;&amp;nbsp;switch to the folder which contains the Android AVD, e.g.&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;.android&lt;/code&gt;&amp;nbsp;under Linux and delete the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-style: italic;&quot;&gt;debug.keystore&lt;/code&gt;&amp;nbsp;file. This file is only valid for a year and if not present, Eclipse will regenerate the password.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;problems_override&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;8.11.&amp;nbsp;Error message for @Override&lt;/h3&gt;
&lt;/div&gt;
The&amp;nbsp;&lt;code class=&quot;code&quot;&gt;@Override&lt;/code&gt;&amp;nbsp;annotation was introduced in Java 1.6. If you receive an error message for&amp;nbsp;&lt;code class=&quot;code&quot;&gt;@Override&lt;/code&gt;, change the Java compiler level to Java 1.6. To do this, right-click on the project, select&amp;nbsp;&lt;span class=&quot;guimenu&quot;&gt;Properties&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Java Compiler&amp;nbsp;&lt;/span&gt;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Compiler compliance level&amp;nbsp;&lt;/span&gt;and select&amp;nbsp;&lt;span class=&quot;guilabel&quot; style=&quot;font-style: italic;&quot;&gt;1.6&lt;/span&gt;&amp;nbsp;in the drop-down box.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;problems_imports&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;8.12.&amp;nbsp;Missing Imports&lt;/h3&gt;
&lt;/div&gt;
Java requires that classes which are not part of the standard Java Language are either fully qualified or declared via imports.&lt;br /&gt;
If you see an error message with the&amp;nbsp;&lt;span class=&quot;guilabel&quot; style=&quot;font-style: italic;&quot;&gt;XX cannot be resolved to a variable&amp;nbsp;&lt;/span&gt;text, right-click in your&amp;nbsp;&lt;code class=&quot;code&quot;&gt;Editor&lt;/code&gt;&amp;nbsp;and select&amp;nbsp;&lt;span class=&quot;guimenu&quot;&gt;Source&lt;/span&gt;&amp;nbsp;→&amp;nbsp;&lt;span class=&quot;guisubmenu&quot;&gt;Organize Imports&amp;nbsp;&lt;/span&gt;to important required packages.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; style=&quot;font-family: Lato, arial, sans-serif; font-size: 16px; line-height: 24px; text-align: -webkit-auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h2 class=&quot;title&quot; style=&quot;color: #111111; font-size: 2em; margin: 10px 0px;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;android_exampleconventions&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;9.&amp;nbsp;Conventions for the tutorials&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;android_exampleconventions_api&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;9.1.&amp;nbsp;API version, package and application name&lt;/h3&gt;
&lt;/div&gt;
The tutorials of this document have been developed and tested with Android 4.0.4, API Level 15. Please use this version for all tutorials in this book. Higher versions of the API level should also work. A lower version of the Android API might also work, but if you face issues, try the recommended version.&lt;br /&gt;
The base package for the projects is always the same as the project name, e.g. if you are asked to create a project called&amp;nbsp;&lt;em class=&quot;wordasword&quot;&gt;de.vogella.android.example.test&lt;/em&gt;, then the corresponding package name is&lt;em class=&quot;wordasword&quot;&gt;de.vogella.android.example.test&lt;/em&gt;.&lt;br /&gt;
The application name, which must be entered on the Android project generation wizard, will not be predefined. Choose a name you like.&lt;/div&gt;
&lt;div class=&quot;section&quot;&gt;
&lt;div class=&quot;titlepage&quot;&gt;
&lt;h3 class=&quot;title&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;android_exampleconventions_warnings&quot; style=&quot;color: #101010; font-family: Lato, arial, helvetica, sans-serif;&quot;&gt;&lt;/a&gt;9.2.&amp;nbsp;Warning messages for Strings&lt;/h3&gt;
&lt;/div&gt;
The Android development tools show warnings, if you use hard-coded strings, for example in layout files. For real applications you should use String resource files. To simplify the creation of the examples, we use Strings directly. Please ignore the corresponding warnings.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webdeveloperrs.blogspot.com/feeds/5296543368723055780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webdeveloperrs.blogspot.com/2012/07/android_17.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/5296543368723055780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/536689998505478967/posts/default/5296543368723055780'/><link rel='alternate' type='text/html' href='http://webdeveloperrs.blogspot.com/2012/07/android_17.html' title='Android ?'/><author><name>Hiren</name><uri>http://www.blogger.com/profile/05044319036082501984</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/-yP9lizr0Xzw/T1r-wB-a3wI/AAAAAAAAAHQ/EBIGO5NNs9A/s220/06122011%2528037%2529%2Bcopy.jpg'/></author><thr:total>0</thr:total></entry></feed>