<?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>Vision Master Designs &#187; Web Programming</title>
	<atom:link href="http://visionmasterdesigns.com/category/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://visionmasterdesigns.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 29 Oct 2009 20:00:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Can you do this using Javascript ?!</title>
		<link>http://visionmasterdesigns.com/can-you-do-this-using-javascript/</link>
		<comments>http://visionmasterdesigns.com/can-you-do-this-using-javascript/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 15:50:39 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Javascript Frameworks]]></category>
		<category><![CDATA[Chrome Experiments]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://visionmasterdesigns.com/?p=1348</guid>
		<description><![CDATA[Ok, I was googling for some information when I stumbled upon something called as &#8220;Chrome Experiments&#8220;. I don`t know whether most of you must have seen this site, but it is unbelievable that most of the experiments posted here have been created using javascript ! One of my favourites here is the Depth of Field [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Fcan-you-do-this-using-javascript%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Fcan-you-do-this-using-javascript%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Ok, I was googling for some information when I stumbled upon something called as &#8220;<a href="http://www.chromeexperiments.com/">Chrome Experiments</a>&#8220;. I don`t know whether most of you must have seen this site, but it is unbelievable that most of the experiments posted here have been created using javascript !</p>
<p>One of my favourites here is the <a href="http://mrdoob.com/projects/chromeexperiments/depth_of_field/">Depth of Field example</a>. Screenies below</p>
<p><img class="alignleft" src="http://www.chromeexperiments.com/detail/depth-of-field/img/ahBjaHJvbWV4cGVyaW1lbnRzchcLEg9FeHBlcmltZW50SW1hZ2UY8oEPDA/large" alt="" width="240" height="180" /><img class="aligncenter" src="http://www.chromeexperiments.com/detail/depth-of-field/img/ahBjaHJvbWV4cGVyaW1lbnRzchcLEg9FeHBlcmltZW50SW1hZ2UYqpkPDA/large" alt="" width="240" height="180" /></p>
<p>This just shows how the javascript engines have evolved over the years. Earlier flash used to be every developer/designers dream to create super interactive websites, it is still great for creating RIAs but nowadays Javascript has evolved soo much, it can do most of the stuff which Flash could do.</p>
<p>This site is a real inspiration to those who want to learn more about javascript. Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/can-you-do-this-using-javascript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tutorial : Installing Apache 2.2.11, PHP 5.3, MySQL 5.1.34 &amp; PhpMyAdmin 3.1.4 in Windows Vista/XP</title>
		<link>http://visionmasterdesigns.com/tutorial-installing-apache-php-5-mysql-5-phpmyadmin-windows-vista-xp/</link>
		<comments>http://visionmasterdesigns.com/tutorial-installing-apache-php-5-mysql-5-phpmyadmin-windows-vista-xp/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 19:04:26 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[PHP & MySQL]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[PhpMyAdmin]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://blog.visionmasterdesigns.com/?p=7</guid>
		<description><![CDATA[Learn to install Apache, PHP 5, MySQL 5 and PhpMyAdmin 2.11.x step by step. It has been rated as the best article :).]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-installing-apache-php-5-mysql-5-phpmyadmin-windows-vista-xp%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-installing-apache-php-5-mysql-5-phpmyadmin-windows-vista-xp%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<blockquote><p>
The most recent version of this tutorial has been completely re-written at <a href="http://webdevcodex.com">WebDev Codex</a>.</p>
<p>Learn how to Install <strong>PHP 5.3</strong>,</p>
<p>To view the latest version, Goto <a title="Screencast #1 : Installing Apache 2.2, PHP 5.3, MySQL 5.1 &amp; PHPMyAdmin 3.2 for Windows 7/Vista" href="http://webdevcodex.com/screencast-installing-apache-2-2-php-5-3-mysql-5-1-phpmyadmin-3-2-for-windows-7vista/">Screencast #1 : Installing Apache 2.2, PHP 5.3, MySQL 5.1 &#038; PHPMyAdmin 3.2 for Windows 7/Vista</a></p>
<p>If you want to see the screencast of this tutorial, then goto<br />
<a title="Screencast #1 : Installing Apache 2.2, PHP 5.3, MySQL 5.1 &amp; PHPMyAdmin 3.2 for Windows 7/Vista" href="http://webdevcodex.com/screencast-installing-apache-2-2-php-5-3-mysql-5-1-phpmyadmin-3-2-for-windows-7vista/">Screencast #1 : Installing Apache 2.2, PHP 5.3, MySQL 5.1 &#038; PHPMyAdmin 3.2 for Windows 7/Vista</a>
</p></blockquote>
<p>Not everyone would spend money online to buy webspace just so that they can test out how their latest application works, Well&#8230; Welcome to Vision Master Designs Blog. This tutorial will teach you to set up a developer environment for PHP/MySQL in your computer in no time.</p>
<p>Index :</p>
<ul>
<li>Page 1 : <a title="Introduction" href="http://visionmasterdesigns.com/tutorial-installing-apache-php-5-mysql-5-phpmyadmin-windows-vista-xp/">Introduction</a></li>
<li>Page 2 : <a title="Create Directories &amp; Install Apache" href="http://visionmasterdesigns.com/tutorial-installing-apache-php-5-mysql-5-phpmyadmin-windows-vista-xp/2/">Create Directories &amp; Install Apache</a></li>
<li>Page 3 : <a title="Install PHP5 &amp; Configure php.ini" href="http://visionmasterdesigns.com/tutorial-installing-apache-php-5-mysql-5-phpmyadmin-windows-vista-xp/3/">Install PHP5 &amp; Configure php.ini</a></li>
<li>Page 4 : <a href="http://visionmasterdesigns.com/tutorial-installing-apache-php-5-mysql-5-phpmyadmin-windows-vista-xp/4/">Configure Apache 2.2</a></li>
<li>Page 5 : <a href="http://visionmasterdesigns.com/tutorial-installing-apache-php-5-mysql-5-phpmyadmin-windows-vista-xp/5/">Installing &amp; Configuring MySQL5</a></li>
<li>Page 6 : <a href="http://visionmasterdesigns.com/tutorial-installing-apache-php-5-mysql-5-phpmyadmin-windows-vista-xp/6/">Installing &amp; Configuring PhpMyAdmin</a></li>
</ul>
<p><span id="more-7"></span></p>
<p>If you are aware of the basics then <a href="#down">Click Here</a> to jump below, else read on.</p>
<p>Normally we can view HTML pages on our computer without the need of uploading them to the server, since HTML is a Client Side Language. You don`t need any extra software to view html files, just any browser will do the trick.<br />
But if you want to make your pages dynamic using any Server Side Language (PHP,ASP,JSP) &amp; want to the see the results then you must upload the file to the webserver which supports that language so it can execute the file &amp; return the results on your browser</p>
<p>We can set up a developers environment from which you can create and execute PHP/MySQL scripts by installing the above mentioned applications.</p>
<p><a id="down" name="down">Now, The Pre-Requisites :</a></p>
<ol>
<li><strong>Apache HTTP Server</strong> (2.2.11): The best open source webserver. You need this to turn your humble computer to a powerful webserver to execute your applications.<br />
Direct Download <a title="apache_2.2.11-win32-x86-no_ssl.msi" href="http://www.eng.lsu.edu/mirrors/apache/httpd/binaries/win32/apache_2.2.11-win32-x86-no_ssl.msi">apache_2.2.11-win32-x86-no_ssl-r2.msi</a><br />
<a href="http://httpd.apache.org/download.cgi">Apache Download Page</a> &#8211; Please Download the Win32 Binary without crypto (no mod_ssl) (MSI Installer) &#8211; apache_2.2.11-win32-x86-no_ssl.msi~ 4.3MB</li>
<li><strong>PHP </strong>(5.2.9)<strong> : </strong>One of the most powerful web programming languages.<br />
Direct Download <a href="http://www.php.net/get/php-5.2.9-2-Win32.zip/from/a/mirror" target="_blank">PHP 5.2.9 -2 zip package</a><br />
<a href="http://www.php.net/downloads.php">PHP Download Page</a> &#8211; Download the PHP 5.2.9 &#8211; 2 Zip package ~ 10MB</li>
<li><strong>MySQL</strong> (5.1.34) : One of the best DBMS packages which is free.<br />
The latest version is <strong>5.1.34</strong> which is stable and used in production servers. Although MySQL 5.1 and MySQL 6 are also available as beta releases, they are not used in production servers as of now.<br />
<a href="http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-essential-5.1.34-win32.msi/from/pick" target="_blank">MySQL Download Page</a> &#8211; Please download Windows ZIP/Setup.EXE (x86) 5.1.34 ~ 35.2MB</li>
<li><strong>PhpMyAdmin</strong> (<span class="version">3.1.4</span>) : Used to manage your MySQL databases directly using your web browser.<br />
Direct Download <a href="http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-3.1.4-english.zip#!md5!ec09a86b298c118b528d5d9936aa951a" target="_blank">phpMyAdmin-<span class="version">3.1.4</span>-all-languages.zip</a><br />
<a href="http://www.phpmyadmin.net/home_page/downloads.php">PHPMyAdmin Download Page</a> &#8211; Please download the latest release from the 3.x rooster.</li>
</ol>
<p>The above downloads are compatible with Windows Vista/Vista SP1 (32 bit OS).</p>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/tutorial-installing-apache-php-5-mysql-5-phpmyadmin-windows-vista-xp/feed/</wfw:commentRss>
		<slash:comments>566</slash:comments>
		</item>
		<item>
		<title>A month long ordeal finally over ! Product = OptimaPrime, Result = First Prize</title>
		<link>http://visionmasterdesigns.com/a-month-long-ordeal-finally-over-product-optimaprime-result-first-prize/</link>
		<comments>http://visionmasterdesigns.com/a-month-long-ordeal-finally-over-product-optimaprime-result-first-prize/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 15:57:21 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Javascript Frameworks]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[First prize]]></category>
		<category><![CDATA[Optimaprime]]></category>
		<category><![CDATA[Project Management System]]></category>

		<guid isPermaLink="false">http://visionmasterdesigns.com/?p=1116</guid>
		<description><![CDATA[Ok, so the title doesn`t make much sense huh !? I wasn`t available for an entire month and the reason&#8230;. Optima Prime &#8211; Enterprise Project Management System. Well,  this is my last year in graduation college and we had to create a project which will stand out, and here it is So wat is it [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Fa-month-long-ordeal-finally-over-product-optimaprime-result-first-prize%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Fa-month-long-ordeal-finally-over-product-optimaprime-result-first-prize%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Ok, so the title doesn`t make much sense huh !? I wasn`t available for an entire month and the reason&#8230;. <strong>Optima Prime &#8211; Enterprise Project Management System. </strong>Well,  this is my last year in graduation college and we had to create a project which will stand out, and here it is <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <strong></strong></p>
<p style="text-align: center;"><a title="Logo" href="http://visionmasterdesigns.com/?attachment_id=1117"><img class="attachment wp-att-1117 centered" src="http://visionmasterdesigns.com/wordpress/wp-content/uploads/2009/03/logo.png" alt="Logo" width="300" height="80" /></a></p>
<h3>So wat is it all about ?</h3>
<p>Before I start, we had developed a Chart or Poster to depict what our software is all about. This is the poster, it may be a lil cluttered, but it pretty much explains what our project is all about <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>We won the first prize for our project along with another Project (Rank Retrieval System). But more than prize, I guess for all the hard work put in, we have got what we wanted, <strong>Exposure</strong>&#8230;.</p>
<p style="text-align: center;"><a title="poster" href="http://visionmasterdesigns.com/?attachment_id=1121"><img class="attachment wp-att-1121 centered" src="http://visionmasterdesigns.com/wordpress/wp-content/uploads/2009/03/poster.thumbnail.png" alt="poster" width="300" height="225" /></a></p>
<h3>What is PMS ?</h3>
<p>There are lot of Project Management Systems out there, Project Management Systems (PMS) in general help your company manage projects effeciently and effectively. Optima Prime is one such PMS which does both alongside a host of features <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>Features ?</h3>
<ol>
<li>Works on our Custom MVC based framework &#8220;Innovite&#8221;</li>
<li>3 Different types of User Logins viz Project Manager, Team Leader, Team Member</li>
<li>Every Project has an individual &#8220;Message Board&#8221;(Forum) to communicate with the project members with Attachment Facility</li>
<li>Email Alert System. Whenever any project has been updated or any new message has been added, then an E-Mail is sent across all the users in that project.</li>
<li>Completely AJAX &#8216;ed so not much page transitions</li>
<li>Dynamic Timeline Charts (Gantt) and Dynamic Pie/Bar Charts</li>
<li>Automatic PDF report generation.</li>
<li>Themes</li>
<li>Install Package</li>
<li>Aimed for an IT Enterprise</li>
<li>Plugin System</li>
<li>Open Source</li>
</ol>
<p>The basic framework of OptimaPrime.</p>
<p style="text-align: center;"><a title="howitworks" href="http://visionmasterdesigns.com/a-month-long-ordeal-finally-over-product-optimaprime-result-first-prize/howitworks/"><img class="attachment wp-att-1129 centered" src="http://visionmasterdesigns.com/wordpress/wp-content/uploads/2009/03/howitworks.thumbnail.jpg" alt="howitworks" width="300" height="224" /></a></p>
<p>So there are a long list of features, I have just given a few. Anyways, I`ll release the code soon here, till then you can check out the screenshots put up below.</p>
<h3>Screenshots</h3>
<p style="text-align: center;"><a title="Summary" href="http://visionmasterdesigns.com/wordpress/wp-content/uploads/2009/03/first-page.png"><img class="attachment wp-att-1118 centered" src="http://visionmasterdesigns.com/wordpress/wp-content/uploads/2009/03/first-page.thumbnail.png" alt="Summary" width="300" height="224" /></a><br />
Project Dashboard after logging in</p>
<p style="text-align: center;"><a title="Project Summary Page with Gantt Chart, Pie Charts etc" href="http://visionmasterdesigns.com/wordpress/wp-content/uploads/2009/03/page-summary.png"><img class="attachment wp-att-1119 centered" src="http://visionmasterdesigns.com/wordpress/wp-content/uploads/2009/03/page-summary.thumbnail.png" alt="Project Summary Page with Gantt Chart, Pie Charts etc" width="204" height="300" /></a><br />
Project Summary Page with Gantt Chart, Pie Charts etc</p>
<p style="text-align: center;"><a title="Project Edit Page" href="http://visionmasterdesigns.com/wordpress/wp-content/uploads/2009/03/page-edit.png"><img class="attachment wp-att-1120 centered" src="http://visionmasterdesigns.com/wordpress/wp-content/uploads/2009/03/page-edit.thumbnail.png" alt="Project Edit Page" width="204" height="300" /></a><br />
Project Edit Page</p>
<p>Well, these are just a few screens, there are more. I`ll upload em as soon as I get up.</p>
<p>Cheers Guys, I am extremely sorry readers for not answering your queries, but I am here now. I`ll try to answer as much as possible.</p>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/a-month-long-ordeal-finally-over-product-optimaprime-result-first-prize/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Really Easy Form/Field Validation using Prototype+Scriptaculous</title>
		<link>http://visionmasterdesigns.com/really-easy-formfield-validation-using-prototypescriptaculous/</link>
		<comments>http://visionmasterdesigns.com/really-easy-formfield-validation-using-prototypescriptaculous/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 15:51:07 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Prototype, Script.aculo.us]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[Form Validation]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[Script.aculo.us]]></category>

		<guid isPermaLink="false">http://visionmasterdesigns.com/?p=1101</guid>
		<description><![CDATA[Hey Guys, Its been a while since I have started my final year Project called &#8220;OptimaPrime- The Enterprise Project Management System&#8221;. Most of you must have heard of project management systems. It helps enterprises manage their projects, lets them keep it on schedule, helps them allocate resources etc. I needed to perform form Validation since [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Freally-easy-formfield-validation-using-prototypescriptaculous%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Freally-easy-formfield-validation-using-prototypescriptaculous%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Hey Guys,</p>
<p>Its been a while since I have started my final year Project called &#8220;OptimaPrime- The Enterprise Project Management System&#8221;. Most of you must have heard of project management systems. It helps enterprises manage their projects, lets them keep it on schedule, helps them allocate resources etc.<br />
I needed to perform form Validation since I had a lot of forms and it had lot of fields. I googled for good form validation plugins for Prototype + Scriptaculous (Since I have got really used to this cool library) and thats when I found <a href="http://tetlaw.id.au/view/javascript/really-easy-field-validation" target="_blank">Dexagogo&#8217;s Really Easy Field Validation plugin</a>.</p>
<p style="text-align: center;"><span id="more-1101"></span><img class="attachment wp-att-1105 centered" src="http://visionmasterdesigns.com/wordpress/wp-content/uploads/2009/02/validation1.thumbnail.jpg" alt="validation1" width="300" height="225" /></p>
<p>A very useful and a simple to use form validator for all kinds of forms. It has neat Fade IN/Fade OUT effects too. Custom classes can be defined, custom validations can be defined. It validates fields for a lot of different type of scenarios.</p>
<ul>
<li><code>required</code> (not blank)</li>
<li><code>validate-number</code> (a valid number)</li>
<li><code>validate-digits</code> (digits only)</li>
<li><code>validate-alpha</code> (letters only)</li>
<li><code>validate-alphanum</code> (only letters and numbers)</li>
<li><code>validate-date</code> (a valid date value)</li>
<li><code>validate-email</code> (a valid email address)</li>
<li><code>validate-url</code> (a valid URL)</li>
<li><code>validate-date-au</code> (a date formatted as; dd/mm/yyyy)</li>
<li><code>validate-currency-dollar</code> (a valid dollar value)</li>
<li><code>validate-selection</code> (first option e.g. &#8216;Select one&#8230;&#8217; is not selected option)</li>
<li><code>validate-one-required</code> (At least one textbox/radio element must be selected in a group &#8211; see below*)</li>
</ul>
<p>For more information on how to use this plugin visit  <a href="http://tetlaw.id.au/view/javascript/really-easy-field-validation" target="_blank">Dexagogo&#8217;s Website</a>. You can also check out a demo of this script at action <a href="http://tetlaw.id.au/upload/pages/really-easy-field-validation/" target="_blank">HERE</a>. It has very good documentation on how to use this plugin. Thanks Dexagogo. Although if you guys have any doubt on how to use it, I`ll be glad to help you out.</p>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/really-easy-formfield-validation-using-prototypescriptaculous/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial : Overlay a AJAX Spinner in the center of Web Page using Prototype</title>
		<link>http://visionmasterdesigns.com/tutorial-adding-a-ajax-spinner-in-the-center-of-web-page-using-prototype/</link>
		<comments>http://visionmasterdesigns.com/tutorial-adding-a-ajax-spinner-in-the-center-of-web-page-using-prototype/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 11:51:52 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript Frameworks]]></category>
		<category><![CDATA[Prototype, Script.aculo.us]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[Script.aculo.us]]></category>
		<category><![CDATA[Spinner]]></category>

		<guid isPermaLink="false">http://visionmasterdesigns.com/?p=1063</guid>
		<description><![CDATA[This tutorial is specially for beginners who are wondering how to place an AJAX Spinner. Its very simple guys. Just read below to find out. To those people who have wondered how to show the spinner image + loading message when any ajax request is made and to hide the spinner image + loading message [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-adding-a-ajax-spinner-in-the-center-of-web-page-using-prototype%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-adding-a-ajax-spinner-in-the-center-of-web-page-using-prototype%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This tutorial is specially for beginners who are wondering how to place an AJAX Spinner. Its very simple guys. Just read below to find out.</p>
<p>To those people who have wondered how to show the spinner image + loading message when any ajax request is made and to hide the spinner image + loading message when the request is successfully completed, this tutorial will help you out in achieving it and also teaches you how to show this loading box in the center of the browser screen and grey out the background contents with cool fade effects.</p>
<h3>Index :</h3>
<ul>
<li>Page 1 : <a href="http://visionmasterdesigns.com/tutorial-adding-a-ajax-spinner-in-the-center-of-web-page-using-prototype/2/">Introduction</a></li>
<li>Page 2 : <a href="http://visionmasterdesigns.com/tutorial-adding-a-ajax-spinner-in-the-center-of-web-page-using-prototype/2/">Required HTML/Javascript Code/CSS</a></li>
<li>Page 3 : <a href="http://visionmasterdesigns.com/tutorial-adding-a-ajax-spinner-in-the-center-of-web-page-using-prototype/3/">Complete Code of Demo</a></li>
</ul>
<h3>Pre-Requisites :</h3>
<p>A little bit of CSS,HTML knowledge and know-how of Prototype, Scriptaculous.</p>
<p><span id="more-1063"></span></p>
<h3>Source/Demo :</h3>
<div style="margin: 0pt auto; text-align: center; width: 320px;"><a href="http://www.visionmasterdesigns.com/demo/spinner/" target="_blank"><br />
<img style="margin-right:10px;" src="http://visionmasterdesigns.com/wordpress/wp-content/themes/VMD3/images/demo.jpg" border="0" alt="View Demo" width="147" height="72" /></a><a href="http://www.visionmasterdesigns.com/demo/spinner/spinner-source.zip"><img src="http://visionmasterdesigns.com/wordpress/wp-content/themes/VMD3/images/source.jpg" border="0" alt="Download Source" width="147" height="72" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/tutorial-adding-a-ajax-spinner-in-the-center-of-web-page-using-prototype/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>A cool jQuery plugin : PHP / jQuery Image Replacement</title>
		<link>http://visionmasterdesigns.com/a-cool-jquery-plugin-php-jquery-image-replacement/</link>
		<comments>http://visionmasterdesigns.com/a-cool-jquery-plugin-php-jquery-image-replacement/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 18:20:53 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Plugin]]></category>
		<category><![CDATA[PHP & MySQL]]></category>

		<guid isPermaLink="false">http://visionmasterdesigns.com/?p=1051</guid>
		<description><![CDATA[How many times have you wanted to use a very cool looking font for your website, but have withdrawn the idea because you thought that font won`t display properly in everyones&#8217;s system. Well fear not, I had previously posted a tutorial on how you can use PHP to display those lines of texts which use [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Fa-cool-jquery-plugin-php-jquery-image-replacement%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Fa-cool-jquery-plugin-php-jquery-image-replacement%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>How many times have you wanted to use a very cool looking font for your website, but have withdrawn the idea because you thought that font won`t display properly in everyones&#8217;s system. </p>
<p>Well fear not, I had previously posted a tutorial on how you can use PHP to display those lines of texts which use some odd font, by automatically converting it to an image (<a title="Tutorial : Convert Text into transparent PNG Image using PHP" rel="bookmark" href="http://visionmasterdesigns.com/tutorial-convert-text-into-transparent-png-image-using-php/">Tutorial : Convert Text into transparent PNG Image using PHP</a>), this way, you can easily display text with odd fonts.</p>
<p>Recently I found a very neat plugin which automatically converts any text (with font of your choice) into an image i.e from now on you don`t have to worry about text with different or odd fonts. They`ll be automatically converted into a compatible image via this plugin, And don`t worry about the image tag and all, this plugin manages everything <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Plugin name : PHP / jQuery Image Replacement<br />
Plugin Home Page/Demo : <a href="http://www.xanthir.com/pir/">http://www.xanthir.com/pir/</a></p>
<h3>Usage</h3>
<p>The usage was pretty simple.</p>
<ol>
<li>After unzipping the archive, Open <h7>pir.php</h7> and First set the fonts folder in the php page.</li>
<li>In your website, include jQuery and then include the <h7>jquery.pir.min.js</h7> (for production).</li>
<li>
<pre class="brush: javascript">
$(function() {
$.pir.options.php=&quot;pir.php&quot;; //compulsary to include the php which converts text to image.
$(&quot;h1&quot;).pir({font: &quot;yourfont.ttf&quot;, wrap: true}); //will enable automatic text warping.
</pre>
<p>});</li>
</ol>
<p>Pretty Simple huh ! Enjoy <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/a-cool-jquery-plugin-php-jquery-image-replacement/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Tutorial : Convert Text into transparent PNG Image using PHP</title>
		<link>http://visionmasterdesigns.com/tutorial-convert-text-into-transparent-png-image-using-php/</link>
		<comments>http://visionmasterdesigns.com/tutorial-convert-text-into-transparent-png-image-using-php/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 19:39:35 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[PHP & MySQL]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[language php]]></category>

		<guid isPermaLink="false">http://www.visionmasterdesigns.com/?p=957</guid>
		<description><![CDATA[This tutorial will help you write text on a background and output as an image using the power of PHP. This is useful during those scenarios when you want to display text using a particular font (which isn`t web friendly i.e the text won`t be displayed with the same font in other&#8217;s computer). I have [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-convert-text-into-transparent-png-image-using-php%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-convert-text-into-transparent-png-image-using-php%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This tutorial will help you write text on a background and output as an image using the power of PHP. This is useful during those scenarios when you want to display text using a particular font (which isn`t web friendly i.e the text won`t be displayed with the same font in other&#8217;s computer). I have used this technique to display the number of RSS subscribers (top-right). So its pretty simple and very basic.</p>
<p>Click <a href="http://visionmasterdesigns.com/demo/image/imagegenerate.html">Here</a> for a Demo.</p>
<p align="center">
<img src="http://visionmasterdesigns.com/demo/image/image.php?text=Dynamic PNG Generation" alt="Transparent PNG text" />
</p>
<p><span id="more-957"></span></p>
<h4>STEP 1 : Create PHP file and Define Headers</h4>
<p>First we create a PHP file. Lets call it myimage.php. Now we don`t want the browser to understand myimage.php as an image since we`ll be generating the image using this file. So we need to define the headers in this file which will tell the browser that it is an image.</p>
<pre class="brush: php">
&lt;?php
//HEADERS
header(&quot;Content-type: image/png&quot;); //Picture Format
header(&quot;Expires: Mon, 01 Jul 2003 00:00:00 GMT&quot;); // Past date
header(&quot;Last-Modified: &quot; . gmdate(&quot;D, d M Y H:i:s&quot;) . &quot; GMT&quot;); // Consitnuously modified
header(&quot;Cache-Control: no-cache, must-revalidate&quot;); // HTTP/1.1
header(&quot;Pragma: no-cache&quot;); // NO CACHE

//image generation code

?&gt;
</pre>
<h4>STEP 2 : The entire code !</h4>
<p>The entire code is here, the comments should help tell what each function is doing.</p>
<pre class="brush: php">
&lt;?php

header(&quot;Content-type: image/png&quot;); //Picture Format
header(&quot;Expires: Mon, 01 Jul 2003 00:00:00 GMT&quot;); // Past date
header(&quot;Last-Modified: &quot; . gmdate(&quot;D, d M Y H:i:s&quot;) . &quot; GMT&quot;); // Consitnuously modified
header(&quot;Cache-Control: no-cache, must-revalidate&quot;); // HTTP/1.1
header(&quot;Pragma: no-cache&quot;); // NO CACHE

/*image generation code*/
//create Image of size 350px x 75px
$bg = imagecreatetruecolor(350, 75);

//This will make it transparent
imagesavealpha($bg, true);

$trans_colour = imagecolorallocatealpha($bg, 0, 0, 0, 127);
imagefill($bg, 0, 0, $trans_colour);

//Text to be written
$helloworld = isset($_GET[&#039;text&#039;]) ? $_GET[&#039;text&#039;] : &quot;hello World&quot;;

// White text
$white = imagecolorallocate($bg, 255, 255, 255);
// Grey Text
$grey = imagecolorallocate($bg, 128, 128, 128);
// Black Text
$black = imagecolorallocate($bg, 0,0,0);

$font = &#039;arial.ttf&#039;; //path to font you want to use
$fontsize = 20; //size of font

//Writes text to the image using fonts using FreeType 2
imagettftext($bg, $fontsize, 0, 20, 20, $grey, $font, $helloworld);

//Create image
imagepng($bg);

//destroy image
ImageDestroy($bg);
?&gt;
</pre>
<p>Well thats the source code if you want to generate alpha png images using PHP. Its pretty simple. This isn`t that tough, but there might be some people new to PHP who might want to know.</p>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/tutorial-convert-text-into-transparent-png-image-using-php/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Tutorial : Display no.of RSS Readers using Feedburner API and PHP (curl)</title>
		<link>http://visionmasterdesigns.com/tutoral-display-noof-rss-readers-using-feedburner-api-and-php-curl/</link>
		<comments>http://visionmasterdesigns.com/tutoral-display-noof-rss-readers-using-feedburner-api-and-php-curl/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 18:54:06 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[PHP & MySQL]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[CURL]]></category>
		<category><![CDATA[Feedburner]]></category>

		<guid isPermaLink="false">http://www.visionmasterdesigns.com/?p=932</guid>
		<description><![CDATA[Most of you who have blogs/website might be aware of FeedBurner. Its a service which provides custom RSS Management tools like Analysing Web-Traffic, the number of readers subscribed to you blog etc. I too use Feedburner to help me keep track of my feeds and its readers. Although I love their service, I always found [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutoral-display-noof-rss-readers-using-feedburner-api-and-php-curl%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutoral-display-noof-rss-readers-using-feedburner-api-and-php-curl%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Most of you who have blogs/website might be aware of FeedBurner. Its a service which provides custom RSS Management tools like Analysing Web-Traffic, the number of readers subscribed to you blog etc. I too use Feedburner to help me keep track of my feeds and its readers. Although I love their service, I always found the FeedBurner Chicklet (It displays the number of readers subscribed to your RSS) to be a constraint, it isn`t that flexible i.e We can modify the color of the chicklet but not the chicklet it self. So I decided to create my own Chicklet to help me display the number of readers subscribed to my blog. (Although the number isn`t that big <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )<br />
<span id="more-932"></span></p>
<h4>It Starts ! Feedburner API</h4>
<p>Hmm..so where did I start&#8230;. Ahh ! The Feedburner API ofcourse. I wanted to know how to retrieve the number of Readers of a particular RSS feed as simple text.<br />
<a href="http://code.google.com/apis/feedburner/awareness_api.html" target="_blank">http://code.google.com/apis/feedburner/awareness_api.html</a> had the answer to my problem !</p>
<blockquote><p>Current Basic Feed Awareness Data<br />
<code>https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=&lt;feeduri&gt;</code></p>
<p>where &lt;feeduri&gt; = your feedname i.e <strong>vmdtuts</strong> in my case</p>
<p>Sample Response<br />
<strong>circulation</strong> &#8211; An approximate measure of the number of individuals for whom your feed has been requested in the 24 hour period described by date.</p></blockquote>
<p>Thats what I was looking for !!. Now Since I have a way to access information about my RSS feeds, I had to think of a method to request the API url and retrieve the result using PHP (ofcourse).<br />
<strong>Note :</strong> If you try to access the above URL with your feed address, you`ll see an XML output with all the relevant details about your feed !.</p>
<h4>Thank You CURL &#8211; Here is the Code</h4>
<p>We`ll use CURL to make a request to the above URL and retrieve the XML output.</p>
<pre class="brush: php">
$my_feed_url = &quot;https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=yourfeedurl&quot;; // yourfeedurl = vmdtuts in my case

$s_ch = curl_init(); //Initialize Curl
curl_setopt($s_ch, CURLOPT_RETURNTRANSFER, 1);//Set curl to return the data instead of printing it to the browser.
curl_setopt($s_ch, CURLOPT_URL, $my_feed_url); //Set the URL
$data = curl_exec($s_ch); //Execute the fetch
curl_close($s_ch); //Close the connection
$xml = new SimpleXMLElement($data);
$no_of_readers = $xml-&gt;feed-&gt;entry[&#039;circulation&#039;];

echo $no_of_readers.&quot;Readers&quot;; //Will display no of Readers
</pre>
<p>Voila There you have it. A Simple method to retrieve the number of readers who have subscribed to your RSS.</p>
<p><strong>Tip</strong> : If you want to display the number of Readers in your WordPress Blog. Just open up sidebar.php and insert the code anywhere where you want to display the number of readers.</p>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/tutoral-display-noof-rss-readers-using-feedburner-api-and-php-curl/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Tutorial : Collapsible Menus using jQuery</title>
		<link>http://visionmasterdesigns.com/tutorial-collapsible-menus-using-jquery/</link>
		<comments>http://visionmasterdesigns.com/tutorial-collapsible-menus-using-jquery/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 07:00:36 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript Frameworks]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Collapsible Menus]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.visionmasterdesigns.com/?p=856</guid>
		<description><![CDATA[A simple tutorial to show how I have achieved a nice,smooth Collapsible Menu Effect used in this site. (Example : The Category section in the sidebar in this site).]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-collapsible-menus-using-jquery%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-collapsible-menus-using-jquery%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>jQuery has surely made my life easier. I have been trying out both Prototype &amp; jQuery for a couple of days now and for some reason, I find jQuery a lil easier compared to Prototype Javascript Library. Although Prototype is a much powerful library (according to me), jQuery is just too simple <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . Anyways I will show you a simple effect which you already must have seen in many places.</p>
<p><strong>Demo :</strong> The Category section in the sidebar in this site.</p>
<p><em><strong>EDIT :</strong> Added Collapse All, Expand All Code as well</em><br />
<span id="more-856"></span><br />
This code can be extended in creating a full-fledged dynamic Collapsible Menu. Mainly you can use this code in you Blogs (if you have a large array of Categories) to group your categories/tags.</p>
<pre class="brush: javascript">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js&quot; &gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){

//Store Image paths
var toggleMinus = &#039;path/to/minus/image&#039;;
var togglePlus = &#039;path/to/plus/image&#039;;

var $subHead = $(&#039;.children&#039;).parent();

//Add the Plus image to every child by default
$subHead.prepend(&#039;&lt;img src=&quot;&#039; + togglePlus + &#039;&quot; alt=&quot;collapse this section&quot; /&gt; &#039;);

//By Default put the Menu in collapsed state
$(&#039;.children&#039;).parent().children(&#039;ul&#039;).slideUp(&#039;fast&#039;);

//Expand All Code
$(&#039;.expand&#039;).click(function() {
		$subHead.children(&#039;ul&#039;).slideDown(&#039;fast&#039;);
		$(&#039;img&#039;, $subHead).attr(&#039;src&#039;, toggleMinus);
});

//Contract All Code
$(&#039;.contract&#039;).click(function() {
		$subHead.attr(&#039;src&#039;, toggleMinus).children(&#039;ul&#039;).slideUp(&#039;fast&#039;);
		$(&#039;img&#039;, $subHead).attr(&#039;src&#039;, togglePlus);
});

//Expand or Contract one particular Nested ul
$(&#039;img&#039;, $subHead).addClass(&#039;clickable&#039;).click(function() {
var toggleSrc = $(this).attr(&#039;src&#039;);
if ( toggleSrc == toggleMinus ) {
$(this).attr(&#039;src&#039;, togglePlus).parent().children(&#039;ul&#039;).slideUp(&#039;fast&#039;);
} else{
$(this).attr(&#039;src&#039;, toggleMinus).parent().children(&#039;ul&#039;).slideDown(&#039;fast&#039;);
};
});
});
&lt;/script&gt;
</pre>
<p>Basically <span class="code">.children</span> can be kept same if you are planning to use this in your WordPress Blog (for Categories or any unordered list or ordered list since WordPress assigns class=children to nested lists)</p>
<p>If you want to use this code in some other form, then <span class="code">.children</span> has to be replaced with the class name of the nested list. For Example, the above code works for lists like</p>
<pre class="brush: html">
&lt;a href=&quot;javascript:void(0);&quot; class=&quot;expand&quot;&gt;Expand All&lt;/a&gt;
&lt;a href=&quot;javascript:void(0);&quot; class=&quot;contract&quot;&gt;Contract All&lt;/a&gt;
&lt;ul&gt;
	&lt;li&gt;Main 1
&lt;ul class=&quot;children&quot;&gt;
	&lt;li&gt;Sub 1&lt;/li&gt;
	&lt;li&gt;Sub 2&lt;/li&gt;
	&lt;li&gt;Sub 3&lt;/li&gt;
	&lt;li&gt;Sub 4&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
	&lt;li&gt;Main 2
&lt;ul class=&quot;children&quot;&gt;
	&lt;li&gt;Sub 1&lt;/li&gt;
	&lt;li&gt;Sub 2&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
	&lt;li&gt;Main 3&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>This is how it looks. (I haven`t added Expand All and Collapse All in the Demo Here)</p>
<ul>
<li>Main 1
<ul class="children">
<li>Sub 1</li>
<li>Sub 2</li>
<li>Sub 3</li>
<li>Sub 4</li>
</ul>
</li>
<li>Main 2
<ul class="children">
<li>Sub 1</li>
<li>Sub 2</li>
</ul>
</li>
<li>Main 3</li>
</ul>
<p>You can style the unordered list not to display the bullets using CSS which I haven`t shown above.</p>
<p>I hope you guys enjoyed this post. If you guys have any questions, your comments are welcome.<br />
Signing off.</p>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/tutorial-collapsible-menus-using-jquery/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Tutorial : Auto Completer using Prototype, Script.aculo.us</title>
		<link>http://visionmasterdesigns.com/tutorial-auto-completer-using-prototype-scriptaculous/</link>
		<comments>http://visionmasterdesigns.com/tutorial-auto-completer-using-prototype-scriptaculous/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 13:35:43 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript Frameworks]]></category>
		<category><![CDATA[Prototype, Script.aculo.us]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP & MySQL]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[Script.aculo.us]]></category>

		<guid isPermaLink="false">http://www.visionmasterdesigns.com/?p=770</guid>
		<description><![CDATA[How many of you have always dreamt of creating an Auto Suggest Box. I bet everyone must have seen one of these somewhere or the other. if you use Gmail to send mails, you might recall that while typing the To address, Gmail shows a probable list of users from your address book. Nowadays most [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-auto-completer-using-prototype-scriptaculous%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-auto-completer-using-prototype-scriptaculous%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>How many of you have always dreamt of creating an Auto Suggest Box. I bet everyone must have seen one of these somewhere or the other. if you use Gmail to send mails, you might recall that while typing the To address, Gmail shows a probable list of users from your address book. Nowadays most of the modern browsers also have this Auto Suggest control built in them, i.e when the user begins to type in a text box, a menu appears below the text offering completion suggestions. </p>
<p>Today I am going to teach you how to create an Auto Suggest Box using Prototype, Script.aculo.us. The script.aculo.us auto suggest box (autocompleter) replicates this control, but gives the developer control of the probable suggestions.</p>
<p>Index</p>
<ul>
<li>Page 1 : <a title="Introduction" href="http://www.visionmasterdesigns.com/2008/10/tutorial-auto-completer-using-prototype-scriptaculous/">Introduction and </a></li>
<li>Page 2 : <a title="Auto Suggest Box (local)" href="http://www.visionmasterdesigns.com/2008/10/tutorial-auto-completer-using-prototype-scriptaculous/2/">Auto Suggest Box (local)</a></li>
<li>Page 3 : <a title="AJAX Auto Suggest Box (remote via PHP/MySQL)" href="http://www.visionmasterdesigns.com/2008/10/tutorial-auto-completer-using-prototype-scriptaculous/3/">AJAX Auto Suggest Box (remote via PHP/MySQL)</a></li>
</ul>
<h4>Demo &amp; Source Download</h4>
<p>Type out the name of the states of U.S.A.<br />
Local Auto Suggest Box Demo : <a href="http://www.visionmasterdesigns.com/demo/autocompleter/local.html" target="_blank">Click Here</a><br />
Remote Auto Suggest Box Demo : <a href="http://www.visionmasterdesigns.com/demo/autocompleter/ajax.html" target="_blank">Click Here</a></p>
<p>Download Source <a href="http://www.visionmasterdesigns.com/demo/autocompleter/autocompleter_src.rar">Here</a><br />
<span id="more-770"></span></p>
<h2>Problem Statement</h2>
<p>Lets try creating an Auto Suggest Box which displays the states of America as the user begins to type a state&#8217;s name in the text box.</p>
<h2>Solution</h2>
<p>Before using any functions, first we need to make our HTML page i.e how the suggestion box is going to look.</p>
<ol>
<li>Create an empty HTML file.</li>
<li>
    First, to take the input of any state name from the user we need an input box.<br />
    Second, we need a container to display all the probable suggestions i.e different names of states according to User input.</p>
<p>    Lets create these right now.</p>
<pre class="brush: html">
    &lt;!-- This code will be added inside the  &lt;strong&gt;&lt;BODY&gt;&lt;/strong&gt; tag of the HTML page --&gt;
    &lt;input type=&quot;text&quot; name=&quot;state_input&quot; id=&quot;state_input&quot; size=&quot;30&quot; /&gt;
    &lt;div id=&quot;state_suggestions&quot;&gt;&lt;!-- container for list of probable suggestions !--&gt;&lt;/div&gt;
    </pre>
</li>
<li>
    Now that we have designed our suggestion box, its time to implement the Auto Suggest Box method. Since this method is readily available as a part of Script.aculo.us, we need to include the scriptaculous file, and since scriptaculous depends on prototype, we need to include the prototype file to our HTML document. Type following code inside the <strong>&lt;HEAD&gt;</strong> tag.</p>
<pre class="brush: javascript">
	&lt;script src=&quot;js/lib/prototype.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;js/src/scriptaculous.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    </pre>
</li>
<li>
	The HTML page should look something like this.</p>
<pre class="brush: html">
    &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
    &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
    &lt;head&gt;
    &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
    &lt;title&gt;Untitled Document&lt;/title&gt;
    &lt;script src=&quot;js/lib/prototype.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
	&lt;script src=&quot;js/src/scriptaculous.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;input type=&quot;text&quot; name=&quot;state_input&quot; id=&quot;state_input&quot; size=&quot;30&quot; /&gt;
    &lt;div id=&quot;state_suggestions&quot;&gt;&lt;!-- container for list of probable suggestions !--&gt;&lt;/div&gt;

    &lt;/body&gt;
    &lt;/html&gt;
    </pre>
</li>
</ol>
<p>Now that we have a HTML page ready, preview it. Obviously it won&#8217;t work yet. We still have to define the AutoCompleter function.</p>
<p>There are 2 ways to achieve our goal. Script.aculo.us&#8217;s Autocompleter comes in two flavors.</p>
<ol>
<li><span class="code">Autocompleter.Local</span> : The local array autocompleter. Used when you’d prefer to inject an array of autocompletion options into the page, rather than sending out Ajax queries.</li>
<li><span class="code">Ajax.Autocompleter</span> : Which relies on a remote server to give it suggestions, making an AJAX Request whenever suggestions need to be retrieved.</li>
</ol>
<p>Now both have thier Pros and Cons. I`ll explain each one of them and how they can be used.</p>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/tutorial-auto-completer-using-prototype-scriptaculous/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
