<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-5865907911743884519</atom:id><lastBuildDate>Mon, 30 Jan 2012 23:50:50 +0000</lastBuildDate><category>visual studio</category><category>windows</category><category>jquery</category><category>asp.net</category><category>javascript</category><category>mysql</category><category>ms sql server</category><category>software</category><category>technology news</category><category>php</category><title>Programming Tutorials</title><description> </description><link>http://nice-tutorials.blogspot.com/</link><managingEditor>noreply@blogger.com (Adeel Fakhar)</managingEditor><generator>Blogger</generator><openSearch:totalResults>235</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/nicetutorials" /><feedburner:info uri="nicetutorials" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>nicetutorials</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-4781100121947379538</guid><pubDate>Tue, 18 Oct 2011 17:34:00 +0000</pubDate><atom:updated>2011-10-18T10:34:40.832-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>Uppercase and lowercase strings using jquery</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana, sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to &lt;strong&gt;convert strings in uppercase and lowercase using jquery&lt;/strong&gt;. It is not a difficult task in jquery. Jquery has two built-in functions for handling these two cases. Those two functions are &lt;strong&gt;.toUpperCase()&lt;/strong&gt; and &lt;strong&gt;.toLowerCase()&lt;/strong&gt;. Let's have a look over the example given below that demonstrates how to do so. &lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana, sans-serif; font-size: small;"&gt;
&lt;strong&gt;Convert string in uppercase &lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;var name="Adeel Fakhar";//Very simple
var nameUpperCase=name.toUpperCase(); 
&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output&lt;/u&gt;&lt;br /&gt;
ADEEL FAKHAR&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Convert string in lowercase&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;var name="Adeel Fakhar";
var nameLowerCase=name.toLowerCase(); //Very simple
&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output&lt;/u&gt;&lt;br /&gt;
adeel fakhar&lt;br /&gt;
&lt;br /&gt;
So that's it. I hope you will find this tutorial very useful.&lt;br /&gt;
&lt;br /&gt;
Stay tuned with nice-tutorials.blogspot.com for bundle of jquery tutorials.&lt;br /&gt;
&lt;br /&gt;
I love your feedback. &lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-4781100121947379538?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NzmVS2rKWdmRpycI53az0syKWnk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NzmVS2rKWdmRpycI53az0syKWnk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NzmVS2rKWdmRpycI53az0syKWnk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NzmVS2rKWdmRpycI53az0syKWnk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=SP4010ZX1S4:uowslrNdTAU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=SP4010ZX1S4:uowslrNdTAU:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=SP4010ZX1S4:uowslrNdTAU:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=SP4010ZX1S4:uowslrNdTAU:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=SP4010ZX1S4:uowslrNdTAU:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=SP4010ZX1S4:uowslrNdTAU:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=SP4010ZX1S4:uowslrNdTAU:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=SP4010ZX1S4:uowslrNdTAU:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=SP4010ZX1S4:uowslrNdTAU:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=SP4010ZX1S4:uowslrNdTAU:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=SP4010ZX1S4:uowslrNdTAU:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=SP4010ZX1S4:uowslrNdTAU:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=SP4010ZX1S4:uowslrNdTAU:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/SP4010ZX1S4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/SP4010ZX1S4/uppercase-and-lowercase-strings-using.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/10/uppercase-and-lowercase-strings-using.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-8247244190087818993</guid><pubDate>Tue, 18 Oct 2011 17:00:00 +0000</pubDate><atom:updated>2011-10-18T10:17:43.423-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>Add new item in dropdown using jquery</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana, sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to &lt;strong&gt;add new item in dropdown using jquery&lt;/strong&gt;. It is quite easy in jquery. Let's have a look over the code snippet given below in which i will add a new country in dropdown when button is clicked. &lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana, sans-serif; font-size: small;"&gt;
&lt;strong&gt;Add new item in dropdown using jquery&lt;/strong&gt;&lt;br /&gt;
&lt;u&gt;before&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-zn3BHjY2a_U/Tp2syCnt95I/AAAAAAAAAUc/nEM-wD3MEwo/s1600/add-new-item-1.JPG" imageanchor="1"&gt;&lt;img border="0" height="109" src="http://1.bp.blogspot.com/-zn3BHjY2a_U/Tp2syCnt95I/AAAAAAAAAUc/nEM-wD3MEwo/s320/add-new-item-1.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;u&gt;After&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-bjt3lSG71xg/Tp2tVQs0KAI/AAAAAAAAAU0/22Lee6iEwQc/s1600/add-new-item-2.JPG" imageanchor="1"&gt;&lt;img border="0" height="126" src="http://1.bp.blogspot.com/-bjt3lSG71xg/Tp2tVQs0KAI/AAAAAAAAAU0/22Lee6iEwQc/s320/add-new-item-2.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre class="html" name="code"&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;Add new item in dropdown using jQuery&amp;lt;/title&amp;gt;
    &amp;lt;script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.2.min.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script type="text/javascript"&amp;gt;
        $(function () {
            $("#btnClick").click(function () {
                var newCountry = $("#txtItem").val();
                if (newCountry.length &amp;gt; 0)
                    {
                    $("#ddlCountry").append($("&amp;lt;option&amp;gt;").val(newCountry).text(newCountry));
                    $("#txtItem").val("");
                   }
            });
        });
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div style="font-family:verdana;font-size:12px;"&amp;gt;
   New Country: &amp;lt;input type="text" id="txtItem" /&amp;gt;
 Country:&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;
 &amp;lt;select id="ddlCountry"&amp;gt;
 &amp;lt;option value="Pakistan"&amp;gt;Pakistan&amp;lt;/option&amp;gt;
 &amp;lt;option value="China"&amp;gt;China&amp;lt;/option&amp;gt;
 &amp;lt;option value="United States"&amp;gt;United States&amp;lt;/option&amp;gt;
 &amp;lt;/select&amp;gt;
        &amp;lt;input id="btnClick" type="button" value=" Add Country " /&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
In this above mentioned example, i have a textbox, a dropdown and a button in my page. Country dropdown by default contains three countries which are Pakistan, China and United States. Now for adding new country such as Australia or india, i have written a code in &lt;strong&gt;document.ready()&lt;/strong&gt;, that will execute when button's click event will be fired.&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$("#ddlCountry").append($("&amp;lt;option&amp;gt;").val(newCountry).text(newCountry));
&lt;/pre&gt;
The above mentioned code snippet will dynamically add new item or in this example we can say new country to the dropdown using &lt;strong&gt;append()&lt;/strong&gt; function of jquery, which is a built-in function in jquery.&lt;br /&gt;
&lt;br /&gt;
So that's it. This is the way to add new item or element in dropdown using jquery. &lt;br /&gt;
I love your feedback.&lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-8247244190087818993?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FzSRKCvlvPkI0dap2MBKacEWfcs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FzSRKCvlvPkI0dap2MBKacEWfcs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/FzSRKCvlvPkI0dap2MBKacEWfcs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FzSRKCvlvPkI0dap2MBKacEWfcs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=KnI6LhVKvm4:YKfYuSjgcog:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=KnI6LhVKvm4:YKfYuSjgcog:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=KnI6LhVKvm4:YKfYuSjgcog:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=KnI6LhVKvm4:YKfYuSjgcog:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=KnI6LhVKvm4:YKfYuSjgcog:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=KnI6LhVKvm4:YKfYuSjgcog:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=KnI6LhVKvm4:YKfYuSjgcog:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=KnI6LhVKvm4:YKfYuSjgcog:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=KnI6LhVKvm4:YKfYuSjgcog:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=KnI6LhVKvm4:YKfYuSjgcog:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=KnI6LhVKvm4:YKfYuSjgcog:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=KnI6LhVKvm4:YKfYuSjgcog:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=KnI6LhVKvm4:YKfYuSjgcog:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/KnI6LhVKvm4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/KnI6LhVKvm4/add-new-item-in-dropdown-using-jquery.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-zn3BHjY2a_U/Tp2syCnt95I/AAAAAAAAAUc/nEM-wD3MEwo/s72-c/add-new-item-1.JPG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/10/add-new-item-in-dropdown-using-jquery.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-7467221558660980970</guid><pubDate>Mon, 17 Oct 2011 17:36:00 +0000</pubDate><atom:updated>2011-10-17T10:47:43.858-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">php</category><title>Install php on windows server 2008 R2</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana, sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to &lt;strong&gt;install php on windows server 2008 R2&lt;/strong&gt;. Couple of weeks ago one of my&amp;nbsp;colleague&amp;nbsp;asked me to install php on windows server 2008 R2 as he had to deploy a website and I have done it successfully without any problem. Let’s have a look over how to accomplish our task.
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana, sans-serif; font-size: small;"&gt;
Simply go to this tutorial &lt;a href="http://nice-tutorials.blogspot.com/2011/07/installing-php-on-windows-7-with-iis-7.html"&gt;Install PHP on Windows 7 with IIS 7 via FastCGI&lt;/a&gt; and that's it. You just have to repeat the steps that you have performed on Windows 7 in order to accomplish this task.
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Note:-&lt;/strong&gt;&lt;br /&gt;
Depending on your location you can set a specific &lt;strong&gt;date.timezone&lt;/strong&gt; value by setting the date.timezone property in php.ini file:&lt;br /&gt;
&lt;strong&gt;date.timezone = "US/Central"
&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Don't forget to uncomment the date.timezone by removing its&amp;nbsp;preceding&amp;nbsp;semicolon.&lt;br /&gt;
&lt;br /&gt;
So that's it.
&lt;br /&gt;
Your feedback gives me energy.&lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-7467221558660980970?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/9SSqkbqhSwARaZY40-mG8pgd8Sg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9SSqkbqhSwARaZY40-mG8pgd8Sg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/9SSqkbqhSwARaZY40-mG8pgd8Sg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9SSqkbqhSwARaZY40-mG8pgd8Sg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=UY_4sVqV4Ew:m5BQppGVx6Y:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=UY_4sVqV4Ew:m5BQppGVx6Y:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=UY_4sVqV4Ew:m5BQppGVx6Y:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=UY_4sVqV4Ew:m5BQppGVx6Y:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=UY_4sVqV4Ew:m5BQppGVx6Y:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=UY_4sVqV4Ew:m5BQppGVx6Y:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=UY_4sVqV4Ew:m5BQppGVx6Y:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=UY_4sVqV4Ew:m5BQppGVx6Y:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=UY_4sVqV4Ew:m5BQppGVx6Y:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=UY_4sVqV4Ew:m5BQppGVx6Y:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=UY_4sVqV4Ew:m5BQppGVx6Y:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=UY_4sVqV4Ew:m5BQppGVx6Y:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=UY_4sVqV4Ew:m5BQppGVx6Y:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/UY_4sVqV4Ew" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/UY_4sVqV4Ew/install-php-on-windows-server-2008-r2.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/10/install-php-on-windows-server-2008-r2.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-390020963939102377</guid><pubDate>Mon, 17 Oct 2011 16:46:00 +0000</pubDate><atom:updated>2011-10-17T09:46:47.175-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>Learn jquery from beginners to advanced level - part 3 (Final Part)</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
Finally I am writing the third and last tutorial of this tutorial series. Again I am saying if you are new visitor and haven't read my first two tutorial of this series then please read those tutorials first. Click to &lt;a href="http://nice-tutorials.blogspot.com/2011/08/learn-jquery-from-beginners-to-advanced.html"&gt;read Part 1&lt;/a&gt; and click to &lt;a href="http://nice-tutorials.blogspot.com/2011/10/learn-jquery-from-beginners-to-advanced.html"&gt;read Part 2&lt;/a&gt;. One thing I want to ensure you is that if you read and understand all of these three tutorials then you can say yourself the expert of jquery, and you can do any task in jquery with minimum effort.  Ok. Now let's start right from there, where we were.
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;strong&gt;&lt;u&gt;Events&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;When the DOM is ready…&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$(document).ready(function(){
 //Your code will come here
});
&lt;/pre&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Fires when the document is ready for programming. &lt;/li&gt;
&lt;li&gt;Uses advanced listeners for detecting.&lt;/li&gt;
&lt;li&gt;window.onload() is a fallback.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;strong&gt;Attach Event&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// execute always
$("div").bind("click", fn);
// execute only once
$("div").one("click", fn);
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Possible event values:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
blur, focus, load, resize, scroll, unload, beforeunload, click, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, error
(or any custom event)&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;jQuery.Event object&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Detaching Events&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$("div").unbind("click", fn);&lt;/pre&gt;
&lt;br /&gt;
(Unique ID added to every attached function)&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Events Triggering&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$("div").trigger("click");&lt;/pre&gt;
&lt;br /&gt;
Triggers browser’s event action as well. Can trigger custom events. Triggered events bubble up.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Events Helpers&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// attach / trigger
elem.blur(fn) / elem.blur()
elem.focus(fn) / elem.focus()
elem.click(fn) / elem.click()
elem.change(fn) / elem.change()&lt;/pre&gt;
&lt;br /&gt;
And many others…&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Preventing Browser Default Action&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// use different triggering function
$("div").triggerHandler("click");

// prevent default action in handler
function clickHandler(e) {
 e.preventDefault();
}

// or just return false
function clickHandler(e) {return false;}

Preventing Bubbling
// stop bubbling, keep other handler
function clickHandler(e) {
 e.stopPropagation();
}

// stop bubbling and other handlers
function clickHandler(e) {
 e.stopImmediatePropagation();
}

// or just return false
function clickHandler(e) {return false;}
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Live Events (Attach events to dynamically created elements)&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// attach live event
("div").live("click", fn);
// detach live event
("div").die("click", fn);
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Currently supported events:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
click, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, keydown, keypress, keyup &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;Effects&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Showing or Hiding Element&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// just show
$("div").show();
// reveal slowly, slow=600ms
$("div").show("slow");
// hide fast, fast=200ms
$("div").hide("fast");
// hide or show in 100ms $(“div”).toggle(100);
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Sliding Elements&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$("div").slideUp();
$("div").slideDown("fast");
$("div").slideToggle(1000);&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Fading Elements&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$("div").fadeIn("fast");
$("div").fadeOut("normal");
// fade to a custom opacity
$("div").fadeTo ("fast", 0.5);
&lt;/pre&gt;
&lt;br /&gt;
Fading === changing opacity&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Detecting animation completion&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$("div").hide("slow", function() {
  alert("The DIV is hidden");
});

$("div").show("fast", function() {
  $(this).html("Hello jQuery");
}); // this is a current DOM element 
&lt;/pre&gt;
&lt;br /&gt;
Every effect function has a (speed, callback) overload&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Custom Animation&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// .animate(options, duration)
$("div").animate({
    width: "90%",
    opacity: 0.5,
    borderWidth: "5px"
     }, 1000);
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Chaining Animation&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$("div").animate({width: "90%"},100)
  .animate({opacity: 0.5},200)
  .animate({borderWidth: "5px"});
&lt;/pre&gt;
&lt;br /&gt;
By default animations are queued and than performed one by one&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Controlling Animations Sync&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$("div")
 .animate({width: "90%"},
      {queue:false, duration:1000})
 .animate({opacity : 0.5});&lt;/pre&gt;
&lt;br /&gt;
The first animation will be performed immediately without queuing&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;AJAX with jQuery&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Loading content&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$("div").load("content.htm");
// passing parameters
$("#content").load("getcontent.aspx",
     {"id":"33","type":"main"});
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Sending GET/POST requests&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$.get("test.aspx", {id:1},
  function(data){alert(data);});

$.post("test.aspx", {id:1},
  function(data){alert(data);});&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Retrieving JSON Data&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$.getJSON("users.aspx", {id:1},
  function(users)
  {
   alert(users[0].name);
  });
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Retrieving JS Files&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$.getScript("script.js",
  function()
  {
   doSomeFunction();
  });
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;Extending the Library&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt; Adding Methods&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// definition
jQuery.fn.printLine = function(s) {
 return jQuery(this).each(function() {   this.append("&amp;lt;div&amp;gt;"+ s +"&amp;lt;/div&amp;gt;");
 });
};
// usage
$("#log").printLine("Hello");&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Closure to solve the $ issue&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;(function ($) {
  jQuery.fn.printLine = function(s) {
 return $(this).each(function() {    this.append("&amp;lt;div&amp;gt;"+ s +"&amp;lt;/div&amp;gt;");
 });
};
})(jQuery);&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Custom Selectors&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$.expr[‘:’].test = function(o, i, m, s) {
// o – current object in the selection
// i – loop index in the stack
// m – meta data about your selector
// s – stack of all the elements
// return true to include the element
// return false to exclude the element
};
&lt;/pre&gt;&lt;br/&gt;

So that's it. I tried my level best to teach you jquery from beginners to advanced level in this series of tutorials. Now  just you have to practice more and more to get a grip on jquery. &lt;br/&gt;&lt;br/&gt;

I love your feedback.
&lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-390020963939102377?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GSNklRzKUPfMXep8x2J5n0m-z5w/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GSNklRzKUPfMXep8x2J5n0m-z5w/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GSNklRzKUPfMXep8x2J5n0m-z5w/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GSNklRzKUPfMXep8x2J5n0m-z5w/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=bFRaM13AIr0:d7zwP9aRhxE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=bFRaM13AIr0:d7zwP9aRhxE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=bFRaM13AIr0:d7zwP9aRhxE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=bFRaM13AIr0:d7zwP9aRhxE:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=bFRaM13AIr0:d7zwP9aRhxE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=bFRaM13AIr0:d7zwP9aRhxE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=bFRaM13AIr0:d7zwP9aRhxE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=bFRaM13AIr0:d7zwP9aRhxE:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=bFRaM13AIr0:d7zwP9aRhxE:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=bFRaM13AIr0:d7zwP9aRhxE:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=bFRaM13AIr0:d7zwP9aRhxE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=bFRaM13AIr0:d7zwP9aRhxE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=bFRaM13AIr0:d7zwP9aRhxE:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/bFRaM13AIr0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/bFRaM13AIr0/learn-jquery-from-beginners-to-advanced_17.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/10/learn-jquery-from-beginners-to-advanced_17.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-5446054039461151098</guid><pubDate>Wed, 12 Oct 2011 04:19:00 +0000</pubDate><atom:updated>2011-10-11T21:27:08.782-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>Learn jquery from beginners to advanced level - part 2</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn jquery from beginners to advanced level. If you are new visitor and haven't read my first tutorial of this series then first please read the tutorial &lt;a href="http://nice-tutorials.blogspot.com/2011/08/learn-jquery-from-beginners-to-advanced.html"&gt;Learn jquery from beginners to advanced level - part 1&lt;/a&gt;. Ok. Now let's start right from there, where we were.
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;strong&gt;&lt;u&gt;Selectors demo&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Document Traversal&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
A Selector returns a pseudo array of jQuery objects&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$(“div”).length&lt;/pre&gt;
&lt;br /&gt;
Returns number of selected elements. It is the best way to check selector.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Getting a specific DOM element&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="js" name="code"&gt; $(“div”).get(2) or $(“div”)[2]&lt;/pre&gt;
&lt;br /&gt;
Returns a 2nd DOM element of the selection&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Getting a specific jQuery element&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$(“div”).eq(2)&lt;/pre&gt;
&lt;br /&gt;
Returns a 2nd jQuery element of the selection&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;each(fn) traverses every selected element calling fn()&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;var sum = 0;
$(“div.number”).each(
		function(){
		  sum += (+this.innerHTML);
		});
&lt;/pre&gt;
&lt;br /&gt;
this – is a current DOM element&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;each(fn) also passes an indexer &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$(“table tr”).each(
	function(i){
		if (i % 2) 
			$(this).addClass(“odd”);
	});
&lt;/pre&gt;
&lt;br /&gt;
$(this) – convert DOM to jQuery i  - index of the current element&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Traversing HTML&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;.next(expr) 	// next sibling

.prev(expr)		// previous sibling

.siblings(expr)	// siblings

.children(expr) // children

.parent(expr) 	// parent
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Check for expression&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$(“table td”).each(function() {
	if ($(this).is(“:first-child”)) {
		$(this).addClass(“firstCol”);
	}
}); 
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Find in selected&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// select paragraph and then find 
// elements with class ‘header’ inside 
$(“p”).find(“.header”).show();

 // equivalent to:
$(“.header”, $(“p”)).show();
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt; Advanced Chaining&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$(“&amp;lt;li&amp;gt;&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;”) // li
	.find(“span”) // span
		.html(“About Us”) // span 
		.andSelf() // span, li
			.addClass(“menu”) // span,li 
		.end() // span 
	.end() // li 
	.appendTo(“ul.main-menu”);
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt; Get Part of Selected Result&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$(“div”).slice(2, 5).not(“.green”).addClass(“middle”);
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;HTML Manipulation&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Getting and Setting Inner Content&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$(“p”).html(“&amp;lt;div&amp;gt;Hello World!&amp;lt;/div&amp;gt;”);

// escape the content of div.b
$(“div.a”).text($(“div.b”).html());
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Getting and Setting Values&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// get the value of the checked checkbox
$(“input:checkbox:checked”).val();

// set the value of the textbox
$(“:text[name=‘txt’]”).val(“Hello”);

// select or check lists or checkboxes
$(“#lst”).val([“NY”,”IL”,”NS”]);&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt; Handling CSS Classes&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// add and remove class
$(“p”).removeClass(“blue”).addClass(“red”);

// add if absent, remove otherwise
$(“div”).toggleClass(“main”);

// test for class existance
 if ($(“div”).hasClass(“main”)) { 
// Your code will come here

}
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt; Inserting new Elements&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// select &amp;gt; append to the end
$(“h1”).append(“&amp;lt;li&amp;gt;Hello World&amp;lt;/li&amp;gt;”);

// select &amp;gt; append to the beginning
$(“ul”).prepend(“&amp;lt;li&amp;gt;Hello World&amp;lt;/li&amp;gt;”);

// create &amp;gt; append/prepend to selector

$(“&amp;lt;li/&amp;gt;”).html(“9”).appendTo(“ul”);

$(“&amp;lt;li/&amp;gt;”).html(“1”).prependTo(“ul”);
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Replacing Elements&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// select &amp;gt; replace
$(“h1”).replaceWith(“&amp;lt;div&amp;gt;Hello&amp;lt;/div&amp;gt;”);

// create &amp;gt; replace selection
$(“&amp;lt;div&amp;gt;Hello&amp;lt;/div&amp;gt;”).replaceAll(“h1”);
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt; Replacing Elements while keeping the content&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$(“h3”).each(function(){
	$(this).replaceWith(“&amp;lt;div&amp;gt;” + $(this).html() 
					+ ”&amp;lt;/div&amp;gt;”);
	});
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Deleting Elements&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// remove all children
$(“#mainContent”).empty();

// remove selection
$(“span.names”).remove();

// change position
$(“p”).remove(“:not(.red)”).appendTo(“#main”);
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt; Handling attributes&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$(“a”).attr(“href”,”home.htm”);
// &amp;lt;a href=“home.htm”&amp;gt;…&amp;lt;/a&amp;gt;

// set the same as the first one
$(“button:gt(0)”).attr(“disabled”,$(“button:eq(0)”).attr(“disabled));
// remove attribute - enable
$(“button”).removeAttr(“disabled”)	
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt; Setting multiple attributes&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$(“img”).attr({
		“src” : “/images/smile.jpg”,
		“alt” : “Smile”,
		“width”  : 10,
		“height” : 10
});
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;CSS Manipulations&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// get style
$(“div”).css(“background-color”);

// set style 
$(“div”).css(“float”, “left”);

// set multiple style properties
$(“div”).css({“color”:”blue”,
			 “padding”: “1em”
			 “margin-right”: “0”,
			 marginLeft: “10px”});
&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt; Dimensions&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// get window height
var winHeight = $(window).height();

// set element height
$(“#main”).height(winHeight);

//.width() – element
//.innerWidth() – .width() + padding

//.outerWidth() – .innerWidth() + border
//.outerWidth(true) – including margin
&lt;/pre&gt;
&lt;br /&gt;
The default unit is Pixel (px)&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Positioning&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="js" name="code"&gt;// from the document
$(“div”).offset().top;

// from the parent element
$(“div”).position().left; 

// scrolling position
$(window).scrollTop(); 
&lt;/pre&gt;
&lt;br /&gt;
So that's it, i try my level best to let you &lt;b&gt;learn jquery from beginners to advanced level&lt;/b&gt; with small and handy examples. Third and Final part of this tutorial series will come soon. Stay tuned.&lt;br /&gt;
&lt;br /&gt;
Your feedback always provides me lot of energy.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-5446054039461151098?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lQeAXU1Vc73AeDDZEFLb8OYcyUU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lQeAXU1Vc73AeDDZEFLb8OYcyUU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lQeAXU1Vc73AeDDZEFLb8OYcyUU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lQeAXU1Vc73AeDDZEFLb8OYcyUU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=k44ah76_GqM:bwuIHyvIvPY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=k44ah76_GqM:bwuIHyvIvPY:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=k44ah76_GqM:bwuIHyvIvPY:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=k44ah76_GqM:bwuIHyvIvPY:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=k44ah76_GqM:bwuIHyvIvPY:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=k44ah76_GqM:bwuIHyvIvPY:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=k44ah76_GqM:bwuIHyvIvPY:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=k44ah76_GqM:bwuIHyvIvPY:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=k44ah76_GqM:bwuIHyvIvPY:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=k44ah76_GqM:bwuIHyvIvPY:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=k44ah76_GqM:bwuIHyvIvPY:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=k44ah76_GqM:bwuIHyvIvPY:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=k44ah76_GqM:bwuIHyvIvPY:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/k44ah76_GqM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/k44ah76_GqM/learn-jquery-from-beginners-to-advanced.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/10/learn-jquery-from-beginners-to-advanced.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-2052128342045758252</guid><pubDate>Fri, 07 Oct 2011 18:34:00 +0000</pubDate><atom:updated>2011-10-07T11:42:00.656-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">asp.net</category><title>ASP.NET HyperLink - Set alt tag of the image</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to &lt;b&gt;set the alt tag of an image that has been set by asp.net hyperlink&lt;/b&gt; using its &lt;b&gt;ImageUrl&lt;/b&gt; property which is&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="csharp" name="code"&gt;HyperLink.ImageUrl
&lt;/pre&gt;
&lt;br /&gt;
Couple of days ago i am working over a project in which i am fixing the issues reported by &lt;b&gt;SEO Tool Kit&amp;nbsp;&lt;/b&gt;(use for site analysis) which is installed in &lt;b&gt;IIS 7 &lt;/b&gt;(You can Install it in IIS 5 and IIS 6 as well). The SEO Tool kit is very much helpful if you want to check the errors and violations of the website that are damaging the ranking of your website or specific web pages in the search engine, especially in google. I got lot of violations about &lt;b&gt;alt tag is missing&lt;/b&gt;, when i was fixing all these violations then i got an &lt;b&gt;asp:Hyperlink&lt;/b&gt; that contains an &lt;b&gt;image which alt tag was missing&lt;/b&gt;, i checked all the possible properties of the asp:hyperlink to give alt tag to the image, like &lt;b&gt;ToolTip&lt;/b&gt; property but i was fail to achieve what i want, moreover the HyperLink control doesn't have an &lt;b&gt;AlternateText&lt;/b&gt; property.
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
Then surfing the internet i got the solution and it was quite easy and surprised to me. The solution was to give text between starting and ending tag of the asp:hyperlink and then that text will become the alt of the image, like given below&lt;br /&gt;
&lt;pre class="csharp" name="code"&gt;&amp;lt;asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/Images/proceed.gif" 
                        NavigateUrl="~/Welcome.aspx"&amp;gt;Proceed
&lt;/pre&gt;
&lt;br /&gt;
So that's it. The word Proceed will become the &lt;b&gt;alt tag of the image&lt;/b&gt; located inside the hyperlink.&lt;br /&gt;
&lt;br /&gt;
Stay tune with nice-tutorials.blogspot.com because in future i will write very informative and detailed tutorials about SEO Tool kit, which is used for analysis of website to improve its ranking in the major search engines. Also i will tell you how to deploy a website in windows 2008 R1, you can then open your own hosting company as well if you have servers that are capable to run the websites :). But still bottom line is to stay tune with nice-tutorials.blogspot.com
&lt;br /&gt;
&lt;br /&gt;
Do comment. Your feedback gives me energy.&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-2052128342045758252?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mcce9ZHT7jEl9C0-QcfLN0tApv0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mcce9ZHT7jEl9C0-QcfLN0tApv0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mcce9ZHT7jEl9C0-QcfLN0tApv0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mcce9ZHT7jEl9C0-QcfLN0tApv0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ZFFmEpAbUII:0SDpb19jT3s:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ZFFmEpAbUII:0SDpb19jT3s:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=ZFFmEpAbUII:0SDpb19jT3s:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ZFFmEpAbUII:0SDpb19jT3s:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ZFFmEpAbUII:0SDpb19jT3s:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=ZFFmEpAbUII:0SDpb19jT3s:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ZFFmEpAbUII:0SDpb19jT3s:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ZFFmEpAbUII:0SDpb19jT3s:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=ZFFmEpAbUII:0SDpb19jT3s:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ZFFmEpAbUII:0SDpb19jT3s:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ZFFmEpAbUII:0SDpb19jT3s:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=ZFFmEpAbUII:0SDpb19jT3s:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ZFFmEpAbUII:0SDpb19jT3s:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/ZFFmEpAbUII" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/ZFFmEpAbUII/aspnet-hyperlink-set-alt-tag-of-image.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/10/aspnet-hyperlink-set-alt-tag-of-image.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-5417928175959268121</guid><pubDate>Wed, 05 Oct 2011 17:09:00 +0000</pubDate><atom:updated>2011-10-05T10:12:40.209-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquery</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>spell checker in jquery using php</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to perform &lt;b&gt;spell checking in jquery using php&lt;/b&gt;. For this i will use a jquery plugin which is called jquery-spellchecker. By god, i have tried many spell checkers but there are lot of problems in them, some spell checkers that i like was not free of cost, some was not cross browser&amp;nbsp;compatible&amp;nbsp;then i found this spell checker which is pretty good. This jQuery plugin is&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px;"&gt;&amp;nbsp;used to check the spelling of a chunk of text, using &lt;b&gt;google's spell checking service&lt;/b&gt;. The plugin also gives you the option of using&amp;nbsp;&lt;a href="http://php.net/manual/en/book.pspell.php" rel="nofollow"&gt;pspell&lt;/a&gt;. If you are able to use pspell then you will have great control over your dictionary to manage spells of words&lt;/span&gt;. To communicate with google's api or pspell, php will be used.
&lt;br /&gt;
&lt;div class="separator" style="clear: both; font-family: Verdana, sans-serif; font-size: small; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-C_cYJrT3a3w/TotDqn-Z0HI/AAAAAAAAAUU/urpCtt0E6Ew/s1600/spell-checker-3.png" imageanchor="1"&gt;&lt;img border="0" height="220" src="http://1.bp.blogspot.com/-C_cYJrT3a3w/TotDqn-Z0HI/AAAAAAAAAUU/urpCtt0E6Ew/s320/spell-checker-3.png" width="300" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
The plugin comes with 2 default behaviours:
&lt;br /&gt;
&lt;ul style="font-family: Verdana, sans-serif; font-size: small;"&gt;
&lt;li&gt;If bound to a HTML element other than textarea, the plugin will highlight the incorrectly spelt words. Clicking on those incorrect words will bring up the suggest box.&lt;/li&gt;
&lt;li&gt;If bound to a textarea element, the plugin will add the incorrectly spelt words after the textarea.&amp;nbsp;Clicking on those incorrect words will bring up the suggest box.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;Server side script&lt;/b&gt;&lt;br /&gt;
As i told you above, the plugin uses PHP script that supports two type of spell checking engines: &lt;b&gt;php's pspell extension for aspell&lt;/b&gt;, or &lt;b&gt;google's spell checking services (API)&lt;/b&gt;.
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;using pspell requires you to have aspell installed on the server&lt;/b&gt;, as well as the PHP pspell extension
using google requires minimal server adjustments.
&lt;br /&gt;
&lt;b&gt;Note:-&lt;/b&gt;
&lt;br /&gt;
&lt;br /&gt;
The example &lt;b&gt;PHP&lt;/b&gt; file uses the &lt;b&gt;json_encode&lt;/b&gt; function, which requires the &lt;b&gt;json package&lt;/b&gt;. This package comes default with PHP 5 &amp;gt;= 5.2.0. If you have an older version of PHP then you can install this package via PECL, or use a custom json library.
&lt;br /&gt;
&lt;br /&gt;
If you would like to use a different server side language, let's suppose &lt;b&gt;asp.net&lt;/b&gt; then wait for my next tutorial, i have working example of this plugin with asp.net, jquery and google's spell checking api in my system and soon it will be uploaded in the form of tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Check chunk of text:-&lt;/u&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
checkspelling.php?engine=pspell
&lt;br /&gt;
&lt;b&gt;Request:&lt;/b&gt;&lt;br /&gt;
Content type: application/x-www-form-urlencoded;charset=UTF-8&lt;br /&gt;
Data: text="a chunk of text without any punctuation"&lt;br /&gt;
&lt;b&gt;Response:&lt;/b&gt;&lt;br /&gt;
Content type: application/json&lt;br /&gt;
Example response: ["bbad","speltt","wwords"]&lt;br /&gt;
Get suggestions for a word:&lt;br /&gt;
&lt;br /&gt;
checkspelling.php?engine=pspell&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Request:&lt;/b&gt;&lt;br /&gt;
Content type: application/x-www-form-urlencoded;charset=UTF-8&lt;br /&gt;
Data: suggest="word"&lt;br /&gt;
&lt;b&gt;Response:&lt;/b&gt;&lt;br /&gt;
Content type: application/json&lt;br /&gt;
Example response: ["suggest","snuggest","soggiest"]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Supported languages&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Pspell&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
What is pspell??? Good question, ok :) Pspell is simply a php wrapper to the GNU aspell spell checker. So supporting large range of languages is as easy as installing the relevant aspell language dictionary. These dictionary packs are available in most GNU/Linux distro repositories. In debian/ubuntu, you can install a new dictionary in a following way:
&lt;br /&gt;
&lt;b&gt;sudo apt-get install aspell-LANG&lt;/b&gt;
&lt;br /&gt;
(you have to replace LANG with the language code)
&lt;br /&gt;
&lt;br /&gt;
If you want to search for a particular language dictionary then you can use apt-cache:
&lt;br /&gt;
&lt;b&gt;sudo apt-cache search aspell&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
or view the aspell supported languages page.
&lt;br /&gt;
&lt;br /&gt;
Don't&amp;nbsp;forget to restart apache after successfully installation of new dictionaries. If you having problems getting pspell to work with personal dictionaries, view the php errors!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Note:- &lt;/b&gt;Aspell also works like charm in windows
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Google API&lt;/b&gt;
&lt;br /&gt;
I couldn't find any information for the languages google supports, but probably there are lot of languages and in my next tutorial you will see that i will use asp.net with google api to perform spell checking via this jquery plugin.
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Usage&lt;/b&gt;
&lt;br /&gt;
Include the following in the head section of your html document:
&lt;br /&gt;
&lt;pre class="html" name="code"&gt;&amp;lt;link href="css/spellchecker.css" media="screen" rel="stylesheet" type="text/css"&amp;gt;&amp;lt;/link&amp;gt;
&amp;lt;script src="js/jquery.js" type="text/javascript"&amp;gt;
&amp;lt;/script&amp;gt;
&amp;lt;script src="js/jquery.spellchecker.js" type="text/javascript"&amp;gt;
&amp;lt;/script&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Defaut usage&lt;/b&gt;&lt;br /&gt;
&lt;pre class="php" name="code"&gt;// initiate the spell checker on an element, fire the 'check' function
$("textarea#text-content").spellchecker("check");
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Plugin options: (all optional)&lt;/b&gt;
&lt;br /&gt;
&lt;pre class="php" name="code"&gt;$("textarea#text-content")
.spellchecker({
        url: "checkspelling.php",       // default spellcheck url
        lang: "en",                     // default language 
        engine: "pspell",               // pspell or google
        addToDictionary: false,         // display option to add word to dictionary (pspell only)
        wordlist: {
                action: "after",               // which jquery dom insert action
                element: $("#text-content")    // which object to apply above method
        },      
        suggestBoxPosition: "below",    // position of suggest box; above or below the highlighted word
        innerDocument: false            // if you want the badwords highlighted in the html then set to true
});
&lt;/pre&gt;
&lt;br /&gt;
You only want to execute the above code after an event has occured:
&lt;br /&gt;
&lt;pre class="php" name="code"&gt;// initiating the spell checker is not necessary if using the default plugin options
$("a.check-spelling").click(function(e){
        e.preventDefault();
        $("textarea#text-content").spellchecker("check");
});
&lt;/pre&gt;
&lt;br /&gt;
This jquery plugin will fire off a callback function after it has finished checking words:
&lt;br /&gt;
&lt;pre class="php" name="code"&gt;$("a.check-spelling").click(function(e){
        e.preventDefault();
        $("textarea#text-content").spellchecker("check", function(result){
                // if result is true then there are no incorrectly spelt words
                if (result) alert('There are no incorrectly spelt words.');
        });
});
&lt;/pre&gt;
&lt;br /&gt;
And for removing all spellchecker html, just do the following:
&lt;br /&gt;
&lt;pre class="php" name="code"&gt;$("textarea#text-content").spellchecker("remove");
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Source
&lt;br /&gt;
&lt;a href="http://code.google.com/p/jquery-spellchecker/source/checkout" rel="nofollow"&gt;jquery.spellchecker&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Simple Demo&lt;br /&gt;
&lt;a href="http://spellchecker.jquery.badsyntax.co.uk/example.html" rel="nofollow"&gt;Demo&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
So that's it. I hope you will love this &lt;b&gt;spell checker in jquery using php&lt;/b&gt;.&lt;br /&gt;
I love your feedback.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-5417928175959268121?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EiJh2_5bfkIFalQ887MhY5-tzzw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EiJh2_5bfkIFalQ887MhY5-tzzw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EiJh2_5bfkIFalQ887MhY5-tzzw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EiJh2_5bfkIFalQ887MhY5-tzzw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ViWlrRCTrJ4:A3UXIZVvd-E:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ViWlrRCTrJ4:A3UXIZVvd-E:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=ViWlrRCTrJ4:A3UXIZVvd-E:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ViWlrRCTrJ4:A3UXIZVvd-E:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ViWlrRCTrJ4:A3UXIZVvd-E:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=ViWlrRCTrJ4:A3UXIZVvd-E:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ViWlrRCTrJ4:A3UXIZVvd-E:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ViWlrRCTrJ4:A3UXIZVvd-E:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=ViWlrRCTrJ4:A3UXIZVvd-E:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ViWlrRCTrJ4:A3UXIZVvd-E:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ViWlrRCTrJ4:A3UXIZVvd-E:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=ViWlrRCTrJ4:A3UXIZVvd-E:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=ViWlrRCTrJ4:A3UXIZVvd-E:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/ViWlrRCTrJ4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/ViWlrRCTrJ4/spell-checker-in-jquery-with-php.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-C_cYJrT3a3w/TotDqn-Z0HI/AAAAAAAAAUU/urpCtt0E6Ew/s72-c/spell-checker-3.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/10/spell-checker-in-jquery-with-php.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-6420014357176806538</guid><pubDate>Fri, 30 Sep 2011 19:58:00 +0000</pubDate><atom:updated>2011-09-30T12:58:50.159-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">technology news</category><title>Firefox 7 release - Enjoy better browsing</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
Another release of firefox in this year - Firefox 7. &lt;b&gt;Firefox 7 has been released by Mozilla&lt;/b&gt; at 27 September 2011.&amp;nbsp;Firefox 7 is actually the first version of the rapid release cycle that is showing big improvements over previous versions. Mozilla claims in its official website about Firefox 7 in these wordings "&lt;b&gt;Made to make the Web a better place&lt;/b&gt;".
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-CcZjUYAnlRs/ToYaFJxLFLI/AAAAAAAAAUM/r9nrmcQmzyI/s1600/firefox-7-release.JPG" imageanchor="1"&gt;&lt;img border="0" height="220" src="http://4.bp.blogspot.com/-CcZjUYAnlRs/ToYaFJxLFLI/AAAAAAAAAUM/r9nrmcQmzyI/s320/firefox-7-release.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
Firefox 7 arrives with lot of new features. Mozilla managed to improve memory usage of the Firefox drastically (that’s the organization’s word), courtesy of Mozilla's MemShrink project. According to blog post by &lt;a href="http://hacks.mozilla.org/2011/09/firefox-7-is-lean-and-fast/" rel="nofollow"&gt;Nicholas Nethercoate&lt;/a&gt; over at Mozilla:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Firefox 7 uses less memory than Firefox 6 (and 5 and 4)&lt;/b&gt;: often 20% to 30% less, even in some cases 50% less. In particular, Firefox 7′s memory usage will stay steady if you leave it running overnight, and it will free up more memory when you close many tabs.&lt;br /&gt;
&lt;br /&gt;
Saving 50% memory usage is a big achievement. Probably even more important is that the browser won’t feel like eating up all the RAM over time anymore, which is definitely a super stuff, considering that the browser has a reputation for being memory inefficient.&lt;br /&gt;
&lt;br /&gt;
The change log lists addition features
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Better Javascript garbage collection.&lt;/li&gt;
&lt;li&gt;Rendering backend that speeds up Canvas operations on Windows. Implements Azure Direct2D for Canvas which increases canvas-based animations in HTML5.&lt;/li&gt;
&lt;li&gt;Support for text-overflow: ellipsis.&lt;/li&gt;
&lt;li&gt;Web Timing specification.&lt;/li&gt;
&lt;li&gt;Faster bookmark.&lt;/li&gt;
&lt;li&gt;Password changes syncing when using Firefox Sync.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition to the memory improvements, there are also are &lt;b&gt;fixes for 11 security vulnerabilities in Firefox 7&lt;/b&gt;, including eight critical flaws.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://www.mozilla.org/security/announce/2011/mfsa2011-45.html" rel="nofollow"&gt;MFSA 2011-45&lt;/a&gt; Inferring Keystrokes from motion data&lt;br /&gt;
&lt;a href="https://www.mozilla.org/security/announce/2011/mfsa2011-44.html" rel="nofollow"&gt;MFSA 2011-44&lt;/a&gt; Use after free reading OGG headers&lt;br /&gt;
&lt;a href="https://www.mozilla.org/security/announce/2011/mfsa2011-43.html" rel="nofollow"&gt;MFSA 2011-43&lt;/a&gt; loadSubScript unwraps XPCNativeWrapper scope parameter&lt;br /&gt;
&lt;a href="https://www.mozilla.org/security/announce/2011/mfsa2011-42.html" rel="nofollow"&gt;MFSA 2011-42&lt;/a&gt; Potentially exploitable crash in the YARR regular expression library&lt;br /&gt;
&lt;a href="https://www.mozilla.org/security/announce/2011/mfsa2011-41.html" rel="nofollow"&gt;MFSA 2011-41&lt;/a&gt; Potentially exploitable WebGL crashes&lt;br /&gt;
&lt;a href="https://www.mozilla.org/security/announce/2011/mfsa2011-40.html" rel="nofollow"&gt;MFSA 2011-40&lt;/a&gt; Code installation through holding down Enter&lt;br /&gt;
&lt;a href="https://www.mozilla.org/security/announce/2011/mfsa2011-39.html" rel="nofollow"&gt;MFSA 2011-39&lt;/a&gt; Defense against multiple Location headers due to CRLF Injection&lt;br /&gt;
&lt;a href="https://www.mozilla.org/security/announce/2011/mfsa2011-38.html" rel="nofollow"&gt;MFSA 2011-38&lt;/a&gt; XSS via plugins and shadowed window.location object&lt;br /&gt;
&lt;a href="https://www.mozilla.org/security/announce/2011/mfsa2011-37.html" rel="nofollow"&gt;MFSA 2011-37&lt;/a&gt; Integer underflow when using JavaScript RegExp&lt;br /&gt;
&lt;a href="https://www.mozilla.org/security/announce/2011/mfsa2011-36.html" rel="nofollow"&gt;MFSA 2011-36&lt;/a&gt; Miscellaneous memory safety hazards (rv:7.0 / rv:1.9.2.23)&lt;br /&gt;
&lt;br /&gt;
Enjoy web browsing with firefox 7.

&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-6420014357176806538?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PFZbJv-ZTqVooUBfhSN4l9B-Pkw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PFZbJv-ZTqVooUBfhSN4l9B-Pkw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PFZbJv-ZTqVooUBfhSN4l9B-Pkw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PFZbJv-ZTqVooUBfhSN4l9B-Pkw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=xP_YNwrJp3k:2ex4JeDmQN8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=xP_YNwrJp3k:2ex4JeDmQN8:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=xP_YNwrJp3k:2ex4JeDmQN8:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=xP_YNwrJp3k:2ex4JeDmQN8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=xP_YNwrJp3k:2ex4JeDmQN8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=xP_YNwrJp3k:2ex4JeDmQN8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=xP_YNwrJp3k:2ex4JeDmQN8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=xP_YNwrJp3k:2ex4JeDmQN8:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=xP_YNwrJp3k:2ex4JeDmQN8:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=xP_YNwrJp3k:2ex4JeDmQN8:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=xP_YNwrJp3k:2ex4JeDmQN8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=xP_YNwrJp3k:2ex4JeDmQN8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=xP_YNwrJp3k:2ex4JeDmQN8:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/xP_YNwrJp3k" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/xP_YNwrJp3k/firefox-7-release-enjoy-better-browsing.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-CcZjUYAnlRs/ToYaFJxLFLI/AAAAAAAAAUM/r9nrmcQmzyI/s72-c/firefox-7-release.JPG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/firefox-7-release-enjoy-better-browsing.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-6732851515512966726</guid><pubDate>Tue, 27 Sep 2011 08:23:00 +0000</pubDate><atom:updated>2011-09-27T01:23:21.420-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">technology news</category><title>Google is celebrating 13th Birthday with doodle</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
Today &lt;b&gt;Google is celebrating 13th Birthday with doodle&lt;/b&gt;. The search engine giant and number one website (alexa rating) on the internet, Google has just turned 13 today and celebrating by dedicating itself a &lt;b&gt;Google birthday Doodle&lt;/b&gt;, marking the 13th anniversary of awesomeness.
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/--hCvwJI9_r4/ToGG0UWxANI/AAAAAAAAAUE/q79Jrimid9s/s1600/Googles_13th_Birthday-2011-hp.jpg" imageanchor="1"&gt;&lt;img border="0" height="182" src="http://2.bp.blogspot.com/--hCvwJI9_r4/ToGG0UWxANI/AAAAAAAAAUE/q79Jrimid9s/s320/Googles_13th_Birthday-2011-hp.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
Its my perception that no one cannot imagine life without Google. Google search along with its many other awesome services are playing an important role in our life. People love to use Gmail, people love to use Google Adsense, people love to use Google Docs, people love to use Google Analytics, People love to use Blogger and now &lt;b&gt;google has officially launched Google Plus which is targeting Social Network giant the Facebook&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Research conducted by Nielsen earlier this month showed that US internet surfers spend more time on Facebook than any other website on internet&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
At the same time, Google is enjoying a 90% share of the global internet search market, according to the most recent figures from metrics firm &lt;b&gt;StatsCounter&lt;/b&gt;, although its share varies considerably by country yet Google is number one in Search Engine market.&lt;br /&gt;
&lt;br /&gt;
The seed bowed by &lt;b&gt;Larry Page&lt;/b&gt;, &lt;b&gt;Sergey Brin&lt;/b&gt;, and &lt;b&gt;Eric Schmidt&lt;/b&gt; – the three key persons who founded &lt;b&gt;Google in September 1998&lt;/b&gt;, is now become a tree which is giving the shadow and fruits to the world at same time.  “Google” itself has become a synonym for “web search”.&lt;br /&gt;
&lt;br /&gt;
Well done Google. Keep Going.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-6732851515512966726?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UE8i_pNV3SB_EfIoLz1-tHPkqL8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UE8i_pNV3SB_EfIoLz1-tHPkqL8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/UE8i_pNV3SB_EfIoLz1-tHPkqL8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UE8i_pNV3SB_EfIoLz1-tHPkqL8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=TUI0_2GF73U:QNKVD_yA-PU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=TUI0_2GF73U:QNKVD_yA-PU:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=TUI0_2GF73U:QNKVD_yA-PU:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=TUI0_2GF73U:QNKVD_yA-PU:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=TUI0_2GF73U:QNKVD_yA-PU:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=TUI0_2GF73U:QNKVD_yA-PU:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=TUI0_2GF73U:QNKVD_yA-PU:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=TUI0_2GF73U:QNKVD_yA-PU:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=TUI0_2GF73U:QNKVD_yA-PU:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=TUI0_2GF73U:QNKVD_yA-PU:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=TUI0_2GF73U:QNKVD_yA-PU:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=TUI0_2GF73U:QNKVD_yA-PU:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=TUI0_2GF73U:QNKVD_yA-PU:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/TUI0_2GF73U" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/TUI0_2GF73U/google-is-celebrating-13th-birthday.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/--hCvwJI9_r4/ToGG0UWxANI/AAAAAAAAAUE/q79Jrimid9s/s72-c/Googles_13th_Birthday-2011-hp.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/google-is-celebrating-13th-birthday.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-6942279011005718889</guid><pubDate>Mon, 26 Sep 2011 17:27:00 +0000</pubDate><atom:updated>2011-09-26T10:27:10.690-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>Set alt attribute to images dynamically using jquery</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial, we will learn how to &lt;b&gt;set alt attribute to images dynamically using jquery&lt;/b&gt;. Once again i say, in jquery doing so is quite easy :). Let's have a look over how to do so.
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;pre class="js" name="code"&gt;    &amp;lt;script language="javascript" type="text/javascript"&amp;gt;
        $(document).ready(function () {
            $("img:not([alt])").each(function () {
		$(this).attr('alt', 'image here');
                //alert($(this).attr("src"));
            });
        }); 
        &amp;lt;/script&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
By using the jquery's built-in &lt;b&gt;attr()&lt;/b&gt; function,  the above mentioned code snippet will check each and every image in the body of your web page and assign alt attribute dynamically to those images in which alt attribute is missing. Right now i am assigning &lt;b&gt;image here&lt;/b&gt; as a hard coded value of alt attribute, but you can assign the &lt;b&gt;image name&lt;/b&gt; as a value of alt attribute as well, depends upon your requirement.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Note:-&lt;/b&gt; After applying the above mentioned code, please check the required change in source code by using &lt;b&gt;firebug&lt;/b&gt; because if you check the source code by right clicking the web page then you will not find any change made by the above mentioned code, as jquery doesn't change the original html of the web page. I can understand most of you are well aware of firebug but those my brothers that don't know about firebug, definitely i will write a tutorial for them very soon.&lt;br /&gt;
&lt;br /&gt;
So that's it. I hope you will find this tutorial very handy.&lt;br /&gt;
&lt;br /&gt;
I love your feedback.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-6942279011005718889?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_sWCW0V3S83qyNTCgGUP7DH8Qpw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_sWCW0V3S83qyNTCgGUP7DH8Qpw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_sWCW0V3S83qyNTCgGUP7DH8Qpw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_sWCW0V3S83qyNTCgGUP7DH8Qpw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yoXNIvl4sRo:X0T7qj-KCn4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yoXNIvl4sRo:X0T7qj-KCn4:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=yoXNIvl4sRo:X0T7qj-KCn4:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yoXNIvl4sRo:X0T7qj-KCn4:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yoXNIvl4sRo:X0T7qj-KCn4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=yoXNIvl4sRo:X0T7qj-KCn4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yoXNIvl4sRo:X0T7qj-KCn4:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yoXNIvl4sRo:X0T7qj-KCn4:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=yoXNIvl4sRo:X0T7qj-KCn4:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yoXNIvl4sRo:X0T7qj-KCn4:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yoXNIvl4sRo:X0T7qj-KCn4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=yoXNIvl4sRo:X0T7qj-KCn4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yoXNIvl4sRo:X0T7qj-KCn4:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/yoXNIvl4sRo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/yoXNIvl4sRo/set-alt-attribute-to-images-dynamically.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/set-alt-attribute-to-images-dynamically.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-3491394404255106973</guid><pubDate>Mon, 26 Sep 2011 16:54:00 +0000</pubDate><atom:updated>2011-09-26T09:55:00.233-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">php</category><title>How to increase uplaod file size in php</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to increase upload file size in php. Doing so is quite easy in php by changing some default values in &lt;b&gt;php.ini file&lt;/b&gt; or in &lt;b&gt;.htaccess file&lt;/b&gt;, depends upon your hosting situation. php.ini file is the configuration file that contains all the settings related to your website. So let's have a look over how to accomplish what we want.

&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;b&gt;How to increase uplaod file size in php&lt;/b&gt;&lt;br /&gt;
You have to update the values of &lt;b&gt;post_max_size&lt;/b&gt; and &lt;b&gt;upload_max_filesize&lt;/b&gt; in php.ini file. Since &lt;i&gt;post_max_size&lt;/i&gt; is the limit for all the content of your post, many developers want &lt;i&gt;post_max_size&lt;/i&gt; to be a multiple of &lt;i&gt;upload_max_filesize&lt;/i&gt; to allow multiple files to be uploaded, but this is not necessary. The upload module limits the size of a single attachment to be less than either &lt;i&gt;post_max_size&lt;/i&gt;, or &lt;i&gt;upload_max_filesize&lt;/i&gt;, whichever is smaller. &lt;b&gt;The default value for upload_max_filesize is 2 MB&lt;/b&gt;, and &lt;b&gt;default value for post_max_size is 8 MB&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
For instance, to increase the limit on uploaded files to 10 MB:&lt;br /&gt;
&lt;br /&gt;
Perform below mentioned changes to the php.ini file. Remember, for some hosts this is a system-wide setting.
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;upload_max_filesize = 10M&lt;/li&gt;
&lt;li&gt;post_max_size = 10M&lt;/li&gt;
&lt;/ul&gt;
So that's it. I hope you will find this tutorial very handy.&lt;br /&gt;
&lt;br /&gt;
I love your feedback.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-3491394404255106973?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fskGNPNQbD9Ua63d7nemNDykiGs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fskGNPNQbD9Ua63d7nemNDykiGs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fskGNPNQbD9Ua63d7nemNDykiGs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fskGNPNQbD9Ua63d7nemNDykiGs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=VKnX0NWtQWE:J4qgj0YQPU8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=VKnX0NWtQWE:J4qgj0YQPU8:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=VKnX0NWtQWE:J4qgj0YQPU8:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=VKnX0NWtQWE:J4qgj0YQPU8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=VKnX0NWtQWE:J4qgj0YQPU8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=VKnX0NWtQWE:J4qgj0YQPU8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=VKnX0NWtQWE:J4qgj0YQPU8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=VKnX0NWtQWE:J4qgj0YQPU8:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=VKnX0NWtQWE:J4qgj0YQPU8:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=VKnX0NWtQWE:J4qgj0YQPU8:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=VKnX0NWtQWE:J4qgj0YQPU8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=VKnX0NWtQWE:J4qgj0YQPU8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=VKnX0NWtQWE:J4qgj0YQPU8:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/VKnX0NWtQWE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/VKnX0NWtQWE/how-to-increase-uplaod-file-size-in-php.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/how-to-increase-uplaod-file-size-in-php.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-8542408553820592874</guid><pubDate>Sat, 24 Sep 2011 05:18:00 +0000</pubDate><atom:updated>2011-09-23T22:18:50.798-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>How to set attribute of any element in jquery</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
Sometimes it becomes our requirement to &lt;b&gt;set the attribute of any element using jquery&lt;/b&gt;. For instance, in my next tutorial i will teach you how to set the &lt;i&gt;alt&lt;/i&gt; attribute of images that doesn't contain the &lt;i&gt;alt &lt;/i&gt;attribute. Its very easy in jquery by using its &lt;b&gt;attr()&lt;/b&gt; function which is built-in in jquery.Let's have a look over the example given below.

&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;b&gt;How to set attribute of any element in jquery&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="html" name="code"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
  &amp;lt;script src="http://code.jquery.com/jquery-latest.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;style type="text/css"&amp;gt;
.divclass{
font-family:verdana;
font-size:12px;
color:green;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
	&amp;lt;div id="myDiv"&amp;gt;Welcome to nice-tutorials.blogspot.com&amp;lt;/div&amp;gt;&amp;lt;br/&amp;gt;
	&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;script language="javascript" type="text/javascript"&amp;gt;
$("#myDiv").attr('class', 'divclass');
&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
&lt;span style="color: green;"&gt;Welcome to nice-tutorials.blogspot.com&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
In the above mentioned code snippet i have decalred a css class which is &lt;b&gt;divclass&lt;/b&gt; and then by using built-in &lt;b&gt;attr()&lt;/b&gt; function of jquery i assigned divclass to the div having id of &lt;b&gt;myDiv&lt;/b&gt;. &lt;i&gt;Using this behavior of attr() function we can set one or more attributes for the set of matched elements&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
So that's it.&lt;br /&gt;
&lt;br /&gt;
I love your feedback.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-8542408553820592874?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7Ynp5RSAiywwXG1QMpjGVethZ9Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7Ynp5RSAiywwXG1QMpjGVethZ9Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7Ynp5RSAiywwXG1QMpjGVethZ9Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7Ynp5RSAiywwXG1QMpjGVethZ9Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yIWyCZOKk6Q:wX2LVNz9jbI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yIWyCZOKk6Q:wX2LVNz9jbI:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=yIWyCZOKk6Q:wX2LVNz9jbI:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yIWyCZOKk6Q:wX2LVNz9jbI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yIWyCZOKk6Q:wX2LVNz9jbI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=yIWyCZOKk6Q:wX2LVNz9jbI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yIWyCZOKk6Q:wX2LVNz9jbI:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yIWyCZOKk6Q:wX2LVNz9jbI:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=yIWyCZOKk6Q:wX2LVNz9jbI:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yIWyCZOKk6Q:wX2LVNz9jbI:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yIWyCZOKk6Q:wX2LVNz9jbI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=yIWyCZOKk6Q:wX2LVNz9jbI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=yIWyCZOKk6Q:wX2LVNz9jbI:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/yIWyCZOKk6Q" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/yIWyCZOKk6Q/how-to-set-attribute-of-any-element-in.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/how-to-set-attribute-of-any-element-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-8587791077749016425</guid><pubDate>Sat, 24 Sep 2011 04:53:00 +0000</pubDate><atom:updated>2011-09-23T21:55:46.841-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>Get class name of any element in jquery</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to get class name of any element in jquery. It is quite easy in jquery by utilizing its built-in &lt;b&gt;attr()&lt;/b&gt; function. This &lt;b&gt;attr()&lt;/b&gt; function is quite handy. Let's have a look over the following code snippet.
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
Get class name of any element in jquery
&lt;br /&gt;
&lt;pre class="html" name="code"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
  &amp;lt;script src="http://code.jquery.com/jquery-latest.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;style type="text/css"&amp;gt;
.divclass{
font-family:verdana;
font-size:12px;
color:green;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
	&amp;lt;div id="myDiv" class="divclass"&amp;gt;Welcome to nice-tutorials.blogspot.com&amp;lt;/div&amp;gt;&amp;lt;br/&amp;gt;
	&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;script language="javascript" type="text/javascript"&amp;gt;
var divClassName=$("#myDiv").attr("class");
$("span").html("Div's class is &amp;lt;strong&amp;gt;"+divClassName+"&amp;lt;/strong&amp;gt;")
&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
&lt;span style="color: green;"&gt;Welcome to nice-tutorials.blogspot.com&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Div's class is &lt;b&gt;divclass&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In the above given code snippet i declare a css class&lt;b&gt; .divclass&lt;/b&gt; and assign it to the div &lt;b&gt;myDiv&lt;/b&gt; then using built-in &lt;b&gt;attr()&lt;/b&gt; function of jquery i get the class name and display the class name in the span just after the div element. &lt;b&gt;attr() function gets the value of an attribute for the first element in the set of matched elements.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
So that's it. This is the way to get class name of any element in jquery.&lt;br /&gt;
&lt;br /&gt;
I love your feedback.&lt;br /&gt;
&lt;br /&gt;
Stay tune with nice-tutorials.blogspot.com&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-8587791077749016425?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/D3O-S80e0OyroLR6NOrDqJO7Y-s/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/D3O-S80e0OyroLR6NOrDqJO7Y-s/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/D3O-S80e0OyroLR6NOrDqJO7Y-s/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/D3O-S80e0OyroLR6NOrDqJO7Y-s/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=uI5EvJSw34E:ifggs4I8qcw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=uI5EvJSw34E:ifggs4I8qcw:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=uI5EvJSw34E:ifggs4I8qcw:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=uI5EvJSw34E:ifggs4I8qcw:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=uI5EvJSw34E:ifggs4I8qcw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=uI5EvJSw34E:ifggs4I8qcw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=uI5EvJSw34E:ifggs4I8qcw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=uI5EvJSw34E:ifggs4I8qcw:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=uI5EvJSw34E:ifggs4I8qcw:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=uI5EvJSw34E:ifggs4I8qcw:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=uI5EvJSw34E:ifggs4I8qcw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=uI5EvJSw34E:ifggs4I8qcw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=uI5EvJSw34E:ifggs4I8qcw:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/uI5EvJSw34E" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/uI5EvJSw34E/get-class-name-of-any-element-in-jquery.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/get-class-name-of-any-element-in-jquery.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-4162454883611474243</guid><pubDate>Fri, 23 Sep 2011 19:39:00 +0000</pubDate><atom:updated>2011-09-23T21:54:17.633-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>Remove a word in a text using jquery</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to remove a word in a text using jquery. Jquery is very powerful and we can achieve this task quite easily in it with the help of built-in &lt;b&gt;replace()&lt;/b&gt; function. Let's have a look over the following code snippet that illustrates how to do so.
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;b&gt;Remove a word in a text using jquery&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="html" name="code"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
  &amp;lt;script src="http://code.jquery.com/jquery-latest.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
	&amp;lt;div id="myDiv"&amp;gt;Welcome to nice-tutorials.blogspot.com&amp;lt;/div&amp;gt;

&amp;lt;script langiage="javascript" type="text/javascript"&amp;gt;
var el = $("#myDiv");
//replace(/word to remove/ig, "");
el.html(el.html().replace(/to/ig, ""));
&amp;lt;/script&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
In the above given example we are removing the word &lt;b&gt;to&lt;/b&gt; from div's inner html, so the output will be&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
Welcome nice-tutorials.blogspot.com&lt;br /&gt;
&lt;br /&gt;
So that's it. This is the process to remove a word in a text using jquery.&lt;br /&gt;
&lt;br /&gt;
I always love your feedback.&lt;br /&gt;
&lt;br /&gt;
Stay tune with nice-tutorials.blogspot.com for millions of tutorials of jquery :)
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-4162454883611474243?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QXLi0JvjEMa1cTyVZHZt18cxBHk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QXLi0JvjEMa1cTyVZHZt18cxBHk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QXLi0JvjEMa1cTyVZHZt18cxBHk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QXLi0JvjEMa1cTyVZHZt18cxBHk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=XIT4SDUn1Fw:IxCog1Ls3bo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=XIT4SDUn1Fw:IxCog1Ls3bo:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=XIT4SDUn1Fw:IxCog1Ls3bo:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=XIT4SDUn1Fw:IxCog1Ls3bo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=XIT4SDUn1Fw:IxCog1Ls3bo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=XIT4SDUn1Fw:IxCog1Ls3bo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=XIT4SDUn1Fw:IxCog1Ls3bo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=XIT4SDUn1Fw:IxCog1Ls3bo:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=XIT4SDUn1Fw:IxCog1Ls3bo:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=XIT4SDUn1Fw:IxCog1Ls3bo:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=XIT4SDUn1Fw:IxCog1Ls3bo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=XIT4SDUn1Fw:IxCog1Ls3bo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=XIT4SDUn1Fw:IxCog1Ls3bo:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/XIT4SDUn1Fw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/XIT4SDUn1Fw/remove-word-in-text-using-jquery.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/remove-word-in-text-using-jquery.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-62119309187913093</guid><pubDate>Fri, 23 Sep 2011 05:22:00 +0000</pubDate><atom:updated>2011-09-22T22:22:23.315-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">technology news</category><title>Facebook updates its friend list system targeting Google+</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;b&gt;Facebook has updated its Friend Lists system&lt;/b&gt; to target Google Plus's Circles features&lt;b&gt;&lt;/b&gt;.
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-0a3ErWlxGeQ/TnwUbS0t2qI/AAAAAAAAAT0/sNsn_tgHZuU/s1600/facebook-update-friends-list.jpg" imageanchor="1"&gt;&lt;img border="0" height="171" src="http://1.bp.blogspot.com/-0a3ErWlxGeQ/TnwUbS0t2qI/AAAAAAAAAT0/sNsn_tgHZuU/s320/facebook-update-friends-list.jpg" width="304" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
By adding this, users will now have more control over how their connections are 
grouped, with some lists, such as family and work, created automatically.&lt;br /&gt;
&lt;br /&gt;
Although Facebook remains the world's most popular social network, &lt;b&gt;Google+ is expected to hit 100m users this year&lt;/b&gt;. &lt;br /&gt;
&lt;br /&gt;
The company has been rolling out a range of new features in recent weeks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The new &lt;b&gt;Smart Lists&lt;/b&gt; feature of facebook will create categories totally based on the relationship between a user and their friends. For example, anyone sharing the same workplace will be designated a colleague. Likewise school friends. New &lt;b&gt;"close friends"&lt;/b&gt; and &lt;b&gt;"acquaintances"&lt;/b&gt; lists will allow Facebook members to filter who they see updates from.&lt;br /&gt;
&lt;br /&gt;
There will be inevitable comparisons to the widely praised 
&lt;b&gt;Circles feature on Google's social network&lt;/b&gt;, which lets users group 
together people they are following.&lt;br /&gt;
&lt;br /&gt;
Anyway Mike Schroepfer, Facebook's vice president of engineering said the changes were part of the site's gradual evolution. "We've had friend lists since 2007. Groups we made in 2010. 
We've been experimenting with lots of different ways to share for many, 
many years now," he told BBC News.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Is Twitter threatening?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-VzgUw_LMucg/TnwVeUw3HII/AAAAAAAAAT8/2F89V0k1f3E/s1600/twitter.jpg" imageanchor="1"&gt;&lt;img border="0" height="299" src="http://3.bp.blogspot.com/-VzgUw_LMucg/TnwVeUw3HII/AAAAAAAAAT8/2F89V0k1f3E/s320/twitter.jpg" width="224" /&gt;&lt;/a&gt;&lt;/div&gt;
While the new friend list setting are an apparently minor change to an existing system, their introduction may provide clues to Facebook's longer term strategy.&lt;br /&gt;
&lt;br /&gt;
On a superficial level, the changes appear to be aimed at users who are attracted by the ability to create groups using Google Circles.&lt;br /&gt;
&lt;br /&gt;
However, coupled with recent updates to the system for sharing content on Facebook, there is also a challenge to Twitter.&lt;br /&gt;
By encouraging users to think about attaching different privacy levels to things they post, and to categorise whose status updates they see, Facebook seems to be preparing to encourage more public feeds, visible to anyone online.&lt;br /&gt;
Such a strategy could ultimately lead to a Twitter-style "follow" system, where users can sign-up to updates from non friends.&lt;br /&gt;
Facebook's Mike Schroepfer said that the company would always offer the option to remain private.&lt;br /&gt;
&lt;br /&gt;
"There are things that people share that they don't want others to see - a personal thought or something with their family, and there is no value in having that shared more publicly," he said.&lt;br /&gt;
&lt;br /&gt;
However, he hinted that more public postings would also play a part in the site's future.&lt;br /&gt;
&lt;br /&gt;
"There's definitely a value in serendipity and getting a chance to connect people. That's a lot of what our product is about."&lt;br /&gt;
&lt;br /&gt;
Courtesy of &lt;a href="http://www.bbc.co.uk/"&gt;bbc&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-62119309187913093?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/cFsFFeoTVzC7f7WCsoV2p_EUpnk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cFsFFeoTVzC7f7WCsoV2p_EUpnk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/cFsFFeoTVzC7f7WCsoV2p_EUpnk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cFsFFeoTVzC7f7WCsoV2p_EUpnk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=qQVzuDp9HWs:KwcmatKna9w:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=qQVzuDp9HWs:KwcmatKna9w:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=qQVzuDp9HWs:KwcmatKna9w:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=qQVzuDp9HWs:KwcmatKna9w:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=qQVzuDp9HWs:KwcmatKna9w:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=qQVzuDp9HWs:KwcmatKna9w:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=qQVzuDp9HWs:KwcmatKna9w:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=qQVzuDp9HWs:KwcmatKna9w:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=qQVzuDp9HWs:KwcmatKna9w:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=qQVzuDp9HWs:KwcmatKna9w:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=qQVzuDp9HWs:KwcmatKna9w:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=qQVzuDp9HWs:KwcmatKna9w:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=qQVzuDp9HWs:KwcmatKna9w:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/qQVzuDp9HWs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/qQVzuDp9HWs/facebook-updates-its-friend-list-system.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-0a3ErWlxGeQ/TnwUbS0t2qI/AAAAAAAAAT0/sNsn_tgHZuU/s72-c/facebook-update-friends-list.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/facebook-updates-its-friend-list-system.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-8607760821359904677</guid><pubDate>Wed, 21 Sep 2011 19:22:00 +0000</pubDate><atom:updated>2011-09-21T12:22:49.494-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>Get the total number of matched elements in jquery</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to get the total number of matched elements in jquery. As we all know, jquery is a very powerful javascript library and its selectors play very vital role to select any DOM element. In some cases we need to know the total number of matched elements, for this, let's have a look over the following code snippet.
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;pre class="html" name="code"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
  &amp;lt;script src="http://code.jquery.com/jquery-latest.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
	&amp;lt;div&amp;gt;Welcome to nice-tutorials.blogspot.com&amp;lt;/div&amp;gt;&amp;lt;br/&amp;gt;
	&amp;lt;div&amp;gt;Welcome to nice-tutorials.blogspot.com&amp;lt;/div&amp;gt;&amp;lt;br/&amp;gt;
	&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;

&amp;lt;script language="javascript" type="text/javascript"&amp;gt;
$("span").html("There are &amp;lt;strong&amp;gt;" + $("div").size() + "&amp;lt;/strong&amp;gt; divs in this page.");

&amp;lt;/script&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
Welcome to nice-tutorials.blogspot.com&lt;br /&gt;
Welcome to nice-tutorials.blogspot.com&lt;br /&gt;
There are &lt;b&gt;2&lt;/b&gt; divs in this page.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Note:-&lt;/u&gt;&lt;br /&gt;
The &lt;b&gt;.size() method&lt;/b&gt; is functionally equivalent to the &lt;a href="http://nice-tutorials.blogspot.com/2011/06/how-to-check-whether-element-exists.html"&gt;&lt;b&gt;.length property;&lt;/b&gt;&lt;/a&gt; however, the &lt;b&gt;.length &lt;/b&gt;property is recommended because it does not have the overhead of a function call.&lt;br /&gt;
&lt;br /&gt;
So that's it. This is the code to &lt;b&gt;get the total number of matched elements in jquery&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
I love your feedback. &lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-8607760821359904677?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TnqH5P1CdjlLye4DyRLEtpDcHlU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TnqH5P1CdjlLye4DyRLEtpDcHlU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TnqH5P1CdjlLye4DyRLEtpDcHlU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TnqH5P1CdjlLye4DyRLEtpDcHlU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=nony2mXpAW4:QMzRqk3irHw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=nony2mXpAW4:QMzRqk3irHw:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=nony2mXpAW4:QMzRqk3irHw:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=nony2mXpAW4:QMzRqk3irHw:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=nony2mXpAW4:QMzRqk3irHw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=nony2mXpAW4:QMzRqk3irHw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=nony2mXpAW4:QMzRqk3irHw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=nony2mXpAW4:QMzRqk3irHw:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=nony2mXpAW4:QMzRqk3irHw:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=nony2mXpAW4:QMzRqk3irHw:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=nony2mXpAW4:QMzRqk3irHw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=nony2mXpAW4:QMzRqk3irHw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=nony2mXpAW4:QMzRqk3irHw:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/nony2mXpAW4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/nony2mXpAW4/get-total-number-of-matched-elements-in.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/get-total-number-of-matched-elements-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-8195576122387318595</guid><pubDate>Wed, 21 Sep 2011 18:39:00 +0000</pubDate><atom:updated>2011-09-21T11:40:01.914-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>Disable right click contextual menu in jquery</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to &lt;b&gt;disable right click contextual menu in jquery&lt;/b&gt;. Jquery is a very powerful javascript library and makes things very easier to work with. So let's have a look over how to do so.

&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;pre class="js" name="code"&gt;$(document).ready(function(){
 $(document).bind("contextmenu",function(e){
        return false;
    });

});
&lt;/pre&gt;
So that's it, this above written jquery code snippet will disable right click contextual menu, moreover, it will also &lt;b&gt;disable the contextual menu when you press key(Application Key)&lt;/b&gt; between the &lt;b&gt;alt &lt;/b&gt;and &lt;b&gt;ctrl&lt;/b&gt; keys in &lt;b&gt;QWERTY &lt;/b&gt;keyboard of your pc.&lt;br /&gt;
&lt;br /&gt;
I love your feedback.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-8195576122387318595?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PDedKr1u9i_gE3GN4uJu5sRwy5c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PDedKr1u9i_gE3GN4uJu5sRwy5c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PDedKr1u9i_gE3GN4uJu5sRwy5c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PDedKr1u9i_gE3GN4uJu5sRwy5c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=lf7pKpT4vrc:K6pGXkKiMRA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=lf7pKpT4vrc:K6pGXkKiMRA:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=lf7pKpT4vrc:K6pGXkKiMRA:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=lf7pKpT4vrc:K6pGXkKiMRA:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=lf7pKpT4vrc:K6pGXkKiMRA:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=lf7pKpT4vrc:K6pGXkKiMRA:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=lf7pKpT4vrc:K6pGXkKiMRA:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=lf7pKpT4vrc:K6pGXkKiMRA:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=lf7pKpT4vrc:K6pGXkKiMRA:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=lf7pKpT4vrc:K6pGXkKiMRA:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=lf7pKpT4vrc:K6pGXkKiMRA:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=lf7pKpT4vrc:K6pGXkKiMRA:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=lf7pKpT4vrc:K6pGXkKiMRA:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/lf7pKpT4vrc" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/lf7pKpT4vrc/disable-right-click-contextual-menu-in.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/disable-right-click-contextual-menu-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-3886787432926499803</guid><pubDate>Mon, 19 Sep 2011 18:02:00 +0000</pubDate><atom:updated>2011-09-19T11:19:53.173-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">asp.net</category><title>Server.Transfer vs Response.Redirect</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn the difference between server.transfer and response.redirect. Server and Response both are objects in ASP.NET use for redirecting the users from one page to another or from one website to another website. Server object provides methods and properties for various tasks related to a server. &lt;b&gt;Transfer is a method of the Server object &lt;/b&gt;&lt;b&gt;and it sends information of the current state to another .aspx file for processing&lt;/b&gt;. Response object describes methods and properties related to a server’s response. Redirect is a method of the Response object and it sends a message to the browser making it connect to a different URL. Although both the Server.Transfer and Response.Redirect can be used to transfer a user from one page to another yet they are different to each other.
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;b&gt;What is Response.Redirect?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Redirect is a method of the Response object. When the Response method is called, it sends the HTTP code 302 and the URL of the requested web page to the user's browser. &lt;i&gt;The HTTP code 302 informs the user’s browser that the requested resource is located under a different URL&lt;/i&gt;. So when the browser receives the code, it instantly opens the resource in the new location. The requested web page can reside on the same server (Same Website) as the page that contained the request or it could be located in some other server (Some other website). When requesting a web page residing on the same server, Response method can be used as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="csharp" name="code"&gt;Response.Redirect(“Welcome.aspx”);&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
When requesting a web page residing on another server (another website), Response method can be used as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="csharp" name="code"&gt;Response.Redirect(“http://www.yourwebsite.com/Welcome.aspx”);&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;What is Server.Transfer?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Transfer is a method of the Server Object. When the Transfer method is called, the original request is modified to transfer in to some other page in the same server. &lt;b&gt;When a new page is requested using the Server.Transfer, URL shown in the user’s browser does not change&lt;/b&gt;. This is because the transfer happens in the server side and the browser does not have any knowledge about the transfer. If we use the second overload for Server.Transfer(string path, bool preserveForm) and sets the second parameter as true, posted form variables and query strings can be made available to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Difference between Server.Transfer and Response.Redirect&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;Response.Redirect can be used to redirect the user to a web page in another server (another website) whereas Server.Transfer can only be used to redirect the user to web pages on the same server (same website).&lt;/li&gt;
&lt;li&gt;Response.Redirect makes a roundtrip to the server, while Server.Transfer changes the focus of the web server to a different web page. Therefore, by using Server.Transfer we can save server's resources.&lt;/li&gt;
&lt;li&gt;Transfer, properties of the previous page can be accessed from the new page but this is only possible with server.transfer.&lt;/li&gt;
&lt;li&gt;Finally, Response.Redirect changes the URL in the address bar of the browser when the new page is accessed but when using the Server.Transfer the original URL is retained and the content of the page is just changed. So the user cannot use it to bookmark the new page as it always refer to the first content that comes with that url.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
So that's it. I hope you know better understand the &lt;b&gt;difference between Response.Redirect and Server.Transfer&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
I love your feedback.&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-3886787432926499803?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GC4q97Tg8NZvRJq29fXg9x81GQQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GC4q97Tg8NZvRJq29fXg9x81GQQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GC4q97Tg8NZvRJq29fXg9x81GQQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GC4q97Tg8NZvRJq29fXg9x81GQQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=2mgBQAAPCT4:_JqqP8C3drw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=2mgBQAAPCT4:_JqqP8C3drw:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=2mgBQAAPCT4:_JqqP8C3drw:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=2mgBQAAPCT4:_JqqP8C3drw:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=2mgBQAAPCT4:_JqqP8C3drw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=2mgBQAAPCT4:_JqqP8C3drw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=2mgBQAAPCT4:_JqqP8C3drw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=2mgBQAAPCT4:_JqqP8C3drw:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=2mgBQAAPCT4:_JqqP8C3drw:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=2mgBQAAPCT4:_JqqP8C3drw:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=2mgBQAAPCT4:_JqqP8C3drw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=2mgBQAAPCT4:_JqqP8C3drw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=2mgBQAAPCT4:_JqqP8C3drw:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/2mgBQAAPCT4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/2mgBQAAPCT4/servertransfer-vs-responseredirect.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/servertransfer-vs-responseredirect.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-1692266851016101183</guid><pubDate>Sat, 17 Sep 2011 04:59:00 +0000</pubDate><atom:updated>2011-09-16T21:59:06.169-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ms sql server</category><title>format date time in sql server using getdate() function</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to &lt;b&gt;format date or date time in sql server&lt;/b&gt;. As a web developer i know how important this task is because at any time we may get request from our client to display date in any report of our project according to the format that suits him. We must know different formats of date time. So let's have a look over how to do so.
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;h1 style="font-family: Verdana,sans-serif; font-size: small;"&gt;


format date time in sql server using getdate() function&lt;/h1&gt;
&lt;br /&gt;
Here's a list of the different date formats that come standard in SQL Server as part of the CONVERT function. It is important to note that the output of these date formats are of &lt;b&gt;VARCHAR&lt;/b&gt; data types, so if you have to compare any dates that are in &lt;b&gt;varchar&lt;/b&gt; data type then again you have to convert them in &lt;b&gt;datetime&lt;/b&gt;  data type.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 100)  -- mon dd yyyy hh:mmAM (or PM)
&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
Sep 16 2011  5:55PM &lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 101)  --mm/dd/yyyy 
&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
09/16/2011   &lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 102)  --yyyy.mm.dd 
&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
2011.09.16 &lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 105)  --dd-mm-yyyy&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
16-09-2011&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 106)  --dd mon yyyy&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
16 Sep 2011&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 107)  --mon dd, yyyy&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
Sep 16, 2011&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 103)  --dd/mm/yyyy&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
16/09/2011&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 104)  --dd.mm.yyyy&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
16.09.2011&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 108)  --hh:mm:ss&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
17:57:08&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 109)  --mon dd yyyy hh:mm:ss:mmmAM (or PM) 
&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
Sep 16 2011  5:57:19:720PM&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 110)  --mm-dd-yyyy&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
09-16-2011&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 111)  --yyyy/mm/dd&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
2011/09/16&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 112)  --yyyymmdd&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
20110916&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 113)  --dd mon yyyy hh:mm:ss:mmm
&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
16 Sep 2011 17:59:30:943&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 114)  --hh:mm:ss:mmm(24h)&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
17:59:44:887&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 120)  --yyyy-mm-dd hh:mm:ss(24h)&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
2011-09-16 17:59:55&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 121)  --yyyy-mm-dd hh:mm:ss.mmm&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
2011-09-16 18:00:13.497&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar, getdate(), 126)  --yyyy-mm-ddThh:mm:ss.mmm&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
2011-09-16T18:00:28.987&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT replace(convert(varchar, getdate(), 111), '/', '')  --yyyy mm dd&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
20110916&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT convert(varchar(7), getdate(), 126)   --yyyy-mm&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
2011-09&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;SELECT right(convert(varchar, getdate(), 106), 8) -- mon yyyy&lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;Output:-&lt;/u&gt;&lt;br /&gt;
Sep 2011&lt;br /&gt;
&lt;br /&gt;
So this is the way to &lt;b&gt;format date or date time in sql server using getdate()&lt;/b&gt; function.&lt;br /&gt;
&lt;br /&gt;
I love your feedback.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-1692266851016101183?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sVffv3bhADEuRf1evxlwJ3nbAuk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sVffv3bhADEuRf1evxlwJ3nbAuk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sVffv3bhADEuRf1evxlwJ3nbAuk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sVffv3bhADEuRf1evxlwJ3nbAuk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=9qmoprTfnqo:33fW0SerQJo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=9qmoprTfnqo:33fW0SerQJo:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=9qmoprTfnqo:33fW0SerQJo:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=9qmoprTfnqo:33fW0SerQJo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=9qmoprTfnqo:33fW0SerQJo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=9qmoprTfnqo:33fW0SerQJo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=9qmoprTfnqo:33fW0SerQJo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=9qmoprTfnqo:33fW0SerQJo:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=9qmoprTfnqo:33fW0SerQJo:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=9qmoprTfnqo:33fW0SerQJo:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=9qmoprTfnqo:33fW0SerQJo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=9qmoprTfnqo:33fW0SerQJo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=9qmoprTfnqo:33fW0SerQJo:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/9qmoprTfnqo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/9qmoprTfnqo/format-date-time-in-sql-server-using.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/format-date-time-in-sql-server-using.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-2703487234476066678</guid><pubDate>Fri, 16 Sep 2011 05:10:00 +0000</pubDate><atom:updated>2011-09-15T22:12:58.032-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">technology news</category><title>Google Gravity</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
I love google because google is always a fun and easy to use. Now, you can play with Google. Ricardo Cabello a designer/developer has developed &lt;b&gt;Google Gravity&lt;/b&gt;. A fun filled site, in which the elements of the Google Home page are subjected to gravitational force and they fall down in front of your eyes, as illustrated in given below screenshot.
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-S_HltY_5NGQ/TnLWspUpukI/AAAAAAAAATk/DzVdjxLUEEc/s1600/google-gravity.JPG" imageanchor="1"&gt;&lt;img border="0" height="160" src="http://4.bp.blogspot.com/-S_HltY_5NGQ/TnLWspUpukI/AAAAAAAAATk/DzVdjxLUEEc/s400/google-gravity.JPG" alt="Google Gravity" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
Despite all fun you can still &lt;b&gt;use Google Gravity to search the web&lt;/b&gt;.  You can play with all elements in Google Gravity, like the Google logo or the search box or links or buttons. You can drag them and throw them or do whatever you like. &lt;br /&gt;
&lt;br /&gt;
Google Gravity is the best example of the power of html 5.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;What requires for Google Gravity&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;To enjoy this fun you need to have &lt;b&gt;Google Chrome&lt;/b&gt; (Web Browser developed by Google) installed in your computer. Although it works in &lt;b&gt;Safari&lt;/b&gt; and in &lt;b&gt;Firefox&lt;/b&gt; too but its working best in Google Chrome.&lt;/li&gt;
&lt;li&gt;Once you have installed &lt;b&gt;Google Chrome&lt;/b&gt; then you are ready to enjoy the fun.&lt;/li&gt;
&lt;li&gt;Log on to www.google.com or its regional version (www.google.pk etc.)&lt;/li&gt;
&lt;li&gt; In the Google search type &lt;b&gt;Google Gravity&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;Now Press the &lt;b&gt;I am feeling Lucky button&lt;/b&gt; below the Search bar, on the right or click on very first link or click on this link to enjoy the fun &lt;a href="http://mrdoob.com/projects/chromeexperiments/google_gravity/"&gt;Google Gravity&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Now watch what happens :)&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Play with Google Gravity and share your experience with me. I always love your feedback.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-2703487234476066678?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dYCYYbEwiCmvhl-yQ1D3xL5twkY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dYCYYbEwiCmvhl-yQ1D3xL5twkY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dYCYYbEwiCmvhl-yQ1D3xL5twkY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dYCYYbEwiCmvhl-yQ1D3xL5twkY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QFti766dYQ4:BI9fe_pjoRo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QFti766dYQ4:BI9fe_pjoRo:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=QFti766dYQ4:BI9fe_pjoRo:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QFti766dYQ4:BI9fe_pjoRo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QFti766dYQ4:BI9fe_pjoRo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=QFti766dYQ4:BI9fe_pjoRo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QFti766dYQ4:BI9fe_pjoRo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QFti766dYQ4:BI9fe_pjoRo:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=QFti766dYQ4:BI9fe_pjoRo:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QFti766dYQ4:BI9fe_pjoRo:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QFti766dYQ4:BI9fe_pjoRo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=QFti766dYQ4:BI9fe_pjoRo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QFti766dYQ4:BI9fe_pjoRo:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/QFti766dYQ4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/QFti766dYQ4/google-gravity.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-S_HltY_5NGQ/TnLWspUpukI/AAAAAAAAATk/DzVdjxLUEEc/s72-c/google-gravity.JPG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/google-gravity.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-8285758063042554136</guid><pubDate>Wed, 14 Sep 2011 18:20:00 +0000</pubDate><atom:updated>2011-09-14T11:22:23.371-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>JQuery - $ is not defined error</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to fix this &lt;b&gt;JQuery - $ is not defined &lt;/b&gt;error. There are various reasons behind this error. Let's have a look on those reasons.

&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;h1 style="font-family: Verdana,sans-serif; font-size: small;"&gt;

JQuery - $ is not defined error&lt;/h1&gt;
&lt;ol&gt;
&lt;li&gt;You have JavaScript running before the web page is fully loaded, and as such, before jQuery is fully loaded.&lt;/li&gt;
&lt;li&gt;Your JavaScript file is not being properly loaded into your web page.&lt;/li&gt;
&lt;li&gt;You might have a botched version of jQuery. This could happen because someone edited the core file, or a plugin may have overwritten the $ variable.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
If you have &lt;b&gt;firebug &lt;/b&gt;installed then you should also check the &lt;b&gt;net panel&lt;/b&gt; to see if the file is actually being loaded properly. If not, it will be highlighted red and will say "404" beside it. If the file is loading properly, that means the issue is number 3.&lt;br /&gt;
&lt;br /&gt;
Please confirm that all the javascript code is being run inside a code block such as:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="js" name="code"&gt;$(document).ready(function () {
  //your code comes here
});&lt;/pre&gt;
&lt;br /&gt;
This will ensure that your code is being loaded after jQuery has been initialized.&lt;br /&gt;
&lt;br /&gt;
One more thing that you must check is that you are not loading any jquery plugins before you load jQuery. &lt;b&gt;Plugins extend the "$" object&lt;/b&gt;, so if you load a plugin before loading jQuery core, then you'll get the error you described.&lt;br /&gt;
&lt;br /&gt;
So that's it. This is the way to get rid of this &lt;b&gt;JQuery - $ is not defined&lt;/b&gt; nasty error.&lt;br /&gt;
&lt;br /&gt;
I hope you will find this tutorial very interesting. &lt;br /&gt;
&lt;br /&gt;
I love your feedback.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-8285758063042554136?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2yqDhp4CQ4jbazOq7OX26NAcjgE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2yqDhp4CQ4jbazOq7OX26NAcjgE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2yqDhp4CQ4jbazOq7OX26NAcjgE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2yqDhp4CQ4jbazOq7OX26NAcjgE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=K-ojaT_KpIA:EY22F-hbBio:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=K-ojaT_KpIA:EY22F-hbBio:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=K-ojaT_KpIA:EY22F-hbBio:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=K-ojaT_KpIA:EY22F-hbBio:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=K-ojaT_KpIA:EY22F-hbBio:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=K-ojaT_KpIA:EY22F-hbBio:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=K-ojaT_KpIA:EY22F-hbBio:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=K-ojaT_KpIA:EY22F-hbBio:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=K-ojaT_KpIA:EY22F-hbBio:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=K-ojaT_KpIA:EY22F-hbBio:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=K-ojaT_KpIA:EY22F-hbBio:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=K-ojaT_KpIA:EY22F-hbBio:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=K-ojaT_KpIA:EY22F-hbBio:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/K-ojaT_KpIA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/K-ojaT_KpIA/jquery-is-not-defined-error.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/jquery-is-not-defined-error.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-1825234267223288095</guid><pubDate>Wed, 14 Sep 2011 17:50:00 +0000</pubDate><atom:updated>2011-09-14T10:50:08.370-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">asp.net</category><title>Difference between .ToString() and Convert.ToString()</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn the &lt;b&gt;difference between .ToString() and Convert.ToString() in asp.net&lt;/b&gt;. It is most commonly asked question in interview for a web developer post. 

&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
The only basic difference between them is Convert.ToString() function handles &lt;b&gt;null&lt;/b&gt; while
.ToString() does not handle &lt;b&gt;null&lt;/b&gt;, in fact .ToString() will throw a &lt;b&gt;NULL&lt;/b&gt; reference exception error. So for good coding practice always use Convert.ToString().&lt;br /&gt;
&lt;br /&gt;
So that's it. I hope you will find this tutorial very handy.&lt;br /&gt;
&lt;br /&gt;
I love your feedback.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-1825234267223288095?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/M9ZyAYw2OBPXNV-4ypc73yXzPiU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M9ZyAYw2OBPXNV-4ypc73yXzPiU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/M9ZyAYw2OBPXNV-4ypc73yXzPiU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M9ZyAYw2OBPXNV-4ypc73yXzPiU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=7ifZa4brMtY:VwzCH8C7_sk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=7ifZa4brMtY:VwzCH8C7_sk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=7ifZa4brMtY:VwzCH8C7_sk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=7ifZa4brMtY:VwzCH8C7_sk:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=7ifZa4brMtY:VwzCH8C7_sk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=7ifZa4brMtY:VwzCH8C7_sk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=7ifZa4brMtY:VwzCH8C7_sk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=7ifZa4brMtY:VwzCH8C7_sk:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=7ifZa4brMtY:VwzCH8C7_sk:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=7ifZa4brMtY:VwzCH8C7_sk:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=7ifZa4brMtY:VwzCH8C7_sk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=7ifZa4brMtY:VwzCH8C7_sk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=7ifZa4brMtY:VwzCH8C7_sk:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/7ifZa4brMtY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/7ifZa4brMtY/difference-between-tostring-and.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/difference-between-tostring-and.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-4208744279852680610</guid><pubDate>Wed, 14 Sep 2011 17:17:00 +0000</pubDate><atom:updated>2011-09-14T10:31:27.487-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ms sql server</category><title>Count rows of all tables in a sql server database</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to count rows of all tables in a sql server database. we can find out all the tables present in a database along with their row count with the help of &lt;b&gt;system&lt;/b&gt; tables.

&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;h1 style="font-family: Verdana,sans-serif; font-size: small;"&gt;
Count rows of all tables in a sql server database &lt;/h1&gt;
&lt;pre class="sql" name="code"&gt;Select tbl.name, si.rows from sysindexes si
inner join sys.tables tbl on si.id = tbl.object_id and indid &amp;lt; 2
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Sys.tables&lt;/b&gt; has each and every information about all the tables in a given database. While &lt;b&gt;sysindexes&lt;/b&gt; contains all the information of all the &lt;b&gt;indexes&lt;/b&gt; present in the database. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;si.rows&lt;/b&gt; of the &lt;b&gt;sysindexes&lt;/b&gt; give the row count associated with the given index.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Tbl.name&lt;/b&gt; gives the table name and comes from the &lt;b&gt;sys.table&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;si.id&lt;/b&gt; and &lt;b&gt;tbl.object_id&lt;/b&gt; gives the unique ID associated with each table present in the database.&lt;br /&gt;
&lt;br /&gt;
As far as indid is concerned, it stands for the &lt;b&gt;ID of the index&lt;/b&gt;, 1 is for clustered index and (&amp;gt; 1) is for nonclustered index.&lt;br /&gt;
&lt;br /&gt;
For SQL 2000 we need to do little modification in order to get the desired results.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sql" name="code"&gt;select tbl.name, dd.rows from sysindexes dd

inner join sysobjects tbl on dd.id = tbl.id where dd.indid &amp;lt; 2 and tbl.xtype = 'U'
&lt;/pre&gt;
&lt;br /&gt;
So that's it. This is the way to count rows of all tables in a ms sql server database.&lt;br /&gt;
&lt;br /&gt;
I love your feedback.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-4208744279852680610?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jNZ-h2EKKlNMamFHUoI9sYFGRzo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jNZ-h2EKKlNMamFHUoI9sYFGRzo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jNZ-h2EKKlNMamFHUoI9sYFGRzo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jNZ-h2EKKlNMamFHUoI9sYFGRzo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=IMsnGpLcTr0:8xaG9K_FMho:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=IMsnGpLcTr0:8xaG9K_FMho:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=IMsnGpLcTr0:8xaG9K_FMho:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=IMsnGpLcTr0:8xaG9K_FMho:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=IMsnGpLcTr0:8xaG9K_FMho:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=IMsnGpLcTr0:8xaG9K_FMho:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=IMsnGpLcTr0:8xaG9K_FMho:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=IMsnGpLcTr0:8xaG9K_FMho:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=IMsnGpLcTr0:8xaG9K_FMho:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=IMsnGpLcTr0:8xaG9K_FMho:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=IMsnGpLcTr0:8xaG9K_FMho:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=IMsnGpLcTr0:8xaG9K_FMho:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=IMsnGpLcTr0:8xaG9K_FMho:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/IMsnGpLcTr0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/IMsnGpLcTr0/count-rows-of-all-tables-in-sql-server.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/count-rows-of-all-tables-in-sql-server.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-5825077736787501609</guid><pubDate>Mon, 12 Sep 2011 18:47:00 +0000</pubDate><atom:updated>2011-09-12T12:59:02.434-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">technology news</category><title>.XXX web domain registration starts</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;b&gt;.XXX web domain registration starts&lt;/b&gt;. Companies and celebrities are being given the chance to safe their names from porn hijacking ahead of the launch of the &lt;b&gt;.xxx&lt;/b&gt; web domain.

&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;br /&gt;
Brands/Celebrities can now request to have their name blocked from use with the new suffix, which goes live next year.&lt;br /&gt;
&lt;br /&gt;
Existing adult sites can also submit their application to reserve a place on .xxx&lt;br /&gt;
The "red light" suffix is intended to make it easier to find or avoid sexually explicit material online.&lt;br /&gt;
ICM Registry, which is administering the launch, said it hoped to "promote a responsible approach to adult content".&lt;br /&gt;
&lt;br /&gt;
Brand and IP holders wanting to register now have 50 days - a so-called "sunrise period" - to submit their application.&lt;br /&gt;
&lt;br /&gt;
For security purpose, Companies and individuals that do not want their name 
associated with pornography will be able to pay a one-off fee of between
 $150 and $300 (£100 to £200), depending on which company they register 
their domain with. For instance, UK adult star Teresa May might wish to bid for a
 .xxx domain, whereas UK home secretary Theresa May might consider 
protecting her name.&lt;br /&gt;
Conflicts over exact matching names will go through an arbitration process.&lt;br /&gt;
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;b&gt;&lt;span class="cross-head"&gt;"Win, win, win"&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;div id="story_continues_2"&gt;
Companies are under no obligation to go .xxx, according to ICM Registry's chief executive Stuart Lawley.&lt;/div&gt;
&lt;div id="story_continues_2"&gt;
&lt;br /&gt;&lt;/div&gt;
But those that did would contribute to an overall &lt;b&gt;"win, win, 
win"&lt;/b&gt; situation, with benefits for adult content providers, web users in 
search of pornography, and those wishing to avoid it.&lt;br /&gt;
&lt;br /&gt;
"Regardless of what your personal views are on the existence 
of pornography on the internet, at least .xxx will give people the 
information they need to make a choice," said Mr Lawley.&lt;br /&gt;
&lt;br /&gt;
However, Jerry Barnet, chairman of the Adult Industry Trade 
Association, warned that anti-pornography activists would likely 
increase their efforts to block online adult content.&lt;br /&gt;
&lt;br /&gt;
"I have mixed feeling about it," he told BBC News. "From the 
industry and freedom of speech point of view, I'm concerned that 
pro-censorship and morality campaigners will use this as an excuse to 
try and introduce some form of censorship.&lt;br /&gt;
&lt;br /&gt;
"But from a business point of view it's kind of good for us 
because there are new names available, and that makes branding and site 
naming more interesting," he added. &lt;br /&gt;
&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;b&gt;&lt;span class="cross-head"&gt;Malware issues&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;b&gt;&lt;span class="cross-head"&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;
	      ICM Registry does not process the applications directly. Firms
 must first approach a standard domain registrar in their home country, 
such as Go Daddy or Enom.&lt;br /&gt;
&lt;br /&gt;
To ensure the registered porn sites do not harbour malware or present
 any other cyber security-related threats, ICM said they will be scanned
 daily by security firm McAfee - something that would make them safer to
 visit than many non-xxx sites.&lt;br /&gt;
&lt;br /&gt;
The websites will be overseen by the International Foundation
 for Online Responsibility, and will be fitted with an electronic label 
to allow parents to adjust their browser settings and make sure children
 do not have access to certain sites.&lt;br /&gt;
&lt;br /&gt;
After the sunrise period is over, a "land rush" period will 
run for 17 days, allowing prospective adult sites to register for the 
remaining .xxx addresses.&lt;br /&gt;
&lt;br /&gt;
Following that, anyone else will be able to submit an application for non-reserved names on a first come, first served basis.&lt;br /&gt;
&lt;br /&gt;
Source by &lt;a href="http://www.bbc.co.uk/news/technology-14821192"&gt;BBC &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="cross-head"&gt;&amp;nbsp;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-5825077736787501609?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6DRxB9PXrj321OByqpXZ-H9NrNA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6DRxB9PXrj321OByqpXZ-H9NrNA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6DRxB9PXrj321OByqpXZ-H9NrNA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6DRxB9PXrj321OByqpXZ-H9NrNA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QgmvU8VW2Lk:otwGyA1pD2g:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QgmvU8VW2Lk:otwGyA1pD2g:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=QgmvU8VW2Lk:otwGyA1pD2g:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QgmvU8VW2Lk:otwGyA1pD2g:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QgmvU8VW2Lk:otwGyA1pD2g:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=QgmvU8VW2Lk:otwGyA1pD2g:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QgmvU8VW2Lk:otwGyA1pD2g:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QgmvU8VW2Lk:otwGyA1pD2g:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=QgmvU8VW2Lk:otwGyA1pD2g:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QgmvU8VW2Lk:otwGyA1pD2g:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QgmvU8VW2Lk:otwGyA1pD2g:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=QgmvU8VW2Lk:otwGyA1pD2g:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=QgmvU8VW2Lk:otwGyA1pD2g:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/QgmvU8VW2Lk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/QgmvU8VW2Lk/xxx-web-domain-registration-starts.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/xxx-web-domain-registration-starts.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5865907911743884519.post-7458471456137142229</guid><pubDate>Mon, 12 Sep 2011 16:11:00 +0000</pubDate><atom:updated>2011-09-12T09:14:42.531-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">asp.net</category><title>No value given for one or more required parameters. Import to excel error</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="summary" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
In this programming tutorial we will learn how to fix this nasty error: &lt;b&gt;No value given for one or more required parameters. Import to excel error&lt;/b&gt;. Few days ago one of my friend asked me to provide the code that &lt;a href="http://nice-tutorials.blogspot.com/2011/05/import-excel-data-to-gridview.html" target="_blank"&gt;import excel data to gridview&lt;/a&gt;. I gave him the link of the import excel data to gridview tutorial but he suddenly asked me that he is getting the above mentioned error. I checked his code and fixed the error. Let's have a look over how i fixed this error. 

&lt;/div&gt;
&lt;div class="restofpost" style="font-family: Verdana,sans-serif; font-size: small;"&gt;
&lt;h1 style="font-family: Verdana,sans-serif; font-size: small;"&gt;
No value given for one or more required parameters. Import to excel error&lt;/h1&gt;
&lt;pre class="csharp" name="code"&gt;             OleDbConnection oconn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + Server.MapPath("~/test.xlsx") + ";Extended Properties=Excel 12.0;");
            oconn.Open();
            //Getting records from Sheet1 of excel file. As you know one excel file may have many sheets, in this case we are getting data from Sheet1                   
            string sqlQuery = "select * from [Sheet1$] where [user_name]=Lauren";
            OleDbCommand ocmd = new OleDbCommand(sqlQuery, oconn);
            DataSet ds = new DataSet();
            OleDbDataAdapter odapt = new OleDbDataAdapter(ocmd);
            odapt.Fill(ds);
&lt;/pre&gt;
&lt;br /&gt;
My friend was showing the above mentioned code that it was giving this error: &lt;b&gt;No value given for one or more required parameters&lt;/b&gt;. I checked the code and found below mentioned line as a guilty line, causing the error.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="csharp" name="code"&gt;string sqlQuery = "select * from [Sheet1$] where [user_name]=Humaira Shafique";
&lt;/pre&gt;
&lt;br /&gt;
The column(Parameter) &lt;b&gt;user_name&lt;/b&gt; in excel file was containing &lt;b&gt;string&lt;/b&gt; data so the value of column in &lt;b&gt;where clause&lt;/b&gt; should be enclosed in single quote like given below.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="csharp" name="code"&gt;string sqlQuery = "select * from [Sheet1$] where [user_name]='Humaira Shafique'";
&lt;/pre&gt;
&lt;br /&gt;
This fix my friend's error but there are some more reasons that cause this error, these are&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;Parameter name not spell correctly.&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Case-Sensitivity issue in parameter (firstname instead of FirstName)&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
So that's it. I love your feedback.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5865907911743884519-7458471456137142229?l=nice-tutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Rdr8eGv8ATPxKiHGbCgn3UjD9hg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Rdr8eGv8ATPxKiHGbCgn3UjD9hg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Rdr8eGv8ATPxKiHGbCgn3UjD9hg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Rdr8eGv8ATPxKiHGbCgn3UjD9hg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=Yr8xIagsVgE:k2K9hbIkcwI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=Yr8xIagsVgE:k2K9hbIkcwI:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=Yr8xIagsVgE:k2K9hbIkcwI:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=Yr8xIagsVgE:k2K9hbIkcwI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=Yr8xIagsVgE:k2K9hbIkcwI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=Yr8xIagsVgE:k2K9hbIkcwI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=Yr8xIagsVgE:k2K9hbIkcwI:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=Yr8xIagsVgE:k2K9hbIkcwI:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=Yr8xIagsVgE:k2K9hbIkcwI:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=Yr8xIagsVgE:k2K9hbIkcwI:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=Yr8xIagsVgE:k2K9hbIkcwI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?i=Yr8xIagsVgE:k2K9hbIkcwI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/nicetutorials?a=Yr8xIagsVgE:k2K9hbIkcwI:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/nicetutorials?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/nicetutorials/~4/Yr8xIagsVgE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/nicetutorials/~3/Yr8xIagsVgE/no-value-given-for-one-or-more-required.html</link><author>noreply@blogger.com (Adeel Fakhar)</author><thr:total>0</thr:total><feedburner:origLink>http://nice-tutorials.blogspot.com/2011/09/no-value-given-for-one-or-more-required.html</feedburner:origLink></item></channel></rss>

