<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TLS Web Solutions &#187; XHTML</title>
	<atom:link href="http://www.tlswebsolutions.com/category/xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tlswebsolutions.com</link>
	<description></description>
	<lastBuildDate>Mon, 05 Jul 2010 15:58:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Google AJAX API and jQuery integration, bandwidth free!</title>
		<link>http://www.tlswebsolutions.com/google-ajax-api-and-jquery-integration-bandwidth-free/</link>
		<comments>http://www.tlswebsolutions.com/google-ajax-api-and-jquery-integration-bandwidth-free/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 19:45:29 +0000</pubDate>
		<dc:creator>Tim Selaty</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google ajax api]]></category>
		<category><![CDATA[google and jquery]]></category>
		<category><![CDATA[google api]]></category>
		<category><![CDATA[google.load()]]></category>
		<category><![CDATA[jquery bandwidth]]></category>
		<category><![CDATA[jquery integration]]></category>

		<guid isPermaLink="false">http://www.tlswebsolutions.com/?p=222</guid>
		<description><![CDATA[As we all know Google has released some pretty nifty things in the past. Today, we&#8217;re going to [...]]]></description>
			<content:encoded><![CDATA[<p>As we all know Google has released some pretty nifty things in the past. Today, we&#8217;re going to look at one of its most delightful additions for web developers. Google AJAX API.</p>
<h3>What is Google AJAX API?</h3>
<p>Google&#8217;s AJAX APIs let you implement rich, dynamic web sites entirely in JavaScript and HTML. You can add a map to your site, a dynamic search box, or download feeds with just a few lines of JavaScript.<span id="more-222"></span></p>
<p>In human terms, it loads common JavaScript frameworks such as MooTools, jQuery, Prototype, jQuery UI and of course even Google Maps without having to have the (.js) files on your server.</p>
<h3>That&#8217;s great, but what does that mean for me?</h3>
<p>Bandwidth, bandwidth, bandwidth, cache headers, and bandwidth.</p>
<p>Because jQuery, like images, must be downloaded onto the users computer before it can be used. If you have a slow server this can be a painful process especially if you use multiple JavaScript libraries.</p>
<p>Google is lightning fast, always. To have one, maybe two less items to download from your server not only saves bandwidth, but it saves you time. You don&#8217;t have to go to jQuery and download the latest version, upload it to your server, and type in the path to the (.js) file. You also don&#8217;t have to worry about having relative or absolute URLs due because of pretty URLs (seo friendly URLs).</p>
<p>You just add a two lines of code to the head of your template, sometimes even one, and you&#8217;re done. Google automatically sends a request to their server to download all of the JavaScript you&#8217;re requesting, cache the headers, and return it back to you.</p>
<p>Even better yet, the code is cleaner. You only need one line of code to load in multiple JavaScript libraries instead of your usual 3-5 lines of code.</p>
<h3>Enough already, just show me how</h3>
<p>Glad you asked. Below is the example XHTML page used to load in jQuery and execute a test function to ensure that it works.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">src</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;http://www.google.com/jsapi&quot;</span>&gt;&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;</span>google.load(&quot;jquery&quot;, &quot;1.3.2&quot;);<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;</span>$(document).ready(function(){$(&quot;.expanded&quot;).hide();$(&quot;a&quot;).click(function(){$(&quot;.expanded&quot;).fadeIn(600);});})<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">p</span> <span style="color: #000066;color: #FF0000;">class</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;expanded&quot;</span>&gt;</span>Who uses paragraphs anymore?<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">p</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">a</span> <span style="color: #000066;color: #FF0000;">href</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;#&quot;</span>&gt;</span>Expand!?<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">a</span>&gt;</span></pre></div></div>

<p>Now, we&#8217;ve loaded in jQuery and are able to get cracking away. However, what if we want to add more than one library? Simple. All we do is add another instance of google.load();. Below is an example with both jQuery and jQuery UI.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;</span>
google.load(&quot;jquery&quot;, &quot;1.3.2&quot;);
google.load(&quot;jqueryui&quot;, &quot;1.7.2&quot;);
<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span></pre></div></div>

<p>Want to use the latest version of jQuery so you never have to update the code to match the latest version? No problem use this instead.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;</span>google.load(&quot;jquery&quot;, &quot;1.3&quot;);<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span></pre></div></div>

<p>What this says is: &#8220;Find the latest stable release that starts with 1.3.x&#8221;. In our case it automatically found v1.3.2.</p>
<p>Pretty nifty eh? What&#8217;s even better is that jQuery THEMSELVES are using Google&#8217;s server to call their own JavaScript library. If you view the source code of http://www.jquery.com/ you&#8217;ll see on Line 9 the following code.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">src</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot;</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span></pre></div></div>

<p>This is also another way of calling jQuery from Google&#8217;s servers.</p>
<p>That&#8217;s it! Enjoy one less heavy server request.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tlswebsolutions.com/google-ajax-api-and-jquery-integration-bandwidth-free/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>BlueEarth 001 Free XHTML / CSS Template</title>
		<link>http://www.tlswebsolutions.com/blueearth-001/</link>
		<comments>http://www.tlswebsolutions.com/blueearth-001/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 10:36:32 +0000</pubDate>
		<dc:creator>Tim Selaty</dc:creator>
				<category><![CDATA[Templates]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[blue]]></category>
		<category><![CDATA[blue earth]]></category>
		<category><![CDATA[blueearth]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[light]]></category>
		<category><![CDATA[silver]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[two column]]></category>
		<category><![CDATA[XHTML / CSS]]></category>

		<guid isPermaLink="false">http://www.tlswebsolutions.com/?p=182</guid>
		<description><![CDATA[BlueEarth is a XHTML / CSS template that utilizes various JavaScript effects using the jQuery framework. The template [...]]]></description>
			<content:encoded><![CDATA[<p><strong>BlueEarth is a XHTML / CSS template that utilizes various JavaScript effects using the jQuery framework.</strong></p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.tlswebsolutions.com/stream/001/001-big.jpg" alt="BlueEarth 001 Large Preview" /></p>
<p>The template is tailored towards a company providing a service such as hosting. The logo is raw text inside of an H1 tag and can be changed. The layout uses a fixed width of 950px, but the design can be adapted to any fixed width size. It was created to be fluid, however, the coda slider doesn&#8217;t support a CSS width percentage.</p>
<p>The theme comes with 2 HTML files</p>
<ul>
<li> index.html</li>
<li> examples.html</li>
</ul>
<p>The index.html is the screenshot you see above, while examples.html has numerous predefined styles showcased. The predefined styles range from alerts, dialogs, lists, and emphasis blocks.</p>
<p><strong>Other features:</strong></p>
<ul>
<li> To navigation list items have example background (aka, perfect rounded corners no matter how big)</li>
<li> Rounded outer container (adjusts to users width preference)</li>
<li> Text-based logo and slogan</li>
<li> jQuery Coda Slider (click Solution by industry for example)</li>
<li>Valid XHTML 1.0 Strict</li>
<li> Valid CSS 2.1</li>
<li> Works in every major browser (Firefox 2+3,  IE 7, 8, Safari, Opera, Chrome)</li>
</ul>
<p><span class="download"><a href="http://www.tlswebsolutions.com/downloads/blue-earth-001">Download BlueEarth 001 Free XHTML / CSS Template</a> <br />Downloaded 161 times.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tlswebsolutions.com/blueearth-001/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Favicon &#8211; Do It Yourself, The Right Way</title>
		<link>http://www.tlswebsolutions.com/favicon-do-it-yourself-the-right-way/</link>
		<comments>http://www.tlswebsolutions.com/favicon-do-it-yourself-the-right-way/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 01:41:36 +0000</pubDate>
		<dc:creator>Tim Selaty</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[16x16]]></category>
		<category><![CDATA[browser icon]]></category>
		<category><![CDATA[favicon]]></category>
		<category><![CDATA[favorite icon]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.tlswebsolutions.com/?p=98</guid>
		<description><![CDATA[Don&#8217;t you love it when you&#8217;re browsing the internet and all of a sudden you come across the [...]]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t you love it when you&#8217;re browsing the internet and all of a sudden you come across the most slick website imaginable&#8230; and the one thing that stands out above everything is a kickass favicon?</p>
<p>What&#8217;s a favicon you ask? Click the <strong>&#8220;Faviwhat?&#8221;</strong> tab below.</p>
<div id="tabs">
<ul>
<li><a href="#tabs-1">Creating the Favicon</a></li>
<li><a href="#tabs-2">Show it off!</a></li>
<li><a href="#tabs-3">Faviwhat?</a></li>
</ul>
<div id="tabs-1">
<h2>The creation:</h2>
<p>You have a snazzy logo and want the icon next to the URL bar to match it. How you ask? Sit back, read, enjoy the ride. Oh, and I&#8217;ll throw in a couple snapshots too.</p>
<p>In this example, I&#8217;ll be using a quickly created logo for demonstrative purposes. </p>
<p class="aligncenter"><img src="http://www.tlswebsolutions.com/wp-content/uploads/2009/07/nukleeur.png" alt="nukleeur" title="nukleeur" width="250" height="50" class="no-border" /></p>
<p>Open the image in Photoshop and select the crop tool.</p>
<p><img src="http://www.tlswebsolutions.com/wp-content/uploads/2009/07/crop1.png" alt="crop1" title="crop1" width="190" height="180" class="aligncenter size-full wp-image-115" /></p>
<p>Then, type &#8220;16px&#8221; in both the height and width fields in the top part of the screen. This will allow whatever you select with the crop tool in the next step, to automatically be adjusted and resized to 16&#215;16. The reason why it&#8217;s 16&#215;16 is because that is the standard Favicon size most widely accepted by all browsers.</p>
<p><img src="http://www.tlswebsolutions.com/wp-content/uploads/2009/07/crop2.png" alt="crop2" title="crop2" width="483" height="157" class="aligncenter size-full wp-image-117" /></p>
<p>Select the following area, this EXACT area will be your favicon upon accepting the changes.<br />
<strong>Note:</strong> Make sure that at the top of your screen you have the &#8216;delete&#8217; radio button clicked, and that after selecting the area you click the &#8216;Approve&#8217; check mark on the top right part of Photoshop.</p>
<p><img src="http://www.tlswebsolutions.com/wp-content/uploads/2009/07/crop3.png" alt="crop3" title="crop3" width="309" height="87" class="aligncenter size-full wp-image-118" /></p>
<p>Now, export it into a web readable format. This is the important part. All favicon&#8217;s use a bit depth of 32 colors. Aka, if your cropped image has 60 colors, it&#8217;ll actually REMOVE any of those extra colors creating an undesirable effect. Let&#8217;s use a promised result by first clicking &#8220;Save for Web and Devices&#8221; or ALT+CTR+SHIFT+S for short.</p>
<p><img src="http://www.tlswebsolutions.com/wp-content/uploads/2009/07/crop4.png" alt="crop4" title="crop4" width="370" height="566" class="aligncenter size-full wp-image-122" /></p>
<p>Now, use the following settings and save the file as &#8220;favicon.gif&#8221;. After you have it saved, rename it to &#8220;favicon.ico&#8221; and that&#8217;s it! You officially created your own favicon using Photoshop from a logo. Not so bad, is it? What do you do with it you ask? Click the <strong>&#8220;Show it off!&#8221;</strong> tab above to see and grab the snippets of code that make this shining piece of work display next to the site&#8217;s URL.</p>
</div>
<div id="tabs-2">
<h2>The snippet, the problem, and the solution</h2>
<p>So, we&#8217;ve got the icon, but what do we do with it? We insert it into the header of our HTML page. </p>
<p>First, using your favorite FTP Client (we recommend <a href="http://filezilla-project.org/" title="FileZilla Project">FileZilla</a>) to upload the favicon to the ROOT of your site. Generally, this is the same place as your index.html is stored.</p>
<p>After the icon has been uploaded, we can now tell the webpage that when loaded, to look for this icon and display it in the browser. To do this, we need a snippet of code.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">link</span> <span style="color: #000066;color: #FF0000;">rel</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;shortcut icon&quot;</span> <span style="color: #000066;color: #FF0000;">href</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;/favicon.ico&quot;</span> <span style="color: #66cc66;color: #000080;">/</span>&gt;</span></pre></td></tr></table></div>

<p>What this does is allows the browser to say &#8220;Find this particular file starting at the root of the site, check its bit depth&#8230; and if all is well.. set this image to be the shortcut and default URL icon for the site&#8221;.</p>
<p>Add the snippet above inside the HEAD tag and your site will now use the Favorite Icon (Favicon). </p>
<h3>I did all that, why is it not showing?</h3>
<p>One answer. Cache. </p>
<p>Most browsers (like FireFox) stores a website&#8217;s data, icons, etc in a caching system. When revisiting that site during the current session state it will try to use as many previous resources as possible. This includes CSS, JavaScript.. and as you guessed it.. images. Since your Favicon is indeed an image and your site didn&#8217;t have an image about ten minutes ago, it used a blank clear one instead and stored it for later use.</p>
<p>In order to see the updated version go to &#8220;Tools -> Clear Private Data&#8221; and ONLY check the &#8220;Cache&#8221; and &#8220;Offline Website Data&#8221; checkboxes. Then clear it and close FireFox. If it asks you to restore your previous session, start a new one.</p>
<p><em>Viola!</em></p>
<p>Enjoy adding that final touch to your already amazing website.</p>
<p><span class="validatedMsg"><a href="/examples/favicon-example.zip">&rarr; Download Source / Examples &larr;</a></span></p>
<p>Source ZIP Includes:</p>
<ul>
<li>Nukleeur Logo</li>
<li>Favicon</li>
<li>HTML file with Favicon Snippet</li>
</ul>
</div>
<div id="tabs-3">
<h2>What exactly is a Favicon and why don&#8217;t I have one already?</h2>
<p>Favicon stands for &#8220;Favorites Icon&#8221;. It&#8217;s the little icon beside your site&#8217;s name in the favorites list, before the URL in the address bar, as a bookmarked website on the desktop, in the &#8220;Links&#8221; bar and on the windows taskbar.</p>
<p>If you don&#8217;t have one, this is because you have not specified in the HEAD element of your HTML pages to look for a favicon.</p>
<p>Still scratching at your head?</p>
<p>Here is Google&#8217;s favicon.</p>
<p><img src="http://www.tlswebsolutions.com/wp-content/uploads/2009/07/crop5.png" alt="crop5" title="crop5" width="300" height="86" class="aligncenter size-full wp-image-126" /></p>
</div>
</div>
<p><script type="text/javascript">$(function(){$('#tabs').tabs();});</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tlswebsolutions.com/favicon-do-it-yourself-the-right-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search Input Form Forecast &#8211; Blurry With A Chance of Rain</title>
		<link>http://www.tlswebsolutions.com/search-input-form-forecast-blurry-with-a-chance-of-rain/</link>
		<comments>http://www.tlswebsolutions.com/search-input-form-forecast-blurry-with-a-chance-of-rain/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 23:39:55 +0000</pubDate>
		<dc:creator>Tim Selaty</dc:creator>
				<category><![CDATA[XHTML]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[elements]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[onblur]]></category>
		<category><![CDATA[onfocus]]></category>
		<category><![CDATA[search box]]></category>

		<guid isPermaLink="false">http://www.tlswebsolutions.com/?p=79</guid>
		<description><![CDATA[For the longest time, I&#8217;ve always had to search far and wide for a single small snippet of [...]]]></description>
			<content:encoded><![CDATA[<p>For the longest time, I&#8217;ve always had to search far and wide for a single small snippet of code that allows the following in a text input box:</p>
<ul>
<li>Default text that is displayed</li>
<li>When the user clicks in the text box, the text is cleared out only leave the precursor</li>
<li>If the user does not type anything and clicks away, it resets back to the default value</li>
</ul>
<p>This technique uses two simple html attributes. &#8216;onblur&#8217; and &#8216;onfocus&#8217;. This is most commonly associated with a search box and adds that final spice to a website. Here is the code, free of charge.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">form</span> <span style="color: #000066;color: #FF0000;">method</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;post&quot;</span> <span style="color: #000066;color: #FF0000;">id</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;searchform&quot;</span> <span style="color: #000066;color: #FF0000;">action</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;/&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">fieldset</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">label</span>&gt;</span>Search:<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">label</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">input</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text&quot;</span> <span style="color: #000066;color: #FF0000;">onblur</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;if (this.value == '') {this.value = 'Search...';}&quot;</span> </span>
<span style="color: #009900;"><span style="color: #000066;color: #FF0000;">onfocus</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;if (this.value == 'Search...') {this.value = '';}&quot;</span> </span>
<span style="color: #009900;"><span style="color: #000066;color: #FF0000;">value</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;Search...&quot;</span> <span style="color: #000066;color: #FF0000;">name</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;s&quot;</span> <span style="color: #66cc66;color: #000080;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">fieldset</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">form</span>&gt;</span></pre></td></tr></table></div>

<p>So what exactly IS onblur and onfocus? Javascript, default browser actions, and some super cool tricks. Let me explain&#8230;</p>
<p>The definition of &#8220;onblur&#8221; is <em>&#8220;The onblur event occurs when an object loses focus&#8221;</em>. An object is focused when you have it selected. For example, on the right hand of the screen near the top is our search box. If you click INSIDE of that box, your cursor is now placed inside and will have SELECTED that box. Upon SELECTING that box, it will activate the opposite of &#8220;onblur&#8221; which is &#8220;onfocus&#8221;. The event that is fired off when clicking or &#8220;focusing&#8221; in an object on the page is called &#8220;onfocus&#8221; and when clicking on any other object, which will deselect the currently selected object in favor for another is called &#8220;onblur&#8221;. Just think of a microscope zooming in and out of a 3-D page. </p>
<p>&#8220;I get how and why, but why is there a &lt;fieldset&gt; and &lt;label&gt; in there&#8221; you say? It&#8217;s for XHTML validation purposes. Always remember to have a Label for a form, and to wrap it in a fieldset if there are multiple forms on a page for maximum compatibility for different browsers and mobile devices.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tlswebsolutions.com/search-input-form-forecast-blurry-with-a-chance-of-rain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
