<?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-9161413729669890337</id><updated>2024-11-08T07:40:50.033-08:00</updated><category term="javascript"/><category term="feature of java"/><category term="operator"/><category term="Angular"/><category term="html5"/><category term="phonegap"/><category term="android"/><category term="control statement"/><category term="cordova"/><category term="java"/><category term="type ofclass"/><category term="Mobile"/><category term="Mvc"/><category term="ReactJS"/><category term="css3"/><category term="jboss"/><category term="jdbc"/><category term="php errors"/><category term="swing"/><title type='text'>java course | learn java | java tutorial | java j2ee course java installation</title><subtitle type='html'>This java tutorial is a java course help you to learn java.It provide java programming, online java training, java tutorials,technical reviews of latest technology like windows 8 review and apple iphone 5 review and java for beginners.this blog contain java installation core java advance java, j2ee programs with code and examples with explanation.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>45</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-3923957698150939867</id><published>2016-06-27T22:30:00.000-07:00</published><updated>2016-06-28T01:28:15.837-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="jboss"/><title type='text'> HTTPS Configuration In Wildfly 9.0.0 Red Hat server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;style&gt;

.title{
  margin-left: 210px;
  color: #38302D;
}

.terminal{
  width: 100%;
  height: auto;
  background: #181818;
  margin-top: 50px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  font-family: monaco, monospace;
  
  cursor: default;
}

.navbar{
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, #fff, #808080);
  border-radius: 3px 3px 0px 0px;
}

.btn-red{
  width: 12px;
  height: 12px;
  border-radius: 100px;
  background: linear-gradient(to bottom, #F68F8E, #E70800);
  margin-left: 4px;
  margin-top: -15px;
  box-shadow: inset 0px 2px 2px -1px rgba(0,0,0,3);
}

.btn-yellow{
  width: 12px;
  height: 12px;
  border-radius: 100px;
  background: linear-gradient(to bottom, #F4D7B0, #FBCA00);
  margin-left: 23px;
  margin-top: -12px;
  box-shadow: inset 0px 2px 2px -1px rgba(0,0,0,3);
}

.btn-green{
  width: 12px;
  height: 12px;
  border-radius: 100px;
  background: linear-gradient(to bottom, #BBC8B3, #49C800);
  margin-left: 42px;
  margin-top: -12px;
  box-shadow: inset 0px 2px 2px -1px rgba(0,0,0,3);
}

.text{
  margin-left: 3px;
  margin-top: 8px;
  color: #F9E5DD;
}


@-webkit-keyframes display{
  50%{opacity: 0;}
}

.output{
  margin-left: 4px;
  margin-top: 8px;
  color: #F9E5DD;
}

.input{
  color: #F9E5DD;
  margin-top: -35px;
  margin-left: 18px;
  outline: none;
}

&lt;/style&gt;


&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Step 1:&lt;/b&gt; Add
below tag in your web.xml&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;security-constraint&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;user-data-constraint&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;transport-guarantee&amp;gt;&lt;/span&gt;CONFIDENTIAL&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/transport-guarantee&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/user-data-constraint&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/security-constraint&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;b&gt;Step 2:&lt;/b&gt; C&lt;/span&gt;&lt;span style=&quot;text-indent: -18pt;&quot;&gt;reate a keystore using java keytool&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72.0pt; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;1.&lt;span style=&quot;font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;open your Command Prompt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 72.0pt; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;2.&lt;span style=&quot;font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;run below command&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;terminal&quot;&gt;
&lt;div class=&quot;navbar&quot;&gt;
&lt;div class=&quot;title&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;btn-red&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;btn-yellow&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;btn-green&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;text&quot;&gt;
&amp;gt; keytool -genkey -alias javacourseblog -keyalg RSA -keystore E:\javacourseblog/keystore.jks -validity 360&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 72.0pt; mso-add-space: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: large;&quot;&gt;You will show the simmiler result. It will ask for the Passwords, first name, last name , organizations and other information.
Please fill the correct information in it and choose password very carefully.

&lt;/span&gt;&lt;/div&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/AVvXsEizaDpFM9DsNbrz2XBj_y9a2apAZSL-FecuF_oRr3Y8z83VoPA6CBnwFbBbk2ybK1da8cilKwKSf7qf4xCYif-82UW3c31T99M83z5ffpXqMElFNVCPPKuMNMRLX-P1UDneSmO4MVmfnbU/s1600/kystore.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizaDpFM9DsNbrz2XBj_y9a2apAZSL-FecuF_oRr3Y8z83VoPA6CBnwFbBbk2ybK1da8cilKwKSf7qf4xCYif-82UW3c31T99M83z5ffpXqMElFNVCPPKuMNMRLX-P1UDneSmO4MVmfnbU/s1600/kystore.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 72.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;Then&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;open your wildfly&#39;s&amp;nbsp; standalone.xml and add&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;below tag in your &amp;lt;security-realms&amp;gt; tag&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;security-realm&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;SslRealm&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;server-identities&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;ssl&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;keystore&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;path=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;keystore.jks&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;relative-to=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;jboss.server.config.dir&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;keystore-password=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;password&quot;&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/ssl&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/server-identities&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/security-realm&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Step 3:&lt;/b&gt; Open your wildfly&#39;s&amp;nbsp; standalone.xml and add below tag in your
&amp;lt;server name&amp;gt; tag&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;https-listener&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;default-ssl&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;socket-binding=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;https&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;security-realm=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;SslRealm&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;enabled-protocols=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;SSLv2, SSLv2Hello, TLSv1, TLSv1.1, TLSv1.2&quot;&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Step 4:&amp;nbsp;&lt;/b&gt;Open your wildfly&#39;s&amp;nbsp; standalone.xml and go to your
socket-binding-group and replace below tag &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;socket-binding&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;port=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;${jboss.https.port:8443}&quot;&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp; with&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;socket-binding&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;https&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;port=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;${jboss.https.port:443}&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/3923957698150939867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2016/06/https-configuration-in-wildfly-900-red.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/3923957698150939867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/3923957698150939867'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2016/06/https-configuration-in-wildfly-900-red.html' title=' HTTPS Configuration In Wildfly 9.0.0 Red Hat server'/><author><name>rakesh</name><uri>http://www.blogger.com/profile/13443574324036714708</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizaDpFM9DsNbrz2XBj_y9a2apAZSL-FecuF_oRr3Y8z83VoPA6CBnwFbBbk2ybK1da8cilKwKSf7qf4xCYif-82UW3c31T99M83z5ffpXqMElFNVCPPKuMNMRLX-P1UDneSmO4MVmfnbU/s72-c/kystore.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-4743925672699242344</id><published>2016-06-06T01:36:00.002-07:00</published><updated>2016-06-24T01:20:55.083-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>Introduction of the Gulp for the begginers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;link href=&quot;https://rawgit.com/ashishanautiyal/public_lib/master/css_shell.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;

&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGFiWpMkh6CP5S0p6yAqSQxSp4qZ08O8YGWaECKQjkkrtyEttZsAD9i0GlIyDuM2QDRwHA353yiXp1i2qBv46Ae_Pwt0ncGwG7bsjQerpY_omATF6uVaZEoeXe77uK1pnh-q-e6aEgRzE/s1600/step0001.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;169&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGFiWpMkh6CP5S0p6yAqSQxSp4qZ08O8YGWaECKQjkkrtyEttZsAD9i0GlIyDuM2QDRwHA353yiXp1i2qBv46Ae_Pwt0ncGwG7bsjQerpY_omATF6uVaZEoeXe77uK1pnh-q-e6aEgRzE/s320/step0001.jpg&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;A front end application required a lot of task from designing the application to deployment application. Some of very common task are watching for any file change , minifying the code,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;compiling the code and combining the modular code. Before task runner came to the picture there was few tools to do the job.One of them was google&#39;s Closure compiler , which was a&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;java application. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes code. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;There was many other way to minimize the JavaScript files , but all of them have their own limitations. When writing a big application one need an automatic task runner which can run through all the files compile them and produce a single source code file&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;When we think about task runner the first two name come in our mind are Gulp and Grunt. Grunt and Gulp both are pretty similar , both works in the nodeJs environment.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Grunt is been around from longer time so the grunt community is big and you will find alot of plugins for the grunt. But there is some pitfalls in Grunt , and gulp started addressing the issue in grunt.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;The common issue one face with Grunt is&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;1. It runs multiple task at one time where as Gulp is design in such a way that it runn one task at a test_no_validator_added_to_plan_with_mandatory_true&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;2. Grunt can not perform basic task like file watching himself and requires plugin for the search_meta&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;3. Gulp provides clean code and easy to maintain task.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Prerequisite&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Install node.js. &amp;nbsp;Nodejs is availbale for window , ubuntu and mac. Download nodejs from http://nodejs.org/download/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Once Nodejs has installed . Check the version of the nodejs. enter the command&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;shell-wrap&quot;&gt;
&lt;div class=&quot;shell-top-bar&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;/Users/ashish/Documents/javascourseblog.com/gulp/demo/&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;shell-body&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;cd&amp;nbsp;/Users/ashish/Documents/javascourseblog.com/gulp/demo/&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;node -v&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;It must print the version of the node. If its not printing node version try to reinstall nodejs&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Check the version of the using&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;shell-wrap&quot;&gt;
&lt;div class=&quot;shell-top-bar&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;/Users/ashish/Documents/javascourseblog.com/gulp/demo/&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;shell-body&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;npm -v&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Now install the gulp&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;shell-wrap&quot;&gt;
&lt;div class=&quot;shell-top-bar&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;/Users/ashish/Documents/javascourseblog.com/gulp/demo/&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;shell-body&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;npm install -g gulp&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;This will install gulp globally. -g stands for the global installation of the any npm package&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;If you get the EACCES error please login using super user. In debian you can use command su.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Now lets go to the project directory using command line and hit the command&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div class=&quot;shell-wrap&quot;&gt;
&lt;div class=&quot;shell-top-bar&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;/Users/ashish/Documents/javascourseblog.com/gulp/demo/&lt;/span&gt;&lt;/div&gt;
&lt;ul class=&quot;shell-body&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;npm init&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Enter the name version description and all other data . If you dont want to be specific press enter enter till the end.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;This will create a package.json file inside your project folder.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Now install gulp locally. It is recommended to install gulp locally and globaly both.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;shell-wrap&quot;&gt;
&lt;div class=&quot;shell-top-bar&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;/Users/ashish/Documents/javascourseblog.com/gulp/demo/&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;shell-body&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;npm install --save-dev gulp &lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;The flag --save-dev help to save package as dev dependecies in package.json.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;It helps in managing the packages for the projectin dev environment and production environment&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;First task in gulp&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;create a file gulpfile.js in root of projectand open it and paste these lines in it&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script src=&quot;https://gist.github.com/ashishanautiyal/a6bb219407b114c0c89f609e5a2d25ae.js&quot;&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Now save the file. And run the command&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;shell-wrap&quot;&gt;
&lt;div class=&quot;shell-top-bar&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;/Users/ashish/Documents/javascourseblog.com/gulp/demo/&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;shell-body&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;gulp helloWorld&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;If you &amp;nbsp;want to run all the task you created then you need to create a default task. add these lines in the code&lt;/span&gt;&lt;/div&gt;
&lt;script src=&quot;https://gist.github.com/ashishanautiyal/6998bdd4b344385ac90af1e81eb399c0.js&quot;&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Now run the command&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;shell-wrap&quot;&gt;
&lt;div class=&quot;shell-top-bar&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;/Users/ashish/Documents/javascourseblog.com/gulp/demo/&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;shell-body&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;gulp&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;It will first run the default task. We have injected helloWorld as dependent task of the default , So it will run the helloWorld also.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;So your final gulpfile.js will look like this&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script src=&quot;https://gist.github.com/ashishanautiyal/deda8aed5525ab1bf1146289862c4914.js&quot;&gt;&lt;/script&gt;

&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Conclusion&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;In this article we have seen&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;1 . Installation of Node and Npm&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;2. Task managers in front end application&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;3. Installation of gulp&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;4. Creating a task in gulp&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: large;&quot;&gt;5. running many task one after another in gulp&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/4743925672699242344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2016/06/introduction-of-gulp-for-begginers_6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/4743925672699242344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/4743925672699242344'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2016/06/introduction-of-gulp-for-begginers_6.html' title='Introduction of the Gulp for the begginers'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGFiWpMkh6CP5S0p6yAqSQxSp4qZ08O8YGWaECKQjkkrtyEttZsAD9i0GlIyDuM2QDRwHA353yiXp1i2qBv46Ae_Pwt0ncGwG7bsjQerpY_omATF6uVaZEoeXe77uK1pnh-q-e6aEgRzE/s72-c/step0001.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-4928366468433560492</id><published>2015-05-11T02:24:00.001-07:00</published><updated>2015-05-11T02:34:32.682-07:00</updated><title type='text'>12 Interesting facts about front end Web technologies </title><content type='html'>1 . By typing this below you can use your browser window as text editor&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
data:text/html, &amp;lt;html contenteditable=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
2. By typing below you can quickly run your html without running html file&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
data:text/html,&amp;lt;h1&amp;gt;&lt;br /&gt;
hay, I am html&amp;lt;/h1&amp;gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
3. By typing below in your browser console you can make page editable&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
document.body.contentEditable=&#39;true&#39;;&lt;br /&gt;
document.designMode=&#39;on&lt;/blockquote&gt;
4. In mordern browser if you define any element with some Id it create a JS global variable&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;&amp;lt;div id=&quot;IAmaDiv&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
console.log(IAMaDiv); // &amp;lt;div id=&quot;IAmaDiv&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
5. You can pass multiple statement inside if statement without using curly braces&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-js&quot;&gt;if (confirm(&quot;wanna see two alerts?&quot;))
  alert(&quot;first&quot;), alert(&quot;second&quot;);
&lt;/pre&gt;
&lt;br /&gt;
6. If &amp;nbsp;you want to disable alert in a Html page ,you can type this in console&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-js&quot;&gt;alert = console.log.bind(console);
&lt;/pre&gt;
&lt;br /&gt;
7. If you wanna print an array in table form.You can use below in Chrome &lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-js&quot;&gt;var author = [{name: &#39;ashish&#39;, age: 24}, {name: &#39;Nautiyal&#39;, age: 23}];
console.table(author); 
&lt;/pre&gt;
&lt;br /&gt;
8. console.log($0); returns the currently selected element in Chrome&lt;br /&gt;
&lt;br /&gt;
9. monitorEvents(window,&#39;click&#39;); can monitor all the click event on page in google chrome&lt;br /&gt;
&lt;br /&gt;
10. debug(debugThisFunction); will kick on debugger whenever control will execute debugThisFunction &lt;br /&gt;
&lt;br /&gt;
11. Typing keys(window); in console will return an Array of global objects&lt;br /&gt;
&lt;br /&gt;
12 . history.pushState({}, &#39;&#39;, &quot;changedurl&quot;); by using this you can change your url bar in browser to something  else</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/4928366468433560492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2015/05/interesting-facts-about-front-end-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/4928366468433560492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/4928366468433560492'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2015/05/interesting-facts-about-front-end-web.html' title='12 Interesting facts about front end Web technologies '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-485418429837344930</id><published>2015-05-09T08:33:00.000-07:00</published><updated>2015-05-11T02:07:40.983-07:00</updated><title type='text'>Webview in PhoneGap/Cordova or Turn your website into mobile application Cordova/phonegap </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;text-align: justify;&quot;&gt;
First of all you need to install Phonegap/Cordova in your system and if not installed you can refer to this link &lt;a href=&quot;http://checkconnectiontype/&quot; target=&quot;_blank&quot;&gt;https://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html &lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
I hope you are done with the Cordova/Phonegap thing and now you have a link which will open up a website and you want to convert it into an application.Making an application from a web link in just 10-15 minutes don&#39;t you think its amazing.So lets start with it.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If you are familiar with Cordova or Phonegap then you will definitely know about deviceready Event Listener in Cordova/Phonegap. But if not don&#39;t worry it a very basic thing you can set up the Cordova/Phonegap thing in your system from the link shared previously.It will guide you completely how to install Cordova in your system and it will also setup one basic project.In that project you will find deviceready Event Listener.In short deviceready is the event which is fired after the cordova file is completely loaded and your application is ready.&lt;/div&gt;
&lt;br /&gt;
You can simply do like this and make your application from the link.&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-js&quot;&gt;document.addEventListener(&quot;deviceready&quot;, onDeviceReady, false);
function onDeviceReady() {
 // Now safe to use the Codova API
 window.location=&quot;http://your.website&quot;;
 }
You also need to declare something like this in xml file to tell Cordova that it is safe.
&amp;lt;access origin=&quot;http://your.website&quot; subdomains=&quot;true&quot;/&amp;gt; 
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Now in case if the internet connection in the mobile is not working and you run the above code it will not work.But there is also a solution for this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Cordova /PhoneGap we have a plugin for checking network connection just install the plugin from your command line window by running this command&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;cordova plugin add cordova-plugin-network-information&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
After this add some code to check your internet connection type&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-js&quot;&gt;function checkConnectionType() {
      var networkState = navigator.network.connection.type;
      var states = {};
      states[Connection.UNKNOWN] = &#39;Unknown connection&#39;;
      states[Connection.ETHERNET] = &#39;Ethernet connection&#39;;
      states[Connection.WIFI]   = &#39;WiFi connection&#39;;
      states[Connection.CELL_2G] = &#39;Cell 2G connection&#39;;
      states[Connection.CELL_3G] = &#39;Cell 3G connection&#39;;
      states[Connection.CELL_4G] = &#39;Cell 4G connection&#39;;
      states[Connection.NONE]   = &#39;No network connection&#39;;
      return networkState;
    }
&lt;/pre&gt;
Now you can add logic to do something in case of no internet connection.&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-js&quot;&gt;function onDeviceReady(){
   var networkState = checkConnectionType();
       /*load local files if there is not network connection */
    if (networkState == Connection.NONE) {
        window.location=&quot;open some other local file like sorry no internet connection&quot;;
       } else {
         window.location=&quot;http://your.website&quot;;
       }
    }
    &lt;/pre&gt;
Or you can also open a native Cordova/Phonegap alert in case of no internet connection like this.&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-js&quot;&gt;function onDeviceReady(){
    var networkState = checkConnectionType();
      /* load local files if there is not network connection */
        if (networkState == Connection.NONE) {
           navigator.notification.alert(&#39;Oops! Sorry No internet connection&#39;);
         } else {
           window.location=&quot;http://your.website&quot;;
          }
      }
 &lt;/pre&gt;
This is my first one hope you will like it and fell free to ask any questions.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/485418429837344930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2015/05/webview-in-phonegapcordova-or-turn-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/485418429837344930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/485418429837344930'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2015/05/webview-in-phonegapcordova-or-turn-your.html' title='Webview in PhoneGap/Cordova or Turn your website into mobile application Cordova/phonegap '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05123117149849331727</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-9079634326924803454</id><published>2014-11-19T03:32:00.002-08:00</published><updated>2014-11-19T03:32:44.538-08:00</updated><title type='text'>Cordova Contact API example with AngularJS and Onsen UI</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;This tutorial is divide into three parts.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;Designing the template with onesen ui&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;cordova contact plugin&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;rendering the contact with angularl&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;First we will design the layout in onsen UI for the application.So first we will create a page holder. Onsen UI provides &amp;lt;ons-navigator&amp;gt; component to serve this purpose.As the page holder is created by &amp;lt;ons-navigator&amp;gt;.Now lets create a page by using &amp;lt;ons-page&amp;gt;.One thing i would like to clear before proceeding ahead &amp;lt;ons-page&amp;gt; &amp;nbsp;should be used as root element of the page. The whole page will be encapsulated within &amp;lt;ons-page&amp;gt;.We want to show the contact image &amp;nbsp;to right side and the contact information to left side.For doing this lets create a row by using &amp;lt;ons-row align=&quot;center&quot;&amp;gt;. Now devide this row into two columns by using &amp;lt;ons-col&amp;gt;.As we have now two equally devide layouts at the center.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;Now lets create the placeholder for the contact information by using simple &amp;lt;div&amp;gt; component.Now lets add a button at the end to envoke some method. For creating a button in onen UI we need &amp;lt;ons-button&amp;gt; component. Lets add this component just before where page gets close i.e. before &amp;lt;/ons-page&amp;gt;. So the final template of the app will be&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint lang-html&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;lt;ons-navigator&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;ons-page&amp;gt;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h3&amp;gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ons-row align=&quot;center&quot;&amp;gt;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;Demo&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ons-col&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;div class=&quot;Demo&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;hr /&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;div class=&quot;Demo&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;hr /&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;Demo&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ons-col&amp;gt;

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ons-col&amp;gt;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ons-button ng-click=&quot;pickAcontact()&quot;&amp;gt;Pick contact&amp;lt;/ons-button&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&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;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ons-col&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ons-row&amp;gt;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;lt;/ons-navigator&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/ons-page&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; Now our template is ready lets quickly add some css rules.&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint lang-css&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;.item {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      padding: 10px;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      line-height: 1;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;    }
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      background-color: #ccc;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;    .item-thum {
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      height: 50px;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      width: 50px;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;    .item-title {&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      border-radius: 4px;
    }
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      font-weight: 500;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      font-size: 15px;
    }
    .item-desc {
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      line-height: 1.3;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      font-size: 14px;
      color: #666;
      margin: 4px 0 0 0;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      font-size: 12px;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      padding: 0 30px 0 0;
    }
    .item-label {
      color: #999;
      float: right;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      overflow: hidden;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;    }
    .col {
      border: 1px solid #ccc;
      background: #fff;
      padding: 4px;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      padding: 8px;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      color: #999;
    }

    .page__content {
      background-color: #f6f6f6;
    }

    h3 {
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      color: #666;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;      font-size: 17px;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHCDg3nOdrnr-7eRfFwcg6LYmYb7Gm_oQOQOfPrIkSIdaIdYNj8pctjScSSkfqq0eiJLDumYL2zTF4qbJ8xpo63fnXkBYKoGlKnr8CB2kFZJ2V8t24h2pEx92QzDReoBwAMXaY_I0tLDE/s1600/iOS+Simulator+Screen+shot+Nov+19,+2014,+4.43.54+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHCDg3nOdrnr-7eRfFwcg6LYmYb7Gm_oQOQOfPrIkSIdaIdYNj8pctjScSSkfqq0eiJLDumYL2zTF4qbJ8xpo63fnXkBYKoGlKnr8CB2kFZJ2V8t24h2pEx92QzDReoBwAMXaY_I0tLDE/s1600/iOS+Simulator+Screen+shot+Nov+19,+2014,+4.43.54+PM.png&quot; height=&quot;320&quot; width=&quot;213&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; Now lets jump to the contact plugin of the cordova.First add the plugin by using &quot;cordova plugin add org.apache.cordova.contacts&quot; command. once the plugin is added into the application we can move ahead with this plugin . Lets quickly check whether plugin installed correctly by using cordova plugin ls.it will list the all installed plugin.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; Cordova provide navigator.contacts.pickContact api to access the contact from contact list. navigator.contacts.pickContact &amp;nbsp;takes two arguments first a success callback or a error callback.&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint lang-js&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp;navigator.contacts.pickContact(function(contact){&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; // contact can accessed here
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp;}).&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp;},function (err){
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; //error callcback&lt;/span&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp;So &amp;nbsp;now lets play with angularJS.First of all define app ,module. Now create a controller. I have created a controller &quot;AppController&quot;.Now create a method pickAcontact and bind this to button we created while designing the layouts by using ng-click directive.Now inside this methode call the pickContact api and on the success callback of the api add the result to $scope.contact. which we will use in the template. Now come cak to template and make data binding.The final html will be.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint lang-html&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;lt;ons-navigator&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;ons-page&amp;gt;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h3&amp;gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ons-row align=&quot;center&quot;&amp;gt;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;Demo&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ons-col&amp;gt;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {{ contact.name.formatted }}
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;hr /&amp;gt;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {{ contact.emails[0].value }} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;div class=&quot;Demo&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {{ contact.phoneNumbers[0].value }} 
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {{ contact.addresses[0].postalCode }} &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;hr /&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;div class=&quot;Demo&quot;&amp;gt;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {{ contact.addresses[0].streetAddress }} &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {{ contact.addresses[0].locality }} &amp;lt;br /&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {{ contact.addresses[0].region }} &amp;lt;br /&amp;gt;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;Demo&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {{ contact.addresses[0].country }}
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ons-col&amp;gt;

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ons-col&amp;gt;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ons-button ng-click=&quot;pickAcontact()&quot;&amp;gt;Pick contact&amp;lt;/ons-button&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;img ng-src = &quot;{{contact.photos[0].value}}&quot; /&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ons-col&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ons-row&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/ons-page&amp;gt;
&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;lt;/ons-navigator&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&amp;nbsp; Come back to controller , after assigning the contact value to $scope.contact call the &amp;nbsp;$scope.$apply() , &amp;nbsp;$scope.$apply(); will let the angular know there has been some changes made in values.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFLJvMYrxx_gddMD9xC1vM-H0YpZIuC9FR8CZTKiwuDOFuifUkaq_BsV5qGXowga2HXX89FhEC6GSKpjKdSPI5rYaHkKC3NF6GkFVAxGAkYRCvHCgZW1487HvuNhVXQ30oSqv4qUs0Jdk/s1600/iOS+Simulator+Screen+shot+Nov+19,+2014,+4.44.29+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFLJvMYrxx_gddMD9xC1vM-H0YpZIuC9FR8CZTKiwuDOFuifUkaq_BsV5qGXowga2HXX89FhEC6GSKpjKdSPI5rYaHkKC3NF6GkFVAxGAkYRCvHCgZW1487HvuNhVXQ30oSqv4qUs0Jdk/s1600/iOS+Simulator+Screen+shot+Nov+19,+2014,+4.44.29+PM.png&quot; height=&quot;320&quot; width=&quot;213&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/9079634326924803454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2014/11/CordovaContactAPIexamplewithAngularJSandOnsenUI.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/9079634326924803454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/9079634326924803454'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2014/11/CordovaContactAPIexamplewithAngularJSandOnsenUI.html' title='Cordova Contact API example with AngularJS and Onsen UI'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHCDg3nOdrnr-7eRfFwcg6LYmYb7Gm_oQOQOfPrIkSIdaIdYNj8pctjScSSkfqq0eiJLDumYL2zTF4qbJ8xpo63fnXkBYKoGlKnr8CB2kFZJ2V8t24h2pEx92QzDReoBwAMXaY_I0tLDE/s72-c/iOS+Simulator+Screen+shot+Nov+19,+2014,+4.43.54+PM.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Rohini, New Delhi, Delhi, India</georss:featurename><georss:point>28.7494716 77.056533299999955</georss:point><georss:box>28.638090599999998 76.895171799999957 28.8608526 77.217894799999954</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-291434347678675433</id><published>2014-09-01T23:43:00.000-07:00</published><updated>2014-11-16T23:29:17.078-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Angular"/><title type='text'>AngularJS ui-router tutorial from scratch -  Part 1 </title><content type='html'>&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;AngularJS is very powerful framework and provide the solution for almost every challenge without integrating any outside libraries. Angular UI library is broken in many parts so you can pick the feature and include only that in your angularJS application.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;But still we can add libraries and make the angular application more powerful.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;ui-router is one of most powerful ui library of the angularJS . Instead for just providing the url route it plays with the state. ui-router provide many extra and more powerful feature. We can have nested views , multiple views on one page or the multiple view wich have common controller .&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;INSTALLATION :&lt;/b&gt; For installing ui-router in your application you can install it through the bower &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;$ bower install angular-ui-router --save &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;and then include the it in your HTML file &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;script src=&quot;phoneCatApp/bower_components/angular-ui-router/release/angular-ui-router.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;nbsp;&amp;nbsp; 
&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;or &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;you can save the source code&amp;nbsp; from the GITHUB .&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;For using the ui-route you need to ui-router as a dependency in your module &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;html ng-app=&quot;phoneCatApp&quot;&amp;gt;

&amp;lt;head&amp;gt;

&amp;lt;script src=&quot;script/angular.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;!-- Include the ui-router script --&amp;gt;

&amp;lt;script src=&quot;script/angular-ui-router.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;script&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; // ...and add &#39;ui.router&#39; as a dependency

&amp;nbsp;&amp;nbsp;&amp;nbsp; var phoneCatApp= angular.module(&#39;phoneCatApp&#39;, [&#39;ui.router&#39;]);

&amp;nbsp; &amp;lt;/script&amp;gt;

&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;

&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;If you used ng -router&amp;nbsp; then you most probably came across the ng-view directive . So here instead of using the ng-view we use ui-view ,the&amp;nbsp; views will get change inside this ui-view&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;div ng-controller=&quot;mainController&quot;&amp;gt;

&amp;lt;div ui-view=&quot;&quot;&amp;gt;

&amp;lt;/div&amp;gt;

&amp;lt;/div&amp;gt;

&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Now we will write the config of the app for routing . It is very simmiler to the ng-route but instead of playing upon $routeProvider we deal with $stateProvider.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.config(function($stateProvider, $urlRouterProvider) {

$stateProvider

.state(&#39;first&#39;, {

url: &#39;/first&#39;,

templateUrl: &#39;template/first.html&#39;,

controller :firstController

})

});
&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;h4 style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;template&amp;nbsp; templateUrl and&amp;nbsp; templateProvider&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;These three are used&amp;nbsp; for setting the views .You can use any of them according to your needs .&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ol style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;template &lt;/b&gt;- template is a&amp;nbsp; string of HTML content or a function that returns HTML&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;templateUrl &lt;/b&gt;- templateUrl is a&amp;nbsp; string of a URL path to a template or a function that returns a URL path string&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;templateProvider &lt;/b&gt;- templateProvider is a&amp;nbsp; function that returns an HTML content string&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;h4 style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Controller&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;controller is used to bind the controller to the view. Which can operate over the view&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h4 style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;url&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;This work very simmiler to the ng-route&amp;nbsp; but have many upgrades in it .Which we will discuss in future.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: small;&quot;&gt;How to route ?&lt;/span&gt;&lt;/i&gt;&lt;/h2&gt;&lt;h4 style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;1 . ui-sref&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;ui-sref work smiler to the href but it have more capability . It takes the stateName as the the parameter .&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;a  ui-sref=&quot;first&quot;&amp;gt;First&amp;lt;/a&amp;gt; 
&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;h4 style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;2 . $state.go&lt;/span&gt;&lt;/h4&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; If you want to change the view from controller then you need to use $state.go . The syntax is &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;go(to, params, options) &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;$state.go(&#39;first&#39;) will take it to first state.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;$state.go(&#39;^&#39;) - will take it to a parent state&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;$state.go(&#39;^.sibling&#39;) - will take it to a sibling state&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;$state.go(&#39;.child.grandchild&#39;) - will take it to grandchild state&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;This is the first part of ui-router. I will discuss many other parts in next series of it. &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/291434347678675433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2014/09/angularjs-ui-router-tutorial-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/291434347678675433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/291434347678675433'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2014/09/angularjs-ui-router-tutorial-from.html' title='AngularJS ui-router tutorial from scratch -  Part 1 '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-5013995425348138231</id><published>2014-07-20T20:57:00.002-07:00</published><updated>2014-07-26T05:12:38.651-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Angular"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>Promises in JavaScript: What are they and How to use them?</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;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Asynchrony is unavoidable in any platform these days. Asynchrony doesn’t just help the servers to serve their clients better but it also maximizes effective utilization of the resources. JavaScript is no exception. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;In recent times, use of asynchronous programming became very important as the expectations out of the software systems that we are writing is went up drastically. And even some of the browser APIs like Indexed DB work on an asynchronous model.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Traditional way of handling asynchronous tasks is the callback model. As the asynchronous tasks are handled by a separate thread or a separate process in some cases, the main program using the asynchronous task doesn’t know when the operation is going to be finished. So, we attach a callback function to the asynchronous task and the attached method would be called when the task is done.Though this approach looks good for upto a chain of one or two asynchronous tasks, it makes the code less readable when we have 3 or more async operations that depend on the result of the previous &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;operation. Following is an example of such scenario:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Promises&lt;/b&gt;: What are they and How to use them?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;firstAsyncOperation.onOperationCompleted = function(

if(operationObject.state == “success”){

var secondAsyncOperation = secondAsyncFunction(operation.resultData);

  secondAsyncOperation.onOperationCompleted = function(){

   if(secondAsyncOperation.state == “success”){

     var thirdAsyncOperation = thirdAsyncOperation();

      thirdAsyncOperation.onOperationCompleted = function(){

       if(thirdAsyncOperation.state == “success”){


       }


      };


    }

      };

}else {

//May be some other async operation to handle error case
}

};
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;That might look beautiful with nice switch between the curly braces and parentheses, but it becomes difficult to manage such code blocks. It becomes really painful when you have to write such blocks multiple times in your code. Promise is a pattern created to solve this issue. Rest of the article speaks about the pattern of promises and how to use them to address this kind of issue.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;What is Promise ?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;A promise is an object that holds an asynchronous operation. At any given point of time, the object is in one of the three states:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;• Pending: When the asynchronous operation is still going on&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;• Success: When the async operation is successfully completed&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;• Failed: When the async operation is completed but failed&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The promise specification doesn’t tell how to implement a promise, but it says what should be implemented. According to the specification, any promise implementation should have a then callback that accepts two callbacks: one for success and the other for failure. Some implementations (such as Q) also accept a third callback that is invoked when the operation is in progress.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;A typical asynchronous operation handled by a Q promise looks like:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;

asyncOperationObject.then(successCallback, errorCallback, inProgressCallback);

function successCallback(data){
     //----------
     //----------

     //---------- 

    }

function failureCallback(error){

 //----------
 //----------
 //---------- 

 }


 function inProgressCallback(info){

 //----------
 //----------

 //---------- 
 }

 &lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;In general, we pass in anonymous functions as callbacks to the then method. The syntax is shown below:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;


asyncOperationObject.then(function (data){
//--------
//--------
}, function (error){
//----------
//----------

}, function (info){
//----------
//----------

});

&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;One can include or ignore the callbacks depending upon the need. In most of the scenarios, we ignore the in-progress callback. It can be used to show when there is a need to show a progress bar to indicate the current state.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Chaining Promises&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The very first thing we saw in this article is, how dangerous the callback model is for chaining async operations. The best part about the promises is that, the then method also returns a promise object. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;This means, we can return another then on the return object.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;


asyncOperationObject.then(function(data){

   return data;

  }, function(error){

    console.log(error);

  })

  .then(function(data){

    return data

  }, function(error){

    console.log(error);

  })

  .then(function(data){

   return data;

  }, function(error){

   console.log(error);

  });

&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Though the above operation is chained,it still looks flat. It is very easy to manage such operations as well. More than everything, it is easy to read the subsequent then blocks.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;b&gt;Conclusion&lt;/b&gt;:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Understanding promises is very crucial these days. It is an important pattern to be followed in every JavaScript heavy application. There are several implementations of promises, including Q, jQuery’s deferred API, Angular’s $q (inspired from Q), RSVP, when.js and so on. Promises got a place in the ES6 specification as well. It is already implemented in latest versions of many of the major browsers.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Happy promising!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;

&lt;br /&gt;
&lt;div style=&quot;border: 2px #C222E2 dotted; margin: 5px 5px 5px 5PX;&quot;&gt;
&lt;div style=&quot;border: 2px #C222E2 dotted; padding: 15px;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;About Author :&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin: 10px; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;Name &lt;/b&gt;:S Ravi&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;Twitter &lt;/b&gt;: https://twitter.com/SRavi_Kiran&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;Bio&lt;/b&gt;: Software Professional, Passionate about Microsoft technologies, Blogger, Love to pass time with Music and Cricket&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/5013995425348138231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2014/07/promises-in-angularjs-what-are-they-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/5013995425348138231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/5013995425348138231'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2014/07/promises-in-angularjs-what-are-they-and.html' title='Promises in JavaScript: What are they and How to use them?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Dehradun, Uttarakhand, India</georss:featurename><georss:point>30.3164945 78.032191799999964</georss:point><georss:box>30.0971985 77.709468299999969 30.5357905 78.354915299999959</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-2290061119628418183</id><published>2014-06-02T22:03:00.004-07:00</published><updated>2014-06-04T20:53:08.523-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Angular"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>AngularJs $apply $digest in Detail With Error Handeling </title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;The best practice to change the value of bindings is $apply . What $apply actually does ? it update the bindings of the page and notify the value has changes . it calls $digest internally and return the promise. Almost whole angular binding run inside $digest. &lt;/div&gt;&lt;pre class=&quot;prettyprint&quot;&gt; $scope.$apply(&#39;foo = &quot;bar&quot;&#39;);
&lt;/pre&gt;&lt;br /&gt;
 //or&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt; $scope.$apply(function(scope) {
scope.foo = &#39;bar&#39;;
});
&lt;/pre&gt;&lt;br /&gt;
 //or&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt; $scope.$apply(function(){
$scope.foo = &#39;bar&#39;;
 });&lt;/pre&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
I was trying to change the scope value with ng-click . And i kept getting a error . Error: $apply already in progress.&lt;br /&gt;
If you are also facing the same error I found two solution for it &lt;br /&gt;
First Solution : you can put the putAsafeApply method , which wil check the status of the $apply .&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;$scope.putAsafeApply = function(fn) {
var status = this.$root.$$phase;
if(status == &#39;$apply&#39; || status == &#39;$digest&#39;) {
 if(fn &amp;amp;&amp;amp; (typeof(fn) === &#39;function&#39;)) {
 fn();
 }
 } else {
this.$apply(fn);
}
};

&lt;/pre&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
$scope.$$phase or $scope.$root.$$phase will return &quot;$digest&quot; or &quot;$apply&quot; if a $digest or $apply is in progress. I believe the difference between these states is that $digest will process the watches of the current scope and it&#39;s children, and $apply will process the watchers of all scopes.&lt;br /&gt;
&lt;br /&gt;
So now we have putAsafeApply method and we can use it where ever we want to use instead of $apply.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;$scope.putAsafeApply(function() {
 $scope.foo = &#39;bar&#39;;
});

&lt;/pre&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
Second Solution : It is simpler then the first one .You can use the $apply inside the $timeout function without delay.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;$timeout(function(){
$scope.foo = &#39;bar&#39;;
})

&lt;/pre&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&amp;nbsp;$timeout(callback) will wait until the current digest cycle (if any) is done, then execute your code, then run at the end a full $apply which will call $digest internally as explained earlier .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/2290061119628418183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2014/06/angularjs-apply-digest-in-detail-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/2290061119628418183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/2290061119628418183'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2014/06/angularjs-apply-digest-in-detail-with.html' title='AngularJs $apply $digest in Detail With Error Handeling '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-1806607293268435290</id><published>2014-05-29T23:18:00.001-07:00</published><updated>2014-06-04T20:43:57.950-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="phonegap"/><title type='text'>PhoneGap / Cordova Unzip Plugin for android </title><content type='html'>&lt;script src=&quot;https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
While developing A phoneGap application i faced a problem in unzipping a folder. I downloaded a folder in zip from server using FileTransfer API. &lt;br /&gt;
I searched a lot for UnZIP plugin of phone gap but did not find any one the net . Than i started writing a fresh cordova plugin for unzipping &lt;br /&gt;
&lt;br /&gt;
There is few prerequisite before using this plugin &lt;br /&gt;
Node.js and Cordova CLI or PhoneGap&#39;s CLI &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Installation :  1 . Open Your terminal and go to your project directory&lt;br /&gt;
2 . Enter this command &lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;phonegap  plugin add https://github.com/ashishanautiyal/Unzip-PhoneGap--Plugin.git
  &lt;/pre&gt;or If you using cordova &lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;cordova  plugin add https://github.com/ashishanautiyal/Unzip-PhoneGap--Plugin.git
&lt;/pre&gt;or you can download the plugin from Git repo Manually&lt;br /&gt;
&lt;br /&gt;
https://github.com/ashishanautiyal/Unzip-PhoneGap--Plugin.git&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3 .I Assume you downloaded the plugin manually from git repo&lt;br /&gt;
&lt;br /&gt;
Copy the com folder inside the src folder under your android project&lt;br /&gt;
&lt;br /&gt;
4 .Copy ExtractZipFile.js file inside your www folder and make its reference in index.html&lt;br /&gt;
&lt;br /&gt;
5 . Open res/xml/config.xml file from your project and paste the line&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;feature name=&quot;ExtractZipFile&quot;&amp;gt;&lt;br /&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;lt;param name=&quot;android-package&quot; value=&quot;com.phonegap.plugin.ExtractZipFile.ExtractZipFilePlugin&quot;/&amp;gt;&lt;br /&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;lt;/feature&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;
or&amp;nbsp; &lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;&amp;nbsp;&amp;lt;plugin name=&quot;ExtractZipFile&quot; value=&quot;com.phonegap.plugin.ExtractZipFile.ExtractZipFilePlugin&quot; /&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;feature name=&quot;ExtractZipFile&quot;&gt;&lt;br /&gt;
&lt;param name=&quot;android-package&quot; value=&quot;com.phonegap.plugin.ExtractZipFile.ExtractZipFilePlugin&quot; /&gt;&lt;/feature&gt;  or &lt;plugin name=&quot;ExtractZipFile&quot; value=&quot;com.phonegap.plugin.ExtractZipFile.ExtractZipFilePlugin&quot;&gt;   Usage :   &lt;/plugin&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;function extractOK(status)
{
    console.log(&quot;extractOK&quot;);
}

function extractError(error)
{ 
    console.log(&quot;extractError &quot;+error);
}


function extractFile(zipfile)
{
    console.log(&quot;Extracting &quot;+ zipfile);
    extractZipFile.unzip(zipfile, extractOK, extractError);
}

&lt;/pre&gt;&lt;br /&gt;
Get the file reference  and pass as parameter in function extractFile(zipfile) . And you are done with extractFile&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Git Repo Link : https://github.com/ashishanautiyal/Unzip-PhoneGap--Plugin</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/1806607293268435290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2014/05/phonegap-cordova-unzip-plugin-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/1806607293268435290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/1806607293268435290'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2014/05/phonegap-cordova-unzip-plugin-for.html' title='PhoneGap / Cordova Unzip Plugin for android '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-8497349839432807068</id><published>2014-05-23T08:54:00.000-07:00</published><updated>2014-05-23T21:16:48.888-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Knowledge Optimization and Knowledge Sharing in Java Technology</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Information is crucial to the organizations and individuals as it helps them to protect their data, wealth as well as assets but often there has been the challenge of sharing this data with others for them to exploit it to their advantage and any other intended purpose. As a result of this therefore, there is need to allocate more resources and time to the sharing of this information by the different people. Governments, individuals as well as corporate and organizations therefore have set out to come up with better ways of enhancing the sharing of their data in the information systems. One better way of doing this is through the sharing of the knowledge through the Java Technology and software.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Consistency in publishing of the blog posts&lt;/span&gt;&lt;br /&gt;
Although patterns of publishing of blog posts with regards to the regularity with which they are done are determined by the nature of the content and the idea of the blog site, it should be done as often as possible. Often the successful way to attract and maintain visitors to a site could be through regular publishing of quality content for the blog site which will not only appeal to the visitors but also keep them coming back to the site. Attracting more people will widen the scope of the search of the website on the search engines as well as improve the rank of the website in the search engines and this will improve the visitors to the website as well.&lt;br /&gt;
Maintaining the visitor numbers high to the website can also achieved through other strategies such as inclusion of survey or polls done on a frequent regular basis like daily or weekly. This could also be done alongside inclusion of a visitor’s book in the website as a strategy to improve and notice the guest frequency.&lt;br /&gt;
Keep the visitors interested by asking questions related to the blog post&lt;br /&gt;
The development of questions relevant to the particular blog post will always keep the visitors asking more about the topic of discussion. This will also ensure their involvement as they will attempt to respond to the question in the comments section. Their contribution not only improves the content of the website but may also highlight the challenges especially with regards to products or services for a business, advertisement or sales promoting or related website.&lt;br /&gt;
Networking&lt;br /&gt;
This is especially relevant when done with other blogs which are directly related to the area of interest of the website. It provides users of other sites a direct link to your website from the other site. Inclusion of links to the website in comment sections of other blogs which are dealing with related fields could also be a good strategy to improve visitor frequency in the site.&lt;br /&gt;
Inclusion of sharing button or option in the site also allows the users as well as visitors to share information that they find useful or relevant to the site. This will also allow them to spread the links of the bog by sharing them on social media as well as through their personal emails. Use of handles such as twitter, Facebook which allow for instant feedback is also good for the promotion of the site as well as attracting more users.&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Quality content&lt;/span&gt;&lt;br /&gt;
Successful implementation of the java technology as a tool of sharing information will heavily hinge on the content that is being shared. When the content is short, precise and to the point then it is likely to appeal to many people rather than a redundant, long and boring content that is discouraging to read. Sharing of information that is useful and healthy for people will ensure that they read and want to read more the content associated or being passed through the Java technology. However much any content is shared and optimized across the different mediums and channels for consumption by the users, it will not be able to do much or achieve much with regards to impact if the content is not acceptable by the readers.&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Avoid duplication of content&lt;/span&gt;&lt;br /&gt;
When the content being shared is one that has been duplicated and lack originality, it tends not to appeal to the readers and this may perhaps affect the consumption of the content and the general perception of the contents with regards to the reliability of the java technology as a source of information. It is therefore critical to avoid the duplication of content that is especially to be passed on to the people through the java technology.&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Avoid issues of copyright&lt;/span&gt;&lt;br /&gt;
Any content that is to be passed on through the java technology should be able to be shared without any challenges especially with regards to issues of copyright. Most of the copyright issues have to do with the plagiarism of content without the author’s knowledge or permission or even acknowledging the author. Hence therefore there is need to prevent the issues of plagiarism or any other issues that may lead to copyright law suits and such.&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Content should be content specific&lt;/span&gt;&lt;br /&gt;
When content is said to be specific this implies that is should be precise so that it only highlight the key point and remains within the scope of the subject of interest. Redundancy tends to arise because of the inclusion of irrelevant content which does not even relate or touch on the subject of interest in any way.&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Avoid promotional content&lt;/span&gt;&lt;br /&gt;
Such technology is supposed to pass knowledge and not be used as forums to do promotion of other products and services. Therefore this should be avoided at all cost as it may lead to disregard of the content being shared even if it is relevant and worth reading.&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Create links and addition share buttons&lt;/span&gt;&lt;br /&gt;
Inclusion of links and share buttons are necessary to allow for further sharing of the knowledge especially through the social sites. This could also be extended and done on the email so that the information can be channeled out as much as possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Author’s Bio: &lt;/b&gt;He is a writer by profession. He contributes articles and blogs on travelling, education, technology, fashion and shopping. He has good knowledge in all writing field. He helps the student’s any papers to buy from custom essay writers. &lt;br /&gt;
&lt;a href=&quot;https://plus.google.com/u/0/106412577220463284561/posts&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Google+ profile&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/8497349839432807068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2014/05/knowledge-optimization-and-knowledge.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/8497349839432807068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/8497349839432807068'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2014/05/knowledge-optimization-and-knowledge.html' title='Knowledge Optimization and Knowledge Sharing in Java Technology'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Rudraprayag, Uttarakhand, India</georss:featurename><georss:point>30.513765952287702 79.094352722167969</georss:point><georss:box>30.5000859522877 79.074182722167976 30.527445952287703 79.114522722167962</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-2759583905334917350</id><published>2014-02-13T04:27:00.000-08:00</published><updated>2014-05-31T12:07:12.337-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cordova"/><category scheme="http://www.blogger.com/atom/ns#" term="phonegap"/><title type='text'>Show loading screen in Phonegap app over inAppBrowser</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img style=&quot;border:none;height: 325px;width: 227px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidUSBX2jvzeiJ35b-28E7tG9EmwM0PUMVj-e1dqKDxCBE2BoMJr27gaBEpXCPNwKZPGOjyG_C5uoEl7ffj8Au3Snf4-5TIVf5LZ6A6aF-QWRmkdhkHHXfpdNKvOYUQ19n1YI_X9tzjCWM/s1600/phonegapLogo.jpg&quot; /&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The trick is very simple for showing the loading screen in phonegap application.You Just need to call activityStart function of the notification.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;

&lt;iframe width=&quot;100%&quot; height=&quot;100&quot; src=&quot;http://www.purplegene.com/script?url=https://gist.github.com/ashishanautiyal/c126bce24163fe0c91fb.js&quot;&gt;&lt;br /&gt;
&lt;/iframe&gt;

&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For hiding the loading screen in phonegap just call activityStop function.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;

&lt;iframe width=&quot;100%&quot; height=&quot;100&quot; src=&quot;http://www.purplegene.com/script?url=https://gist.github.com/ashishanautiyal/1f02b09934402810f26a.js&quot;&gt;&lt;/iframe&gt;

&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The loading screen is very helpful while making Ajax call or while using the inappbrowser.It is really useful when loading the external link in inappbrowser.It is useful because you can not create a loading screen through your HTML in client side if you are loading the external link.Because inappbrowser overlay on the application.You can show the loading screen when loadstart events fire in Inappbrowser hide it when loadstop events fire. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Here is an example of loading screen with inappbrowser.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;

&lt;iframe width=&quot;100%&quot; height=&quot;400&quot; src=&quot;http://www.purplegene.com/script?url=https://gist.github.com/ashishanautiyal/63cba6d1c628279b4962.js&quot;&gt;&lt;/iframe&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This phonegap loading screen only works with the android .And if you will touch the screen The loading screen will get hide. &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/2759583905334917350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2014/02/show-loading-screen-in-phonegap-app.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/2759583905334917350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/2759583905334917350'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2014/02/show-loading-screen-in-phonegap-app.html' title='Show loading screen in Phonegap app over inAppBrowser'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidUSBX2jvzeiJ35b-28E7tG9EmwM0PUMVj-e1dqKDxCBE2BoMJr27gaBEpXCPNwKZPGOjyG_C5uoEl7ffj8Au3Snf4-5TIVf5LZ6A6aF-QWRmkdhkHHXfpdNKvOYUQ19n1YI_X9tzjCWM/s72-c/phonegapLogo.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Dehradun, Uttarakhand, India</georss:featurename><georss:point>30.25432233644344 78.057861328125</georss:point><georss:box>29.814876836443439 77.412414328125 30.693767836443442 78.703308328125</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-4903832643852798242</id><published>2014-01-27T23:31:00.000-08:00</published><updated>2014-03-23T22:00:49.363-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cordova"/><title type='text'>FaceBook Login Logout using cordova 3.3.0 cli.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;script src=&quot;//code.jquery.com/jquery-1.10.2.min.js&quot;&gt;&lt;/script&gt; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqfx7I-wIFCH67lQdWSX6gi5lHZKH6wTzn2qlhKyOoZhug5Fugn2e6a_dHEu1bCdgJCG5LhGHit_FaC_bosPbA4T-h5eX3zZLYNkblrPs0ZDu9ARHXLZ5LcvEi0tYeSv6NgWH1USleuLQ/s1600/Image290114.png&quot; style=&quot;border: none;&quot; /&gt;&lt;/div&gt;&lt;script&gt;
$(document).ready(function () {
 $(&#39;.bottomMenu&#39;).fadeOut();
})

$(document).scroll(function () {
    var y = $(this).scrollTop();
    if (y &gt; 2000) {
        $(&#39;.bottomMenu&#39;).fadeIn();
    } else {
        $(&#39;.bottomMenu&#39;).fadeOut();
    }
});

&lt;/script&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In recent past i faced a lot problem in setting up the cordova facebook plugin with cli 3.3.0.After a lot of search i found it is typo from cordova.I am here sharing the easiest steps to setting up cordova facenook plugin using cordova cli 3.3.0 .&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;How to set up the Facebook plugin With cordova 3.3.0 cli for android ?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;before Setting Facebook plugin with cordova 3.3.0 you have to setup these&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #741b47; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Prerequisite&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&amp;nbsp;&lt;/span&gt;:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;JdK&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Apache Ant&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Node.js and NPM&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Git&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Cordova 3.3.0 CLI&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Once you installed all the above properly.Open your command prompt and go to your project directory and run this command&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTpb_PjPN7WFovMnbH5VVnVf56Pm5Acin6O5mFHif7yDCwAFpYrS7WAqWxYQ429zREi9WrGso2P0M8KYVbSS5wQMswNRwsd9etXFstKKWrriNBmHObK-huQ3lZTVpc8UpibhVZ3JwfAYU/s1600/first.png&quot; height=&quot;88&quot; style=&quot;border: none;&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;script src=&quot;https://gist.github.com/ashishanautiyal/6efc8e6b8d69a8f0f6cf.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;you will see the &amp;nbsp;screen like above after running the command . You have created a cordova project.Change your directory to facebookTutorial&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now you are inside cordova project which you just created .Run the below command.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/ashishanautiyal/570ad68dba51dfc4f73a.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYOQza3RZgFR2aOW47wMPWfHxbDS30E23IWGBg40_eXPlchHlA4VGaXjiZv9Woo8WZPtrcwZikRi4OhfvfP_hyphenhyphenF0t7zRJgBIoCaFPYUgXbqEL3C9_Pn19M0pXjMxUJQe7EFhyphenhyphenXqngyluk/s1600/second.png&quot; height=&quot;120&quot; style=&quot;border: none;&quot; width=&quot;640&quot; /&gt;&amp;gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now you installed facebook plugin in your cordova project. But if you will run the command &amp;nbsp;cordova plateform add android it will get failed and ask you to putt appid and appname.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For removing this error locate the folder &lt;span style=&quot;color: #674ea7;&quot;&gt;\plugins\com.phonegap.plugins.facebookconnect inside your projectfolder.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #674ea7;&quot;&gt;Open The plugin.xml file from \plugins\com.phonegap.plugins.facebookconnect&lt;/span&gt; folder and find the lines&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;script src=&quot;https://gist.github.com/ashishanautiyal/c42b9a1fe5ebce1d97e6.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Modify it to&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;script src=&quot;https://gist.github.com/ashishanautiyal/dac81c5a665591bde8b5.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Where value is your app id and your app name.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;Run the command cordova platform add android . The screen&amp;nbsp;similar&amp;nbsp;to below will&amp;nbsp;appear.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;Now you have installed facebook plugin and created android project.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #741b47; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Now we will see how to get login to facebook through cordova facebook plugin ?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;Now open the index.html file from your projectfolder/www in your&amp;nbsp;favorite&amp;nbsp;editor. And&amp;nbsp;delete everything from this .&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;You have a Blank index.html file.Write some dom elements inside your body Tag&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;script src=&quot;https://gist.github.com/ashishanautiyal/e336d3742bef3b1ea2d1.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Your Dom structure is ready . Now Make&amp;nbsp;reference&amp;nbsp;of cordova.js ,cdv-plugin-fb-connect.js and facebook-js-sdk.js&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;script src=&quot;https://gist.github.com/ashishanautiyal/692e31b61293c461201f.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now come to your &lt;span style=&quot;color: #674ea7;&quot;&gt;&amp;lt;script&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt; portion and check the cordova facebook and cdv agent are included properly inside your project&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;script src=&quot;https://gist.github.com/ashishanautiyal/0b0f079944c96a6d8d3e.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Write &amp;nbsp;event handler function for login logout and status change.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;script src=&quot;https://gist.github.com/ashishanautiyal/766642c0eaa7b21f9013.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Its time to initialize FB sdk now. Here i am initializing it with device ready event&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;script src=&quot;https://gist.github.com/ashishanautiyal/26e1042fd1680b19da69.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Once the fb is initialize we can &amp;nbsp;make login to facebook through our application.Here the function for log in&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;script src=&quot;https://gist.github.com/ashishanautiyal/e1c47f678cf23afb19fa.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For the Logging out&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;script src=&quot;https://gist.github.com/ashishanautiyal/d9c89f5c0b0fdbb1bb3e.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;For getting the login status here is the code snipet&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/ashishanautiyal/85e7c76d6e8992355763.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Once all this done run the command&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;script src=&quot;https://gist.github.com/ashishanautiyal/dee5b62c4fe7c4ec4570.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Your Application will be launch in your emulator.Here are few screenshots of emulator.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class =&quot;imageBlock&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-u0uS-sNkfoOKItY5tl524GTRmkh6kV_fZQUjsfuyzwhRQ5v9M6KgqqyB_ZE4zo_2dt6Uit_DDgkW5cViEBuD9AX3dnRiy35ziWCQXyXqj4sJuvJ8l5whcVpYeSOEu3Pzdua4Xse-bEA/s1600/emu2.png&quot; height=&quot;200&quot; width=&quot;162&quot; /&gt;&lt;br /&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsgu_Wm2krhItoTcfL-BPeLvIPDq_8O_ABkrPP9eUPhMqYruqV-RF99ZHUkQ1s8-0KI-Lb26hJVbZQjmkeB2l_IgduPHi43bhQP1q7OR9LnpmKUo1yHPWVix6wfGydOpzwfeZyHuy6UUQ/s1600/emul4.png&quot; height=&quot;200&quot; width=&quot;153&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyYXKGNTW5RHuseEpn3lEnEhovi_TNmNnyi8cQBCwwo4JUxO5Jj0VPlVrxuNWuSAwpIuzn0vWDUWmH_vRJD4SbuD8henerlsGU9sdqVgLCpec3Z78f2wTn6FJA5tBPezdOsZ6yMm21Ylk/s1600/emul5.png&quot; height=&quot;200&quot; width=&quot;136&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil-27WXuSJJ4QNm3WVWWSvCuH4e1gcPcorG3D1-hYt8JyGziUAAcS7BY8yGCQpDOfQJ6iCfiM7Kjej1R7h8u73sz3D7bT10NAIn8G2r0974O-vEq1RvijYBvbZ8VdjC6hIuQwMlJQKslQ/s1600/emul6.png&quot; height=&quot;200&quot; width=&quot;171&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg1aJZO_nCkh-e0FbRukFss66n0D_c3gqRlMnddmuC2IqYYfL1x2ILlH2KWhORJ-zFhOluR9k1KkPN60ohAcq76YfWhrj5PIcoU9YyVn0Nc0cG263nzf0Uap-HaFKJ0Z_kjLm7kFn4fxk/s1600/emul3.png&quot; height=&quot;200&quot; width=&quot;156&quot; /&gt;&lt;br /&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_rZPdCAxdDVxCztJa5wznqJ6y_Vmuofu_25bm9mnsu06FwUVUNUL-MiasxZt3LtpU_WcUmYiXrSR85NSD_4ytrEyg7MuiEEXq8-CosJ0lHM1nqWUduQd9zziJUO19KTrFfkIklAGzQDU/s1600/emu1.png&quot; height=&quot;200&quot; width=&quot;160&quot; /&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Hope you enjoyed reading this.If any doubt i am open to answer .Feel free to ask and do&#39;t forget to share with your friends &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 class=&quot;bottomMenu&quot;&gt;&lt;span id=&quot;forkongithub&quot;&gt;&lt;a href=&quot;https://github.com/ashishanautiyal/FacebookPluginCordova&quot;&gt;Fork me on GitHub&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;style&gt; #forkongithub a{background:#0ae;color:#fff;text-decoration:none;font-family:arial, sans-serif;text-align:center;font-weight:bold;padding:5px 40px;font-size:1rem;line-height:2rem;position:relative;transition:0.5s;}#forkongithub a:hover{background:#060;color:#fff;}
 #forkongithub a::before,
 #forkongithub a::after{content:&quot;&quot;;width:100%;display:block;position:absolute;top:1px;left:0;height:1px;background:#fff;}
 #forkongithub a::after{bottom:1px;top:auto;}
 @media screen and (min-width:800px){
  #forkongithub{
   position:fixed;display:block;top:0;right:0;width:200px;overflow:hidden;height:200px;
   }
   #forkongithub a{
    width:200px;position:absolute;top:60px;right:-60px;transform:rotate(45deg);-webkit-transform:rotate(45deg);box-shadow:4px 4px 10px rgba(0,0,0,0.8);}
    }
&lt;/style&gt;</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/4903832643852798242/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2014/01/facebook-login-logout-using-cordova-330.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/4903832643852798242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/4903832643852798242'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2014/01/facebook-login-logout-using-cordova-330.html' title='FaceBook Login Logout using cordova 3.3.0 cli.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqfx7I-wIFCH67lQdWSX6gi5lHZKH6wTzn2qlhKyOoZhug5Fugn2e6a_dHEu1bCdgJCG5LhGHit_FaC_bosPbA4T-h5eX3zZLYNkblrPs0ZDu9ARHXLZ5LcvEi0tYeSv6NgWH1USleuLQ/s72-c/Image290114.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-2448459034062512184</id><published>2014-01-21T06:27:00.001-08:00</published><updated>2014-02-27T20:18:37.558-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><title type='text'>Offline App Capability In HTML5</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;text-align: justify;&quot;&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpwA1qTkEBhllu34fW0vRkAZLdhEONNASlqHl2Vt023F8GOZ3YdgwntDHEMdATjtwZdDkoMBF0yC62sKlx_dltGiR9md8lG69EWeLL0wvGvpsETYuYdHda_xRBoBep8D352yp6gknNthqJ/s1600/html5-offline-App.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;HTML5 Offline Apps&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpwA1qTkEBhllu34fW0vRkAZLdhEONNASlqHl2Vt023F8GOZ3YdgwntDHEMdATjtwZdDkoMBF0yC62sKlx_dltGiR9md8lG69EWeLL0wvGvpsETYuYdHda_xRBoBep8D352yp6gknNthqJ/s1600/html5-offline-App.png&quot; height=&quot;181&quot; title=&quot;HTML5 Offline Apps&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Html5 Offline Apps&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;Offline app capability in HTML5 bought all the power to store data offline .When we talks about offline people ask offline means without internet ? First take the term ONLINE first . online and Web are kind of synonyms.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;So why the term Offline is getting use for web technology . The offline here means run the webpage from file:// uri. But hang on it does not mean the web page will never get connected to server.The term offline will make more sense if we will take it like the web page could survive at the server downtime.There are various apps who connects the cloud server and survives at downtime. Gmail Mobile app and gmail offline are examples&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;In the Older time devs used the technique like cookies,Plugin Based Storage for storage. But the era of HTML5 bought more power to the client side for storage.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;. You can check the application for online/offline using &lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;b&gt;navigator.onLine()&lt;/b&gt;&lt;/span&gt;. And it works everywhere in latest browser even in IE also.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;You can also listen the events for it using.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;document.body.addEventListener(&quot;online&quot;, function () {console.log(&quot;Now you are online !!!&quot;)}&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;document.body.addEventListener(&quot;offline&quot;, function () {console.log(&quot;Now you are offline !!!!&quot;)}&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;HTML5 bought many features to make application offline .Few Technique to make app offline&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;b&gt;1.Application Cache :&lt;/b&gt;&lt;/span&gt; CACHE MANIFEST file make you able to store the resourse files locally for offline usage.Make a reference of manifest file inside &amp;lt;html&amp;gt; tag.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&amp;lt;html manifest=&quot;MyManifest.appcache&quot;&amp;gt;.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;The mime type of the manifest must be text/cache-manifest.Manifest file is a simple text file . It looks like this&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;CACHE MANIFEST&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;index.html&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;index.css&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;index.js&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;b&gt;2.Web Storage :&lt;/b&gt;&lt;/span&gt; Web storage have two sub category. One is persistent called local storage . In local storage we can set a value to a key using &lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;localstorage.key=&quot;value&quot;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;And we can retrieve it later . The other category of web storage is session storage we use it similar but the data gets lost once the browser gets closed .&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;We can just match the strings using the web storage.Simplicity is for calling the API is good part of this and bad performance is bad part of it.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;b&gt;3.Web SQL Database :&lt;/b&gt;&lt;/span&gt; Web sql database is a relational database .It has all the power of storing the complex relational database. it is well supported in all mobile browser the performance is really good .It has robustness. And the best part it is really easy to maintain.One have good command over sql can play with it with lot of ease.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;b&gt;4.Indexed database :&lt;/b&gt;&lt;/span&gt; Indexed Database is a collection of&amp;nbsp; stores of objects . Where you can keep the objects for future use.In indexed Db you don&#39;t need to define a schema before like &amp;nbsp;web sql database . In Index db you can have multiple databases and in each database you can have multiple stores.Indexed Database have good search performance and have robustness&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/2448459034062512184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2014/01/offline-app-capability-in-html5-bought.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/2448459034062512184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/2448459034062512184'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2014/01/offline-app-capability-in-html5-bought.html' title='Offline App Capability In HTML5'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpwA1qTkEBhllu34fW0vRkAZLdhEONNASlqHl2Vt023F8GOZ3YdgwntDHEMdATjtwZdDkoMBF0yC62sKlx_dltGiR9md8lG69EWeLL0wvGvpsETYuYdHda_xRBoBep8D352yp6gknNthqJ/s72-c/html5-offline-App.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-7727401804275977281</id><published>2013-12-26T22:57:00.000-08:00</published><updated>2014-01-23T06:21:00.796-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="Mobile"/><title type='text'>How to Make a user friendly Interface for Mobile Platforms?</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;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;We all web Ninja knows the value of USER EXPERIENCE. In
mobile platform it requires a different approach to make a better user experience.
I am listing few points one must remember while making mobile Interface.&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;1 .Responsive Web design&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;2 .The event handing must be touch friendly&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;3. The Forms must be design in a mobile friendly way .&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;4. Use appropriate screen pixel densities of images&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;1. &lt;/b&gt;We all know &lt;span style=&quot;color: #674ea7;&quot;&gt;&lt;b&gt;responsive Design&lt;/b&gt;&lt;/span&gt; is one which adapts the
layout on the basis of the screen size. It means the user will have the same &amp;nbsp;EXPERIENCE on mobile as on Desktop while
browsing the site.few well known technique for making website responsive are
these.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&amp;lt;meta name=&quot;viewport&quot;
content=&quot;width=device-width, initial-scale=1&quot; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&amp;lt;link rel=&quot;stylesheet&quot;
type=&quot;text/css&quot; href=&quot;main.css&quot; media=&quot;screen,
handheld&quot; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&amp;lt;link rel=&quot;stylesheet&quot;
type=&quot;text/css&quot; href=&quot;fallback.css&quot; media=&quot;screen&amp;nbsp; and (min-width: 40.5em)&quot; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&amp;lt;!--[if (lt IE 9)&amp;amp;(!IEMobile)]&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&amp;lt;link rel=&quot;stylesheet&quot;
type=&quot;text/css&quot; href=&quot;fallback.css&quot; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&amp;lt;![endif]--&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;It means non mobile version and The IE version 9 or less
than 9 will use fallback.css. We all knows IE 9 and lower does not support
media queries. Not only IE some mobile browser like Symbian Browser (Doesn’t exist
though) and BlackBerry older browser also not support the media queries. So Conclusion
of this Part is make web design responsive.If you don’t know learn it.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Use Appcache to make website offline available. Believe me
it increase user experiences&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;2.&lt;/b&gt;&amp;nbsp;Now let’s &amp;nbsp;jump on the second point event handling. Now
days mobile are touch friendly. Apple &amp;nbsp;&amp;nbsp;bought “touch events AP” from ios 2.0 .Android
is also catching up with touch events. W3C also making draft on touch event &lt;a href=&quot;https://dvcs.w3.org/hg/webevents/raw-file/tip/touchevents.html&quot;&gt;https://dvcs.w3.org/hg/webevents/raw-file/tip/touchevents.html&lt;/a&gt;.
There are single touch and Multi touch Devices in market. Let’s not focus on
multi and single touch devices (It’s another big debate).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;So currently there are three basic touch events currently&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;touchstart:&lt;/span&gt; When a DOM element is touched.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;touchmove&lt;/span&gt;: when a touch is dragged over the &amp;nbsp;DOM element.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;touchend&lt;/span&gt;: when the touch removed from DOM element.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; color: #212121; font-size: 14px; line-height: 22px;&quot;&gt;&lt;b&gt;3. The Forms&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #212121; font-size: 14px; line-height: 22px;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&lt;/span&gt;So one need to handle these events for making website touch
friendly .Few things one must remember while approaching for touch friendly
devices&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;1 .Disable the zooming : &lt;/b&gt;Preventing the user from zooming
will prevent user to scale website. &lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,
initial-scale=1.0, user-scalable=no&quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;2.Prevent the scrolling:&lt;/b&gt; Few devices&amp;nbsp; like IOS jumps the viewport when the scroll exceed
the limits. &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;document.body.addEventListener(&#39;touchmove&#39;, function(event)
{&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;event.preventDefault();&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;}, false);&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Now let’s come to Third point make &lt;span style=&quot;color: #674ea7;&quot;&gt;&lt;b&gt;form user friendly&lt;/b&gt;&lt;/span&gt;. Mobile
have on-screen keyboard and its really frustrating to fill the form with this.
But thanks to HTML5 which came with new semantic input types and validation.
For making form filling mobile friendly on need to follow these two things . &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #8e7cc3;&quot;&gt;&lt;b&gt;1 .Input Type&lt;/b&gt;.&lt;/span&gt; There are number of new input type introduced
in HTML which invokes relative on-screen keyboard. &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The full list of all input types :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #45818e;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;url ,tel ,Email , search, Number ,Color , Range , Datetime ,
datetime-local &amp;nbsp;,Date,&amp;nbsp; Time , Week ,month&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;For Example I write &amp;lt; input type=”number” /&amp;gt;, the
browser will show a numeric onscreen keyboard. Or I write &amp;lt; input type=”Email”
/&amp;gt; the on screen keyboard will show alpha numeric keyboard with @ and .com
button . So the user will feel it more easy to fill the form &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #674ea7;&quot;&gt;&lt;b&gt;2.Form Validation&lt;/b&gt; :&lt;/span&gt; Validation of form is very important .It
keeps the data clean and improve the &amp;nbsp;user
experience . There are two approach one can use for form validation &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #674ea7;&quot;&gt;&lt;b&gt;I &lt;/b&gt;. &lt;b&gt;Pattern &lt;/b&gt;&lt;/span&gt;. Pattern
is nothing but a regular expression to validate &lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;b&gt;&amp;lt;form
action=&quot;Myform.asp&quot;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;Country code:
&amp;lt;input type=&quot;text&quot; name=&quot;Your country_code&quot;
pattern=&quot;[A-Za-z]{3}&quot; title=&quot; only Three letter country
code&quot;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;input
type=&quot;submit&quot;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The above example will validate the input field and will
allow only 3 character&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #674ea7;&quot;&gt;&lt;b&gt;II. Require :&lt;/b&gt;&lt;/span&gt; If input field have require attribute the user
must fill the field before submitting the form &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;lt;input type=&quot;text&quot; required &amp;nbsp;name=&quot;Your country_code&quot;
pattern=&quot;[A-Za-z]{3}&quot; title=&quot; only Three letter country
code&quot;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #674ea7;&quot;&gt;&lt;b&gt;III min, max and step:&lt;/b&gt;&lt;/span&gt; For numeric value specify the minimum
maximum value and for the value will increment in slider &lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #a64d79;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;lt;input type=&quot;number&quot; id=&quot;myNumber&quot;
min=&quot;10&quot; max=&quot;50&quot; step=&quot;10&quot; /&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #674ea7;&quot;&gt;&lt;b&gt;IV &amp;nbsp;maxlength :&lt;/b&gt;&lt;/span&gt; The maxlength
attribute for Input type&amp;nbsp; will specify
the maximum allowed length of input character&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;4&lt;/b&gt;.Now days there is very wide range of screen pixel
densities. Some devices have really very very high resolution display. So first
and best suggestion for the optimizing different screen pixels &amp;nbsp;is avoid images as much as you can. Now days there
are SVG CSS3 for getting nice interface. And these works fine across the web&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;But if it is compulsory to use image you can&amp;nbsp; go for these two approach &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;1.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;Optimize&amp;nbsp;
Single image&lt;/span&gt; &amp;nbsp;for multiple platform.
You can use one image and optimize it for different devices. But this will
affect the performance badly. As user will download the Hidpi image in all
browser ,the old browser will render it badly .&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;2.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;Multiple Image approach .&lt;/span&gt; Use multiple images
and decide on the browser capacity which to load .We can use following technique
to make the dicision&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;1 . Javascript&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;2 .server side Delivery&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;3. CSS Media Queries &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/7727401804275977281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2013/12/how-to-make-user-friendly-interface-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/7727401804275977281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/7727401804275977281'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2013/12/how-to-make-user-friendly-interface-for.html' title='How to Make a user friendly Interface for Mobile Platforms?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-2494939751308115975</id><published>2013-08-22T21:56:00.001-07:00</published><updated>2013-08-22T21:56:07.133-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Angular"/><category scheme="http://www.blogger.com/atom/ns#" term="Mvc"/><title type='text'>Getting Started with Angular -My first angular program</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;text-align: justify;&quot;&gt;
getting started with angular.js&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Before we start developing in Angular you need to download Angular.js from its official page .It&#39;s available in both minfied and normal version .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Structure :&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
First we will look at the structure of the Angular.&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;!doctype html&amp;gt;&lt;br /&gt;&amp;lt;html ng-app&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ...&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;script src=&quot;angular.js&quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The first line &amp;lt;!doctype html&amp;gt; is for the browser to make him aware about the page is HTML5 based .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The next tag is &amp;lt;html ng-app&amp;gt; the ng-app means your app will auto bootstrap or auto initialize .You can initialize the app manuallly also .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If you wanna get support on IE 7 or below also write it like this &amp;lt;html ng-app id=&quot;ng-app&quot;&amp;gt;.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
One important thing we wrote the script tag at end of the body tag . The purpose of this is to let dom structure get ready . It is best practis&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Now lets develope some thing .&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;!doctype html&amp;gt;&lt;br /&gt;&amp;lt;html ng-app&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;head&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;title&amp;gt;My angular first program&amp;lt;/title&amp;gt; &lt;br /&gt;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label&amp;gt;Name:&amp;lt;/label&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; ng-model=&quot;myMess&quot; placeholder=&quot;Type any message here&quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;hr&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;h1&amp;gt;it is your message {{myMess}}!&amp;lt;/h1&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/html&amp;gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Explanation&lt;/b&gt; : &amp;lt;input type=&quot;text&quot; ng-model=&quot;myMess&quot; placeholder=&quot;Type any message here&quot;&amp;gt;&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Here we are declaring an input text type field .&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&quot;ng-model&quot;&lt;/b&gt; is Angular API which is responsible for two way data binding (binding view to the model).&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
It alow you the form validation like you normally does in HTML require ,url,number,email.We will review it in brief in future for now you just understand it is something related to the form&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;lt;h1&amp;gt;it is your message {{myMess}}!&amp;lt;/h1&amp;gt; : this &quot;{{ }}&quot; is how we write expression in angular.{{myMess}} means &amp;nbsp;the value of [ ng-model=&quot;myMess&quot; ] will be get displayed here . This is called two way data binding .&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/2494939751308115975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2013/08/getting-started-with-angular-my-first.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/2494939751308115975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/2494939751308115975'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2013/08/getting-started-with-angular-my-first.html' title='Getting Started with Angular -My first angular program'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-202706506845240908</id><published>2013-08-20T01:00:00.003-07:00</published><updated>2015-04-29T00:49:15.737-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Angular"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="ReactJS"/><title type='text'>MVC in JavaScript Angular Vs Backbone vs Other</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-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;One technology which did remarkably well in recent year is JavaScript (EcmaScript). From the concept of Oops JavaScript has moved to MVC. JavaScript had libraries like J query&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;which is all about &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;on&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Dom manipulation . I spend last few months on MVC framework in JavaScript. Before discussing&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;the MVC frameworks of JavaScript lets first understand &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;what&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;MVC actually is in practical. &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;What Is MVC , Or MV* means actually ?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Various frameworks make able developers to create &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;a flexible way to organizing their code by using the variations of a pattern called MVC (Model-View-Controller). This is what book speaks about MVC.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;If you will dig deep &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;MVC. It is divided into three parts&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje1DAacBAwROLJPyfVUxqrarI7ip9Az4EYudBL9p1vuZCzYut1XckvN9roV5AHFubOERbWa3CLuM3ra-FrCczwej6giKiLDFuhcl_DkEHSNN3G0KmBgzEltHFeNaC9XLYvXuvUVE5IqDY/s1600/mvc.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje1DAacBAwROLJPyfVUxqrarI7ip9Az4EYudBL9p1vuZCzYut1XckvN9roV5AHFubOERbWa3CLuM3ra-FrCczwej6giKiLDFuhcl_DkEHSNN3G0KmBgzEltHFeNaC9XLYvXuvUVE5IqDY/s1600/mvc.jpg&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;MVC in JavaScript&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;Models &lt;/b&gt;&lt;/span&gt;represent the domain-specific knowledge and data in an application. Think of this as being a ‘type’ of data you can model — like a User, Photo or Note. Models should notify anyone observing them about their current state (e.g Views).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;Views &lt;/b&gt;&lt;/span&gt;think of this as &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;User-interface &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;(e.g your markup and templates). Views must be aware about the structure of model but they need not to interact with model directly&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;Controllers &lt;/b&gt;&lt;/span&gt;takes the all input from user in the application and update the model. The &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;controller don’t directly communicate the view . &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;This is how the Model - View – Controller relation is . &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Various MVC Frameworks&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;There are many JavaScript MVC frameworks available like Backbone.js, Knockout.js, Ember.js, Spine.js, Angular.js, Ext.js etc. The Framework which are on too much demand are Backbone.js and angular.js .Both have own positives and negatives. Let’s start reviewing the various MVC in JavaScript.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Backbone.Js&lt;/span&gt; &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;-&lt;/b&gt; If you are in the down town&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;of JavaScript you must heard its name a lot . This is the one of the most widely used MVC Framework, Backbone is flexible framework. It provide the flexibility to choose the feature which you want to implement and which you don’t .underscore .js is tightly integrated with this &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;. It plays very well with other frameworks .The first and main disadvantage I personally felt with Backbone is the bad documentation even though they improved it a lot but still it is not good enough for beginners. The functional drawback of backbone is it’s &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;don’t provide UI binding. It is a event driven framework.&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgauFJaWN3aAnsUgNtIFXiad6aK7V52Ti841tQkb01RlKbm11yMKZ_PAX-mKIC1ImrUksO9gdw2_1Q7EAWO8ksTo4NAC27RT5jBUvUW8dwhbZukHdldtAr77dRoWnfbPDcyYPGizEj1bks/s1600/backbone.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgauFJaWN3aAnsUgNtIFXiad6aK7V52Ti841tQkb01RlKbm11yMKZ_PAX-mKIC1ImrUksO9gdw2_1Q7EAWO8ksTo4NAC27RT5jBUvUW8dwhbZukHdldtAr77dRoWnfbPDcyYPGizEj1bks/s1600/backbone.png&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;backbone.js&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Angular.js&lt;/span&gt; &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;-&lt;/b&gt; this is my personal &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;favorite framework .What is best about &lt;a href=&quot;http://javacourseblog.blogspot.in/search/label/Angular&quot; target=&quot;_blank&quot;&gt;Angular.js&lt;/a&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;is it is not dependent on any other framework like&amp;nbsp;underscore&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;jquery etc. If its Angular its pure Angular. &lt;a href=&quot;http://javacourseblog.blogspot.in/search/label/Angular&quot; target=&quot;_blank&quot;&gt;Angular &lt;/a&gt;is a complete solution . In Backbone there you have to implement all the event listeners you need not to write for events listener or event trigger its automatically happens in angular. The both way data binding make it awesome. &lt;a href=&quot;http://javacourseblog.blogspot.in/search/label/Angular&quot; target=&quot;_blank&quot;&gt;Angular &lt;/a&gt;is &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;heavy .It means you have to type less.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Directives services and provider are good concepts.Directives&amp;nbsp;helps keeps your DOM manipulation code in &amp;nbsp;angular element.It &amp;nbsp;allow app to concern for update only when the data changes by this developer can keep all view logic&amp;nbsp;separate.&amp;nbsp;The.The&amp;nbsp;HTML 5&amp;nbsp;have a lot of new tags but&amp;nbsp;directive&amp;nbsp;helps you to invent your own&amp;nbsp;html&amp;nbsp;tag.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Filter is another good thing with Angular.Filter filter data before it reaches to the views.It can format data in decimal number,ascending&amp;nbsp;and&amp;nbsp;descending&amp;nbsp;order Filter&amp;nbsp;are&amp;nbsp;similar&amp;nbsp;to the Directives you can keep them standalone.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Service providers are other good feature of angular.Services are something like API which you keep outside from your controller and the service provider expose your controller to the service.It again help Developer to keep&amp;nbsp;controller&amp;nbsp;lightweight and do&amp;nbsp;all heavy lifting out side the MVC.$brodacst and $emit are example of&amp;nbsp;inbuilt&amp;nbsp;services of angular.Emit will send message to all&amp;nbsp;predecessor and&amp;nbsp;broadcast&amp;nbsp;will send&amp;nbsp;message&amp;nbsp;to all successor by definition.But both&amp;nbsp;works&amp;nbsp;pretty same in angular world.&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtWkjLTxDVwhprk0vrXAJe1lCnYx9IwZIUSq0VqSttVJe14x58EOof59t-cGwIzlz4VcUo3HsqAxnDlhePRpehM4q3gmquK4nb-80qBZXPOCAezjkViwoxYhltqWp5wAH6zKh0ZPdsgLU/s1600/angular&#39;.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtWkjLTxDVwhprk0vrXAJe1lCnYx9IwZIUSq0VqSttVJe14x58EOof59t-cGwIzlz4VcUo3HsqAxnDlhePRpehM4q3gmquK4nb-80qBZXPOCAezjkViwoxYhltqWp5wAH6zKh0ZPdsgLU/s1600/angular&#39;.jpg&quot; height=&quot;200&quot; width=&quot;190&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Angular.js&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #073763;&quot;&gt;ReactJS&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;-&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ReactJS is open source JS library by Facebook.ReactJS is not MVC &amp;nbsp;but I am writing about it because people keep comparing Angular with React. Facebook guys created huge buzz on AngularVsReact. React Vs Angular does not make any sense for we guys.Angular is a complete framework on the&amp;nbsp;other-hand&amp;nbsp;React&amp;nbsp;is just the view layer.React provides few functions to present the HTML.All the react output is HTML.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The react component is bundle of HTML and&amp;nbsp;JAVASCRIPT. Their&amp;nbsp;is concept of State and Props.Which&amp;nbsp;comes from inside the component is state .The component save state it in memory.Which pushed in from outside is props.It is impossible to create an App alone on Reactjs&lt;/span&gt;&lt;br /&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #073763;&quot;&gt;The good part of React&lt;/span&gt;:&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1.A component lives his life in his life cycle.A component does not bother what other component is doing .Component himself&amp;nbsp;understand&amp;nbsp;what to render and where to&amp;nbsp;render.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2.It is very easy to learn and understand the flow.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;3.It always keeps the DOM shadow.It does not do to &amp;nbsp;entire DOM manipulation on data change instead it manipulate the&amp;nbsp;particular&amp;nbsp;DOM.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;4.The Flow of Application is easily&amp;nbsp;understandable.&lt;/span&gt;&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipAeEzt3VgKHWpTibEk6Si13xaJmBR9qknUwhXNGxuywMbnYypDPAqwr2Y6mxNwOtvzEOq_9ATnMeSyf-bM6GjBKlHZL0LaSPbYRnJ89-n5jv9BlUFl6UHep_gqK4EAZK11LGAkgRyOqc/s1600/reactJs.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipAeEzt3VgKHWpTibEk6Si13xaJmBR9qknUwhXNGxuywMbnYypDPAqwr2Y6mxNwOtvzEOq_9ATnMeSyf-bM6GjBKlHZL0LaSPbYRnJ89-n5jv9BlUFl6UHep_gqK4EAZK11LGAkgRyOqc/s1600/reactJs.png&quot; height=&quot;193&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;ReactJs&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;span style=&quot;color: #073763; font-family: Verdana, sans-serif;&quot;&gt;The bad Part of React:&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1.There is way to make AJAX call all alone in React i.e. Natwork layer is missing.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2.There is no data layer as well.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;3.No &lt;a href=&quot;http://javacourseblog.blogspot.in/2014/07/promises-in-angularjs-what-are-they-and.html&quot; target=&quot;_blank&quot;&gt;promises &lt;/a&gt;available&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;4.Worst of all not enough Documentation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;We will discuss more MVC frameworks and&amp;nbsp;definitely&amp;nbsp;Angular 2.0 in detail in future. Stay&amp;nbsp;tuned. &lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/202706506845240908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2013/08/mvc-in-javascript-angular-vs-backbone_1416.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/202706506845240908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/202706506845240908'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2013/08/mvc-in-javascript-angular-vs-backbone_1416.html' title='MVC in JavaScript Angular Vs Backbone vs Other'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje1DAacBAwROLJPyfVUxqrarI7ip9Az4EYudBL9p1vuZCzYut1XckvN9roV5AHFubOERbWa3CLuM3ra-FrCczwej6giKiLDFuhcl_DkEHSNN3G0KmBgzEltHFeNaC9XLYvXuvUVE5IqDY/s72-c/mvc.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-2287757376401927498</id><published>2013-08-06T23:06:00.000-07:00</published><updated>2014-03-13T05:47:56.451-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="phonegap"/><title type='text'>how to write hello world programe in android using phonegap</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;text-align: justify;&quot;&gt;
In The &lt;a href=&quot;http://javacourseblog.blogspot.in/2013/05/How-to-Use-PhoneGap-on-Linux-Ubuntu-or-Android-Application-Development.html&quot; target=&quot;_blank&quot;&gt;last blogpost &lt;/a&gt;we discused how to set the workspace for the android app developement in phonegap aka cordova.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In this post will write the &quot;Hello world&quot; programe for android using cordova .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
So here are the steps for creating your first app in phonegap.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Step 1 : Set your work space as i wrote in last blogpost&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Step 2 : Create a &lt;b&gt;www&lt;/b&gt; &amp;amp; &lt;b&gt;libs&lt;/b&gt; folder inside the &lt;b&gt;Asset&lt;/b&gt; folder .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Step 3 : Create a &lt;b&gt;js&lt;/b&gt; and &lt;b&gt;css&lt;/b&gt; folder inside the &lt;b&gt;www&lt;/b&gt; folder .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
step 4 : create a &lt;b&gt;index&lt;/b&gt;.&lt;b&gt;html&lt;/b&gt; file inside the &lt;b&gt;www&lt;/b&gt; folder .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Step 5 : Copy the cordova-2.7.0.jar file from downloaded phonegap folder to your projects &lt;b&gt;asset/libs &lt;/b&gt;folder.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Step 6 : Right click on the &lt;b&gt;cordova-2.7.0.jar&lt;/b&gt; file which you copied into &lt;b&gt;asset/libs&lt;/b&gt; folder .A select menu will appear choose the &quot;&lt;b&gt;Buid Path&lt;/b&gt;&quot; .And then select &quot;&lt;b&gt;Add To Build Path&lt;/b&gt;&quot; .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Step 7 : Now copy the &lt;b&gt;cordova-2.7.0.js&lt;/b&gt; file from downloaded phonegap folder to your projects &lt;b&gt;asset/www/js&lt;/b&gt; folder.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Step 8 : Now open your index.html file from &lt;b&gt;www&lt;/b&gt; folder . I assume you are familiar with web developement . make a reference of cordova-2.7.0.js in your index.html page.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;text-align: justify;&quot;&gt;
&amp;lt;script src=&quot;js/cordova-2.7.0.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
step 9 : Create a main.js file inside js folder . and refrence it in index .html page&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;text-align: justify;&quot;&gt;
&amp;lt;script src=&quot;main.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Step 10: Write inside the body tag of &lt;b&gt;index.html&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Hello World &amp;lt;/p&amp;gt;&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Step 11: Now Save all www folder files and Open the &lt;b&gt;MainActivity.java&lt;/b&gt; file which you will found under the &lt;b&gt;src&lt;/b&gt; folder.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Step 12: Keep the first line which start with &quot;&lt;b&gt;package&lt;/b&gt;&quot; and &amp;nbsp;Remove the all other lines of that file .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Step 13: Copy the following lines in in the file .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; import android.os.Bundle;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
import org.apache.cordova.*;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
public class MainActivity extends DroidGap {&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; @Override&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; public void onCreate(Bundle savedInstanceState) {&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super.onCreate(savedInstanceState);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super.loadUrl(&quot;file:///android_asset/www/index.html&quot;);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
}&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Step 14:Now save the file . Clean the project . Build the project. Run the application . And you application is done .&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Feel free to ask your doubts through comments &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/2287757376401927498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2013/08/how-to-write-hello-world-programe-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/2287757376401927498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/2287757376401927498'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2013/08/how-to-write-hello-world-programe-in.html' title='how to write hello world programe in android using phonegap'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-924971802468066287</id><published>2013-05-07T23:34:00.000-07:00</published><updated>2013-05-07T23:41:00.111-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="phonegap"/><title type='text'>How to Use PhoneGap on Linux Ubuntu for Android Application Development ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
This tutorial will tell the step by
step process to Use the PhoneGap in Ubuntu for making native app
using web technology like HTML5 ,CSS3 ,JavaScript Etc.
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
First of all you  are needed to set up
workspace . The software we will need for this are.
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
1.eclipse IDE
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
2.Sdk
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
3.Phone gap
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Download Sdk from here
http://developer.android.com/sdk/index.html . Unzip this file into
your working directory. This will download two folder Eclipse and Sdk
.And you are done with the eclipse and sdk installation. Next thing
you need to download the PhoneGap . Download phone gap and unzip it
to anywhere in your hard drive . This will download two folder doc
and lib . The lib folder is the folder which will come in use for
development . The lib file contains folder Android , ios windows etc.
 As we are discussing here the android open the android folder . And
now our workspace is all set for the android app development .
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Now you open your eclipse IDE which you
Downloaded earlier in the folder
adt-bundle-linux-x86-20130219/Eclipse.
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Click on the new menu and select
Android Application Project. It will lead you to a new window. Fill
the &quot;Application name field &quot; with &quot;javacourseblog&quot;
and click next.&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/AVvXsEieYREarUvJ8Q8ad0ahatPNk-cNtG1CE-mTGUapmEb_c7SOycwYs22P4cH-d38PV5jBOY1QI1iHoCdU9iy8FpD1k2SsWSdveCBU4GBPqE3_fedzpZrosDDOszWycyQIg9K6jhRYdbWnDc0/s1600/Screenshot+from+2013-05-08+11:40:44.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieYREarUvJ8Q8ad0ahatPNk-cNtG1CE-mTGUapmEb_c7SOycwYs22P4cH-d38PV5jBOY1QI1iHoCdU9iy8FpD1k2SsWSdveCBU4GBPqE3_fedzpZrosDDOszWycyQIg9K6jhRYdbWnDc0/s320/Screenshot+from+2013-05-08+11:40:44.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;Keep clicking next until find the Activity name field
. Insert Javacourseblog there in Activity name and click finish.
&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/AVvXsEjcjxasaWwgeehloTYoOGdFJEoq5GDs3l_bH5NLTkOJXBPXcGWE-Z1vWgbatbuBsiviMS1pB5MkOEUTl5mbOSHJeuD06ZbJFE2cc7Q3P07-oB2efbCVPBI2nn9uwXFQEhfk6OUv8amulJ4/s1600/Screenshot+from+2013-05-08+11:43:06.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcjxasaWwgeehloTYoOGdFJEoq5GDs3l_bH5NLTkOJXBPXcGWE-Z1vWgbatbuBsiviMS1pB5MkOEUTl5mbOSHJeuD06ZbJFE2cc7Q3P07-oB2efbCVPBI2nn9uwXFQEhfk6OUv8amulJ4/s320/Screenshot+from+2013-05-08+11:43:06.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Your file system will look like this&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/AVvXsEjWV7OljUCEKedO_PIOf8tZVXBY-8kGG9pH2Q2FlGzKmCNe3UTTsXibnxr7ZFAJpdvve5mN3gfHN4yzwP8Vw04zPy9IkX9uX4uKYZz2WKvEKHGQwlhbVEaU2hT2tSo0upzbEaOj1hLfr90/s1600/Screenshot+from+2013-05-08+11:44:53.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWV7OljUCEKedO_PIOf8tZVXBY-8kGG9pH2Q2FlGzKmCNe3UTTsXibnxr7ZFAJpdvve5mN3gfHN4yzwP8Vw04zPy9IkX9uX4uKYZz2WKvEKHGQwlhbVEaU2hT2tSo0upzbEaOj1hLfr90/s320/Screenshot+from+2013-05-08+11:44:53.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Now find the asset folder under the
root folder of your project and create folder by name &quot;WWW&quot;.
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Now open the folder lib/android which
we downloaded earlier. 
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Copy the XML folder and paste it inside
the res folder in your eclipse ide .
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Now locate the cordova-2.7.0.jar file
inside the lib/android folder and copy it from there and paste it to
inside libs which is inside the root folder in eclipse IdE.
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
Now locate cordova-2.7.0.js file in the
lib/android folder and rename it to coredova.js . Then copy it to WWW
folder which you created earlier inside the asset folder in Eclipse
IDE.
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;
If everything is done your work space
is set to develop android app using phonegap and web technology .&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/924971802468066287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2013/05/How-to-Use-PhoneGap-on-Linux-Ubuntu-or-Android-Application-Development.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/924971802468066287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/924971802468066287'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2013/05/How-to-Use-PhoneGap-on-Linux-Ubuntu-or-Android-Application-Development.html' title='How to Use PhoneGap on Linux Ubuntu for Android Application Development ?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieYREarUvJ8Q8ad0ahatPNk-cNtG1CE-mTGUapmEb_c7SOycwYs22P4cH-d38PV5jBOY1QI1iHoCdU9iy8FpD1k2SsWSdveCBU4GBPqE3_fedzpZrosDDOszWycyQIg9K6jhRYdbWnDc0/s72-c/Screenshot+from+2013-05-08+11:40:44.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-1356852852462881306</id><published>2013-04-24T10:44:00.000-07:00</published><updated>2013-04-24T10:44:37.944-07:00</updated><title type='text'>getUserMedia Introduction With The simple Source Code</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
getUserMedia&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;has came
in web by Opera first . Opera called it &amp;lt;Device&amp;gt; which was used to get
access to the native hardware like camera and mic of the user pc .&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;device type=&quot;media&quot;
onchange=&quot;update(this.data)&quot;&amp;gt;&amp;lt;/device&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;video autoplay&amp;gt;&amp;lt;/video&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;script&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;function
update(stream) {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;document.querySelector(&#39;video&#39;).src = stream.url;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;}&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
This was the syntax of &amp;lt; device&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Soon after &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;the
&amp;lt;device&amp;gt; the WhatWG &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;decided to
bring a javascript api named navigator.getUserMedia() &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;. This API is the part of Web RTC which means
web real time communication.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
function getTheMedia() {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;// Note: Opera is
unprefixed.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;return
!!(navigator.mozGetUserMedia || navigator.webkitGetUserMedia ||&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&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;&lt;/span&gt; navigator.msGetUserMedia || navigator.getUserMedia) ;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
if (getTheMedia ()) {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;// its nice &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;to go!&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
} else {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;alert(&#39;your browser
is not getUserMedia()&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;enabled &#39;);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
}&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;The getUserMedia ask your permission for accessing your webcam and mic.&lt;/div&gt;
&lt;/blockquote&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/AVvXsEiHCgfykOnnX0CZ1SSgd4Bip6L4sFXWgX5Hsv8nScEdcHDTS-mzEaK82Hun5Es7yT0yT3pC6wIo8j8rqykDOUq_BL8TuTnAPW69dzm0mUVHD8xAphIwx4yj4pY9lSwlk24M5TtrLzDAU64/s1600/getUserMedia.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;88&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHCgfykOnnX0CZ1SSgd4Bip6L4sFXWgX5Hsv8nScEdcHDTS-mzEaK82Hun5Es7yT0yT3pC6wIo8j8rqykDOUq_BL8TuTnAPW69dzm0mUVHD8xAphIwx4yj4pY9lSwlk24M5TtrLzDAU64/s640/getUserMedia.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
The navigator.getUserMedia take the first parameter &lt;span style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: black; display: inline !important; float: none; font-family: monospace; font-size: x-small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;{audio: true, video: true} and then couple of optional call back .&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: black; display: inline !important; float: none; font-family: monospace; font-size: x-small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: black; display: inline !important; float: none; font-family: monospace; font-size: x-small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;so the syntax of navigator.getUserMedia look like this.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;code class=&quot;javascript&quot;&gt;navigator.getUserMedia({audio: &lt;span class=&quot;literal&quot;&gt;true&lt;/span&gt;, video: &lt;span class=&quot;literal&quot;&gt;true&lt;/span&gt;}, ifSuccessfull, ifError);

 &lt;span class=&quot;function&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;function&lt;/span&gt; &lt;/span&gt;&lt;/code&gt;&lt;code class=&quot;javascript&quot;&gt;ifSuccessfull&lt;/code&gt;&lt;code class=&quot;javascript&quot;&gt;&lt;span class=&quot;function&quot;&gt;&lt;span class=&quot;params&quot;&gt;(stream)&lt;/span&gt; {&lt;/span&gt;
  &lt;span class=&quot;comment&quot;&gt;// use the stream for further use ...&lt;/span&gt;
  }
 
  &lt;span class=&quot;function&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;title&quot;&gt;error&lt;/span&gt;&lt;span class=&quot;params&quot;&gt;()&lt;/span&gt;{&lt;/span&gt;
  &lt;span class=&quot;comment&quot;&gt;alert(&quot;your browser is not getUsermedia enabled&quot;)&lt;/span&gt;
  }&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&amp;nbsp;getUserMedia enable you to access the hardware like camera and mic without any plugin . After accessing the user media you need to add this to the &amp;lt;video&amp;gt; src .The code will look like the below.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:OfficeDocumentSettings&gt;
  &lt;o:AllowPNG/&gt;
 &lt;/o:OfficeDocumentSettings&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:EnableOpenTypeKerning/&gt;
   &lt;w:DontFlipMirrorIndents/&gt;
   &lt;w:OverrideTableStyleHps/&gt;
  &lt;/w:Compatibility&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;
   &lt;m:brkBin m:val=&quot;before&quot;/&gt;
   &lt;m:brkBinSub m:val=&quot;&amp;#45;-&quot;/&gt;
   &lt;m:smallFrac m:val=&quot;off&quot;/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val=&quot;0&quot;/&gt;
   &lt;m:rMargin m:val=&quot;0&quot;/&gt;
   &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;
   &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;
   &lt;m:intLim m:val=&quot;subSup&quot;/&gt;
   &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;267&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin-top:0in;
 mso-para-margin-right:0in;
 mso-para-margin-bottom:10.0pt;
 mso-para-margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;
 mso-bidi-font-family:&quot;Times New Roman&quot;;
 mso-bidi-theme-font:minor-bidi;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
function onFail(e) {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;video.src =
&#39;fallbackvideo.webm&#39;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
function onSuccess(stream) {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;video.src =
window.URL.createObjectURL(stream);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
if (!navigator.getUserMedia) {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;fallback();&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
} else {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;navigator.getUserMedia(&lt;/div&gt;
&lt;pre style=&quot;color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;code class=&quot;javascript&quot;&gt;{audio: &lt;span class=&quot;literal&quot;&gt;true&lt;/span&gt;, video: &lt;span class=&quot;literal&quot;&gt;true&lt;/span&gt;}&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
, onSuccess, onFail);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
}&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;Further you can add the css3 filter too it like you can rotate the video .And you can play with this Web Rtc API &lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://99mobileworld.com/take-your-picture-using-your-webcam-by-web-rtc/&quot; target=&quot;_blank&quot;&gt;Check The simple Demo here&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/1356852852462881306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2013/04/getUserMediaIntroductionWithThesimpleSourceCode.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/1356852852462881306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/1356852852462881306'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2013/04/getUserMediaIntroductionWithThesimpleSourceCode.html' title='getUserMedia Introduction With The simple Source Code'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHCgfykOnnX0CZ1SSgd4Bip6L4sFXWgX5Hsv8nScEdcHDTS-mzEaK82Hun5Es7yT0yT3pC6wIo8j8rqykDOUq_BL8TuTnAPW69dzm0mUVHD8xAphIwx4yj4pY9lSwlk24M5TtrLzDAU64/s72-c/getUserMedia.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-673837387057737207</id><published>2013-01-28T05:58:00.002-08:00</published><updated>2013-01-28T05:58:38.490-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>How To Use JavaScript With HTML 5</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
HTML 5 is definitely the future of the web. So one must
learn how to work on the JavaScript with Html 5.This article gives you the just
introduction how to use JavaScript in html 5.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
JavaScript moved a lot since Netscape livescript &amp;nbsp;. So the Html . As you all now traditional JavaScript
have the DOM selector getElementById , getElementsByTagname,getElementsByClassname.
The HTML 5 provide &amp;nbsp;javascript a new
function called queryselector .So what does this query Selector does ? Before
going into this lets see the syntax &amp;nbsp;of
this function.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
document.querrySelector(‘idname’);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Let’s see how its work?&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
If we have a HTML file like this.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;lt;div&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;lt;p id=’Australia’&amp;gt;Melbourne&amp;lt;/p&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;lt;p id=’US’&amp;gt;New York&amp;lt;/p&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;lt;p id=’Australia’&amp;gt;Sydney&amp;lt;/p&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
And now if you use function like document.querySelector(‘australia’).style.color
=’red’; in your JavaScript file it will change the color of only first element
with the id Australia to red. It means the Melbourne will turn into red and Sydney
will not any effect on it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
There&amp;nbsp; is one more
function&amp;nbsp; called document.querySelectorAll
. If you will use this function like document.querySelectorAll(‘Australia’).style.color
=’red’; it will turn all the elements associated with the Australia. It means it
will turn Melbourne as we Sydney into red.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/673837387057737207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2013/01/how-to-use-javascript-with-html-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/673837387057737207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/673837387057737207'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2013/01/how-to-use-javascript-with-html-5.html' title='How To Use JavaScript With HTML 5'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-1134866748720191834</id><published>2013-01-24T05:30:00.000-08:00</published><updated>2013-01-24T05:30:32.195-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css3"/><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>how to move a div using javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This tutorial is for how to move a DIV using java script . Here is the example &amp;nbsp;for moving a div by the help of javascript .&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
You have to make the div position Absolute for older browser . I made the ufo div position absolute for getting the div move using javascript &amp;nbsp;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;style&amp;gt;&lt;br /&gt;#ufo&lt;br /&gt;{&lt;br /&gt;position:absolute;}&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;script&amp;gt;&lt;br /&gt;function initial()&lt;br /&gt;{&lt;br /&gt;document.getElementById(&#39;ufo&#39;).style.left=200+&#39;px&#39;;&lt;br /&gt;document.getElementById(&#39;ufo&#39;).style.top=200+&#39;px&#39;;&lt;br /&gt;}&lt;br /&gt;function right(){&lt;br /&gt;document.getElementById(&#39;ufo&#39;).style.left=parseInt(document.getElementById(&#39;ufo&#39;).style.left)-5+&#39;px&#39;;&lt;br /&gt;}&lt;br /&gt;function left(){&lt;br /&gt;document.getElementById(&#39;ufo&#39;).style.left=parseInt(document.getElementById(&#39;ufo&#39;).style.left)+5+&#39;px&#39;;&lt;br /&gt;}&lt;br /&gt;function top(){&lt;br /&gt;document.getElementById(&#39;ufo&#39;).style.top=parseInt(document.getElementById(&#39;ufo&#39;).style.top)+5+&#39;px&#39;;&lt;br /&gt;}&lt;br /&gt;function down(){&lt;br /&gt;document.getElementById(&#39;ufo&#39;).style.top=parseInt(document.getElementById(&#39;ufo&#39;).style.top)-5+&#39;px&#39;;&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;main.css&quot;&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body onload=&quot;initial()&quot;&amp;gt;&lt;br /&gt;&amp;lt;div id = &quot;ufo&quot;&amp;gt;&lt;br /&gt;i am a moving dig. bring mouse over me fellas !!!! &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;button id=&quot;button&quot; onClick=&quot;right();&quot;&amp;gt;Press here to move left&amp;lt;/button&amp;gt;&lt;br /&gt;&amp;lt;button id=&quot;button&quot; onClick=&quot;left();&quot;&amp;gt;press here to move light&amp;lt;/button&amp;gt;&lt;br /&gt;&amp;lt;button id=&quot;button&quot; onClick=&quot;top();&quot;&amp;gt;press here to move down&amp;lt;/button&amp;gt;&lt;br /&gt;&amp;lt;button id=&quot;button&quot; onClick=&quot;down();&quot;&amp;gt;press here to move up&amp;lt;/button&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
If you wanna get animation using CSS3 in this . Here is the code for CSS3 make some animation .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
#ufo&lt;br /&gt;{&lt;br /&gt;position:absolute;&lt;br /&gt;display:block;&lt;br /&gt;margin:auto;&lt;br /&gt;text-align:center;&lt;br /&gt;width:100px;&lt;br /&gt;height:100px;&lt;br /&gt;border:1px solid blue;&lt;br /&gt;-webkit-transform:rotate(20deg);&lt;br /&gt;background:-webkit-linear-gradient(top,yellow,green);&lt;br /&gt;-webkit-border-radius:25px;&lt;br /&gt;-webkit-box-shadow:rgba(110,110,110,.4) -10px 10px 10px;&lt;br /&gt;text-shadow:rgba(110,110,110,.7) -1px 2px 3px;&lt;br /&gt;}&lt;br /&gt;#ufo:hover&lt;br /&gt;{&lt;br /&gt;width:200px;&lt;br /&gt;height:200px;&lt;br /&gt;-webkit-transform:rotate(70deg);&lt;br /&gt;}&lt;br /&gt;#button&lt;br /&gt;{&lt;br /&gt;height:30px;&lt;br /&gt;weight:100px;&lt;br /&gt;-webkit-transform:rotate(350deg);&lt;br /&gt;margin:auto;&lt;br /&gt;background:-webkit-linear-gradient(top,red,yellow);&lt;br /&gt;-webkit-border-radius:25px;&lt;br /&gt;-webkit-box-shadow:rgba(110,110,110,.4) -10px 10px 10px;&lt;br /&gt;}&amp;nbsp;&lt;/blockquote&gt;
&lt;br /&gt;
Any doubt any query related to &amp;nbsp;this comment bellow .&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/1134866748720191834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2013/01/how-to-move-div-using-javascript.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/1134866748720191834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/1134866748720191834'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2013/01/how-to-move-div-using-javascript.html' title='how to move a div using javascript'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-7888382353880446986</id><published>2013-01-18T03:13:00.003-08:00</published><updated>2013-01-18T03:28:03.258-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>Introduction of JavaScript: </title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Many people think java and JavaScript are little different
.or the JavaScript is the subset of java. JavaScript is the very different from
the java. The JavaScript is the world most misunderstood language. And at the same
time you can say JavaScript is most popular computer language of the world. JavaScript
is a object oriented language .Initially many thought and said about JavaScript
it is not object oriented language it is object based language. &amp;nbsp;JavaScript have objects and it does not have
classes like java. JavaScript is more object oriented than java . In JavaScript
Objects are more dynamic .Objects are instance of a class in java .Class have
more property and behavior in Java .In JavaScript objects are Dynamic
collection property. If we have two property of the same name the new property
will replace the new name which is more dynamic .The JavaScript have Object
literal which creates new objects. As I said before JavaScript is a object oriented
language .We will see all the JavaScript object oriented property in future .At
the same time JavaScript is a functional language . So we will discuss all
about JavaScript here in the JavaCourseBlog&lt;a href=&quot;http://javacourseblog.blogspot.in/&quot;&gt;http://javacourseblog.blogspot.in/&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/7888382353880446986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2013/01/introduction-of-javascript.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/7888382353880446986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/7888382353880446986'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2013/01/introduction-of-javascript.html' title='Introduction of JavaScript: '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09186476697898476634</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-4320443111387173031</id><published>2012-12-16T00:44:00.000-08:00</published><updated>2012-12-16T00:44:03.579-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php errors"/><title type='text'>All Php  Error Types</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Php error Types&lt;/b&gt; :&lt;br /&gt;
There are three main type of php errors .The Php error are listed below .&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Notice&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Warning&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Fatal Error&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Notice &lt;/b&gt;: This php error does&#39;t appear on the front end of the website . This appear only on the back end . And does not stop the php script from executing .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Warning :&lt;/b&gt; This Php error type is also same as the Notice , does not appear on the front end . This Type of Php error is only on back end . This normally appear when the include file not exist .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Fatal error &lt;/b&gt;: This php error type come in picture ,when the php script is wrong like some syntex error . This fatal error appear on the front end and stops the complete error from executing .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;All php Error Types &amp;nbsp;:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;E_ERROR&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;E_WARNING&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;E_PARSE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;E_NOTICE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;E_CORE_ERROR&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;E_CORE_WARNING&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;E_COMPILE_ERROR&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;E_USER_ERROR&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;E_USER_WARNING&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;E_USER_NOTIC&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;E_STRICT&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;E_RECOVERABLE_ERROR&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;E_ALL&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/4320443111387173031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2012/12/all-php-error-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/4320443111387173031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/4320443111387173031'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2012/12/all-php-error-types.html' title='All Php  Error Types'/><author><name>ashish</name><uri>http://www.blogger.com/profile/01192898986031634820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-7903046396456418254</id><published>2012-11-20T00:32:00.001-08:00</published><updated>2012-11-30T01:19:45.219-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jdbc"/><title type='text'>Connection between JDBC Driver And MySQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This article of java course is explaining &amp;nbsp;the connection between JDBC driver and MySQL in java.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;1. &lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: large;&quot;&gt;&lt;b&gt;First step is downloading of Mysql JDBC driver&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;a href=&quot;http://dev.mysql.com/downloads/connector/j/5.1.html&quot; target=&quot;_blank&quot;&gt;Download jdbc mysql driver by clicking here&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;2.&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: large;&quot;&gt;&lt;b&gt;Here is the code to connect JDBC to MySQL&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;java&quot; style=&quot;background-color: #f7f7f9; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(209, 209, 232); color: #333333; font-size: 13px; line-height: 1.5; margin-bottom: 20px; overflow-x: auto; padding: 10px;&quot;&gt; &amp;nbsp;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-weight: bold; line-height: 1.5;&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #006633; line-height: 1.5;&quot;&gt;forName&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #009900; line-height: 1.5;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: blue; line-height: 1.5;&quot;&gt;&quot;com.mysql.jdbc.Driver&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #009900; line-height: 1.5;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #339933; line-height: 1.5;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;java&quot; style=&quot;background-color: #f7f7f9; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(209, 209, 232); color: #333333; font-size: 13px; line-height: 1.5; margin-bottom: 20px; overflow-x: auto; padding: 10px;&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;Connection&lt;/span&gt; connection &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;java&quot; style=&quot;background-color: #f7f7f9; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(209, 209, 232); font-size: 13px; line-height: 1.5; margin-bottom: 20px; overflow-x: auto; padding: 10px;&quot;&gt;  connection &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #003399;&quot;&gt;DriverManager&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #006633;&quot;&gt;getConnection&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;
          &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;jdbc:mysql://hostname:port/dbname&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;username&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;password&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;java&quot; style=&quot;background-color: #f7f7f9; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(209, 209, 232); font-size: 13px; line-height: 1.5; margin-bottom: 20px; overflow-x: auto; padding: 10px;&quot;&gt;  connection.&lt;span style=&quot;color: #006633;&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;3 . &lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: large;&quot;&gt;&lt;b&gt;Lets see the example of connection between JDBC and MySQL&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;java&quot; style=&quot;background-color: #f7f7f9; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(209, 209, 232); color: #333333; font-size: 13px; line-height: 1.5; margin-bottom: 20px; overflow-x: auto; padding: 10px;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;package&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;com.javacourseblog.common&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;java.sql.DriverManager&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;java.sql.Connection&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;java.sql.SQLException&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;class&lt;/span&gt; JDBCchecking &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;
&amp;nbsp;
 &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;void&lt;/span&gt; main&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt; argv&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;
&amp;nbsp;
  &lt;span style=&quot;color: #003399;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&quot;:::::::::::::::::&lt;/span&gt;&lt;span style=&quot;color: blue; line-height: 1.5;&quot;&gt; Connectining &lt;/span&gt;&lt;span style=&quot;color: blue; line-height: 1.5;&quot;&gt;MySQL with JDBC :::::::::::::::::::::::::::&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900; line-height: 1.5;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933; line-height: 1.5;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;java&quot; style=&quot;background-color: #f7f7f9; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(209, 209, 232); color: #333333; font-size: 13px; line-height: 1.5; margin-bottom: 20px; overflow-x: auto; padding: 10px;&quot;&gt;&amp;nbsp;
  &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;
&amp;nbsp;
   &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;Class&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;forName&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;com.mysql.jdbc.Driver&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
  &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #003399;&quot;&gt;ClassNotFoundException&lt;/span&gt; e&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;
&amp;nbsp;
   &lt;span style=&quot;color: #003399;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Find out the MySQL JDBC Driver ..?????????????????????????&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
   e.&lt;span style=&quot;color: #006633;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
  &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
  &lt;span style=&quot;color: #003399;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;MySQL JDBC Driver Registered!&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #003399;&quot;&gt;Connection&lt;/span&gt; connection &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
  &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;
   connection &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #003399;&quot;&gt;DriverManager&lt;/span&gt;
     .&lt;span style=&quot;color: #006633;&quot;&gt;getConnection&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;jdbc:mysql://localhost:3600/javacourseblog&quot;&lt;/span&gt;,
       &lt;span style=&quot;color: blue;&quot;&gt;&quot;root&quot;&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;&quot;password&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
  &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #003399;&quot;&gt;SQLException&lt;/span&gt; e&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: #003399;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Your Connection is not working !!!!!!!!!!!!!!!!!!!!!!!!!&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
   e.&lt;span style=&quot;color: #006633;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;
&amp;nbsp;
  &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;connection &lt;span style=&quot;color: #339933;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: #003399;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;You have connected your JDBC to the MySQL . now you can work on your Database &quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: #003399;&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Sorry Dear you could not make connection. Try again !!!!!!!&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;pre class=&quot;java&quot; style=&quot;background-color: #f7f7f9; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(209, 209, 232); margin-bottom: 20px; overflow-x: auto; padding: 10px; text-align: left;&quot;&gt;

&lt;/pre&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;4. &lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: large;&quot;&gt;&lt;b&gt;Now its time to execute the program &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; . &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.................&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #3c3c3c; font-family: Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 20px;&quot;&gt;
Imagine &amp;nbsp;&lt;code style=&quot;background-color: #f7f7f9; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(225, 225, 232); color: #0f3b68; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; padding: 4px;&quot;&gt;JDBCchecking.java&lt;/code&gt;&amp;nbsp;is saved inside the folder&amp;nbsp;&amp;nbsp;&lt;code style=&quot;background-color: #f7f7f9; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(225, 225, 232); color: #0f3b68; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; padding: 4px;&quot;&gt;c:\java&lt;/code&gt;&amp;nbsp;folder, and the MySQL JDBC driver is also stored inside the&amp;nbsp;&amp;nbsp;&lt;code style=&quot;background-color: #f7f7f9; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(225, 225, 232); color: #0f3b68; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; padding: 4px;&quot;&gt;c:\java&lt;/code&gt;&amp;nbsp;...............................................&lt;/div&gt;
&lt;div class=&quot;wp_syntax&quot; style=&quot;background-color: white;&quot;&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre class=&quot;bash&quot; style=&quot;background-color: #f7f7f9; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(209, 209, 232); margin-bottom: 20px; overflow-x: auto; padding: 10px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5;&quot;&gt;C:\&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 1.5;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5;&quot;&gt;java &lt;/span&gt;&lt;span style=&quot;color: #660033; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5;&quot;&gt;-cp&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5;&quot;&gt; c:\&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5;&quot;&gt;&lt;b&gt;java&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5;&quot;&gt;\mysql-connector-java-5.1.8-bin.jar;c:\&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5;&quot;&gt;&lt;b&gt;java&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5;&quot;&gt; JDBCchecking
&lt;/span&gt;&lt;pre class=&quot;java&quot; style=&quot;border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(209, 209, 232); color: #333333; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5; margin-bottom: 20px; overflow-x: auto; padding: 10px;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;:::::::::::::::::&lt;/span&gt;&lt;span style=&quot;color: blue; line-height: 1.5;&quot;&gt; Connectining &lt;/span&gt;&lt;span style=&quot;color: blue; line-height: 1.5;&quot;&gt;MySQL with JDBC :::::::::::::::::::::::::::&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5;&quot;&gt;
MySQL JDBC Driver Registered&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 1.5;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5;&quot;&gt;
&lt;/span&gt;&lt;pre class=&quot;java&quot; style=&quot;border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(209, 209, 232); color: #333333; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5; margin-bottom: 20px; overflow-x: auto; padding: 10px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;You have connected your JDBC to the MySQL . now you can work on your Database&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;This is how we execute the java program of &lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Connection between JDBC Driver And&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Trebuchet MS&#39;, sans-serif; line-height: 19px;&quot;&gt;    MySQL&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;bash&quot; style=&quot;background-color: #f7f7f9; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(209, 209, 232); margin-bottom: 20px; overflow-x: auto; padding: 10px;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 1.5;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;
C:\&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 1.5;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #3c3c3c; font-family: Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 20px;&quot;&gt;
Well guys You are done with the connection of JDBC And MySQL&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/7903046396456418254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2012/11/connection-between-jdbc-driver-and-mysql.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/7903046396456418254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/7903046396456418254'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2012/11/connection-between-jdbc-driver-and-mysql.html' title='Connection between JDBC Driver And MySQL'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06729630137035173743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9161413729669890337.post-317326314289121949</id><published>2012-11-19T02:16:00.001-08:00</published><updated>2012-11-30T01:49:04.498-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="swing"/><title type='text'>java swing introduction</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 id=&quot;PageTitle&quot; style=&quot;color: #f90000; margin: 0px 5px 0.5em 0px;&quot;&gt;
&lt;h1 style=&quot;font-family: sans-serif; font-size: 20px;&quot;&gt;
JFC and Swing&lt;/h1&gt;
&lt;/div&gt;
&lt;div id=&quot;PageContent&quot; style=&quot;margin: 0px 5px 0px 20px;&quot;&gt;
JFC is used for the Java Foundation Classes, which provides many features which helps in making graphical user interfaces (GUIs) and in making Java applications more graphically powerfull.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;color: #f90000; font-family: sans-serif; font-size: 17px;&quot;&gt;
Swing Packages :&lt;/h2&gt;
&lt;div&gt;
Swing API is one of the most powerful API of the java . The flexibility of the swing API make it very broad. The&amp;nbsp;18 public package forms&amp;nbsp; swing API of the java .Sometimes its very tough to remember these all 18 public package .But as the name of the all packages are same with small difference so a small effort will help you to memorize these all 18 public package . So here is the list :&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;2&quot; style=&quot;color: black; text-align: start; width: 100%px;&quot; summary=&quot;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width=&quot;172&quot;&gt;&lt;code&gt;javax.accessibility&lt;/code&gt;&lt;/td&gt;&lt;td width=&quot;150&quot;&gt;&lt;code&gt;javax.swing.plaf&lt;/code&gt;&lt;/td&gt;&lt;td width=&quot;157&quot;&gt;&lt;code&gt;javax.swing.text&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td width=&quot;172&quot;&gt;&lt;code&gt;javax.swing&lt;/code&gt;&lt;/td&gt;&lt;td width=&quot;150&quot;&gt;&lt;code&gt;javax.swing.plaf.basic&lt;/code&gt;&lt;/td&gt;&lt;td width=&quot;157&quot;&gt;&lt;code&gt;javax.swing.text.html&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td width=&quot;172&quot;&gt;&lt;code&gt;javax.swing.border&lt;/code&gt;&lt;/td&gt;&lt;td width=&quot;150&quot;&gt;&lt;code&gt;javax.swing.plaf.metal&lt;/code&gt;&lt;/td&gt;&lt;td width=&quot;157&quot;&gt;&lt;code&gt;javax.swing.text.html.parser&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td width=&quot;172&quot;&gt;&lt;code&gt;javax.swing.colorchooser&lt;/code&gt;&lt;/td&gt;&lt;td width=&quot;150&quot;&gt;&lt;code&gt;javax.swing.plaf.multi&lt;/code&gt;&lt;/td&gt;&lt;td width=&quot;157&quot;&gt;&lt;code&gt;javax.swing.text.rtf&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td width=&quot;172&quot;&gt;&lt;code&gt;javax.swing.event&lt;/code&gt;&lt;/td&gt;&lt;td width=&quot;150&quot;&gt;&lt;code&gt;javax.swing.plaf.synth&lt;/code&gt;&lt;/td&gt;&lt;td width=&quot;157&quot;&gt;&lt;code&gt;javax.swing.tree&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td width=&quot;172&quot;&gt;&lt;code&gt;javax.swing.filechooser&lt;/code&gt;&lt;/td&gt;&lt;td width=&quot;150&quot;&gt;&lt;code&gt;javax.swing.table&lt;/code&gt;&lt;/td&gt;&lt;td width=&quot;157&quot;&gt;&lt;code&gt;javax.swing.undo&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;/div&gt;
Luckily maximum java program &amp;nbsp;uses only few subset of these packages .Maximum program use these two package&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;javax.swing&lt;/li&gt;
&lt;li&gt;&lt;code&gt;javax.swing.event&lt;/code&gt;&amp;nbsp;(not necessary)&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javacourseblog.blogspot.com/feeds/317326314289121949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacourseblog.blogspot.com/2012/11/java-swing-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/317326314289121949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9161413729669890337/posts/default/317326314289121949'/><link rel='alternate' type='text/html' href='http://javacourseblog.blogspot.com/2012/11/java-swing-introduction.html' title='java swing introduction'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06729630137035173743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>