<?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: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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Blufusion.net</title>
	
	<link>http://blufusion.net</link>
	<description>php javascript jquery codeigniter web development</description>
	<lastBuildDate>Mon, 05 Oct 2009 15:37:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/blufusion" /><feedburner:info uri="blufusion" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Tutorial Ideas</title>
		<link>http://feedproxy.google.com/~r/blufusion/~3/ajoze8h0S9c/</link>
		<comments>http://blufusion.net/2009/10/05/tutorial-ideas/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 15:37:31 +0000</pubDate>
		<dc:creator>dferg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blufusion.net/?p=193</guid>
		<description><![CDATA[I have several ideas of screencasts that I am going to be creating and submitting up here for you guys. I am going to try to start pushing some of those out this week. I was also wondering what some of  you would like to see? What kidn of tutorials would like to find here? [...]]]></description>
			<content:encoded><![CDATA[<p>I have several ideas of screencasts that I am going to be creating and submitting up here for you guys. I am going to try to start pushing some of those out this week. I was also wondering what some of  you would like to see? What kidn of tutorials would like to find here? What would help you out?<span id="more-193"></span></p>
<h2>My Ideas:</h2>
<ol>
<li>Recreate current tutorials into screencasts, especially the jQuery AJAX Posting since it seems to be generating the most traffic and attention.</li>
<li>Tutorials on setting up and using some of the CodeIgniter Libraries.</li>
<li>Long tutorial that will be a combination of my two tutorials submitted to the Nettuts contest. So one long tutorial on creating a jQuery Content Slider plugin from scratch, with explanations of what each part is and why we&#8217;re doing it.</li>
<li>Tutorial on using the HTML Table Class in CodeIgniter. This is kind of the same as #2, but I felt compelled to do this one first as somewhat of an addon to the tutorial Jeffrey Way just did on Pagination. He used the Pagination and HTML Table class, but used jQuery to do the row highlighting, which could have been easily done with the HTML Table class. So it would be a tutorial explaining some of that.</li>
</ol>
<p>That&#8217;s all I&#8217;ve come up with so far. I need opinions and ideas of what you guys want. Something I may skip over because I think it&#8217;s easy may be something that someone else is having a problem with. So let me know what you want! Hopefully more focused in the areas of jQuery/HTML/CSS/PHP/CodeIgniter as those tend to be my favorites, and the ones that I&#8217;m the most familiar with.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/JUg-xbIDwOHjl0UWcXY_yTCxezc/0/da"><img src="http://feedads.g.doubleclick.net/~a/JUg-xbIDwOHjl0UWcXY_yTCxezc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/JUg-xbIDwOHjl0UWcXY_yTCxezc/1/da"><img src="http://feedads.g.doubleclick.net/~a/JUg-xbIDwOHjl0UWcXY_yTCxezc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/blufusion/~4/ajoze8h0S9c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blufusion.net/2009/10/05/tutorial-ideas/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blufusion.net/2009/10/05/tutorial-ideas/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>TeamViewer vs Local Web Server</title>
		<link>http://feedproxy.google.com/~r/blufusion/~3/hw02jvnrn9A/</link>
		<comments>http://blufusion.net/2009/08/06/teamviewer-vs-local-web-server/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 17:51:05 +0000</pubDate>
		<dc:creator>dferg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blufusion.net/?p=180</guid>
		<description><![CDATA[I recently started using TeamViewer to accomplish some of my remote administration tasks. I have been a loyal fan of LogMeIn for several years now. I love their service, but there is two features that I extremely liked about TeamViewer that are not offered as an option to LogMeIn Free subscribers. These two features are [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_181" class="wp-caption alignright" style="width: 310px"><img class="size-medium wp-image-181" title="Teamviewer" src="http://blufusion.net/wp-content/uploads/2009/08/Teamviewer-300x168.png" alt="Teamviewer" width="300" height="168" /><p class="wp-caption-text">Teamviewer</p></div>
<p>I recently started using <a title="TeamViewer" href="http://teamviewer.com/index.aspx" target="_blank">TeamViewer</a> to accomplish some of my remote administration tasks. I have been a loyal fan of <a title="LogMeIn" href="http://www.logmein.com" target="_blank">LogMeIn </a>for several years now. I love their service, but there is two features that I extremely liked about TeamViewer that are not offered as an option to LogMeIn Free subscribers. These two features are the desktop client and the <a title="TeamViewer  QuickSupport" href="http://teamviewer.com/download/index.aspx" target="_blank">QuickSupport</a> application. The desktop application allows you to quickly open up a remote access window to your machines without having to visit TeamViewer&#8217;s site (similar to LogMeIn&#8217;s <a title="LogMeIn Network Console" href="https://secure.logmein.com/products/nc/" target="_blank">Network Console</a>).  QuickSupport allows an outside user to quickly launch the application, without the need of an install, and provide you remote access by giving your their generated user id and password.</p>
<p>So what&#8217;s the problem? Well, if you&#8217;ve ever used TeamViewer, and try to do a little development on a local wamp/xampp server, then you will find that you can no longer access your local server because TeamViewer has taken over Port 80. Here&#8217;s how to fix it.</p>
<p><span id="more-180"></span>After talking with TeamViewer tech support, I received an email giving me instructions on how to disable TeamViewer from listening on Port 80.  Instructions are as follows:</p>
<ol>
<li>Open port 5938 (TCP) on your firewall.</li>
<li>Change the following registry keys.</li>
</ol>
<ul>
<li>[HKEY_LOCAL_MACHINE\SOFTWARE\
<div id=":f6">TeamViewer\Version4]  Key  &#8217;GatewayAllowed&#8217; set to 0</div>
</li>
<li>
<div id=":f6">[HKEY_LOCAL_MACHINE\SOFTWARE\TeamViewer\Version4]  Key  &#8217;ListenHttp&#8217; set to 0</div>
</li>
</ul>
<p>After you make these changes, you should no longer have TeamViewer listening in on port 80, killing  your local web server.</p>
<p>Hope this helps someone else.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0503041652536297";
/* 468x60, created 7/20/09 */
google_ad_slot = "3688129958";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p><a href="http://feedads.g.doubleclick.net/~a/cT4VG0B96gyKBjsrRnKt9eFTPkE/0/da"><img src="http://feedads.g.doubleclick.net/~a/cT4VG0B96gyKBjsrRnKt9eFTPkE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/cT4VG0B96gyKBjsrRnKt9eFTPkE/1/da"><img src="http://feedads.g.doubleclick.net/~a/cT4VG0B96gyKBjsrRnKt9eFTPkE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/blufusion/~4/hw02jvnrn9A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blufusion.net/2009/08/06/teamviewer-vs-local-web-server/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://blufusion.net/2009/08/06/teamviewer-vs-local-web-server/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Easy AJAX Post with jQuery and CodeIgniter</title>
		<link>http://feedproxy.google.com/~r/blufusion/~3/MrnXfyGTfVQ/</link>
		<comments>http://blufusion.net/2009/07/30/easy-ajax-post-with-jquery-and-codeigniter/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 16:36:13 +0000</pubDate>
		<dc:creator>dferg</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blufusion.net/?p=158</guid>
		<description><![CDATA[I&#8217;ve seen quite a few people come into the CodeIgniter forums asking how to use jQuery&#8217;s built in AJAX functionality to post to a CodeIgniter function. In this tutorial I will walk you through creating the form, writing the jQuery, posting to the function, and working with handling the result. It&#8217;s actually really easy.
In this [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_156" class="wp-caption alignright" style="width: 310px"><img class="size-medium wp-image-156" title="jQuery Post" src="http://blufusion.net/wp-content/uploads/2009/07/jQuery-300x171.png" alt="jQuery Post" width="300" height="171" /><p class="wp-caption-text">jQuery Post</p></div>
<p>I&#8217;ve seen quite a few people come into the CodeIgniter forums asking how to use jQuery&#8217;s built in AJAX functionality to post to a CodeIgniter function. In this tutorial I will walk you through creating the form, writing the jQuery, posting to the function, and working with handling the result. It&#8217;s actually really easy.</p>
<p>In this example, I&#8217;ll create a small, basic form that will allow user&#8217;s to input their username and email address into the form and submit it via AJAX. The input will be validated using the CodeIgniter <a title="Form Validation Library" href="http://codeigniter.com/user_guide/libraries/form_validation.html" target="_blank">form validation library</a>, and an appropriate response will be displayed to the user.</p>
<p>Let&#8217;s check it out.<br />
<span id="more-158"></span><br />
<h2>Creating Your Form</h2>
<p>If you&#8217;ve ever submitted a form to a CodeIgniter controller before this should be very straight forward. If you haven&#8217;t, it&#8217;s as simple as changing the value of the <em>action</em> property of the form to point to the controller and function of choice.</p>
<pre class="brush:html">
<form id="ajax-form" action="/forms/submit" method="post">
<label for="username">Username</label>
<input id="username" name="username" type="text" />

<label for="email">Email Address</label>
<input id="email" name="email" type="text" />
<input id="form_submit" type="submit" value="submit" />
</form>
</pre>
<p>Here, we will be submitting our form to a controller named <em>forms</em> and a function named <em>submit</em> within that controller. Easy stuff. Let&#8217;s move on to the <em>forms</em> controller.</p>
<h2>Setting Up Your Controller</h2>
<p>We&#8217;re only going to be looking at the <em>submit</em> function in <em>forms</em> controller. There are no other functions used in this tutorial. In the <em>submit</em> function, we will load the form validation library, set the rules for our input, run the validation, and then display the response to the user.</p>
<p>There is one additional constant provided in this example that is not part of the default CodeIgniter installation. The constant I am referring to is the <em>IS_AJAX</em> constant. This constant is used to determine whether or not the request that was received was an AJAX request, or a standard HTTP request. I have been told that this constant can be found in the CodeIgniter forums, however, I found out about it in one of <a title="Weblee" href="http://www.weblee.co.uk/screencasts/" target="_blank">Weblee</a>&#8217;s screencasts. Simply paste this into the bottom of the <em>constants.php</em> file found at CodeIgniter <em>install &gt; application &gt; config</em> folder.</p>
<pre class="brush:php">// Define Ajax Request
define('IS_AJAX', isset($_SERVER['HTTP_X_REQUESTED_WITH']) &amp;&amp; strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');</pre>
<p>Now let&#8217;s get on to that <em>submit</em> function.</p>
<pre class="brush:php">    function submit() {
    	//load form validation
    	$this-&gt;load-&gt;library('form_validation');

    	//set form rules
    	$this-&gt;form_validation-&gt;set_rules('username', 'Username', 'required|min_length[5]|max_length[15]');
    	$this-&gt;form_validation-&gt;set_rules('email', 'Email', 'required|max_length[20]|min_length[6]|valid_email');

		//run form validation
    	$success = $this-&gt;form_validation-&gt;run();

		//set username variable
    	$username = $this-&gt;input-&gt;post('username');

		//if the validation was a success
		if ((IS_AJAX &amp;&amp; $success) || (!IS_AJAX &amp;&amp; $success)) { echo "Congradulations {$username}, your form was accepted!"; }

    	//if validation failed
    	else { echo strip_tags(validation_errors()); }
    }</pre>
<p>You can see from the comments within the code what each portion does. When posting via AJAX, anything that is echoed, is returned back to the jQuery function. In a real world example, you would probably want to handle the result a little better by redirecting to another page if the request were not an AJAX request. The current code would only echo a response back to a blank page for a non AJAX request. If the validation fails, form validation error message is returned as HTML. Since we will be using that result in an alert dialog, I added the strip tags function to remove the paragraph tags from around the result. As mentioned, this would be handled differently in a production level app. For more information on the form validation process, check the CodeIgniter User Guide.</p>
<h2>The jQuery</h2>
<p>The jQuery code is also extremely short and to the point. This script will listen for the form submit event. When the event is triggered, the event object is passed in and uses the <em>preventDefault</em> function to stop the regular submission so that we can submit via AJAX instead. Next, it will use the built-in<em> <a title="jQuery Post" href="http://docs.jquery.com/Ajax/jQuery.post#urldatacallbacktype" target="_blank">$.post</a></em><a title="jQuery Post" href="http://docs.jquery.com/Ajax/jQuery.post#urldatacallbacktype" target="_blank"> function</a> to submit the data to the specified location. The function accepts parameters of: <em>url</em>, <em>data</em>, <em>callback</em>, and request <em>type</em>. In this example, we were submitting the <em>username</em> and <em>email </em>fields and posting to <em>/forms/submit</em>. Here&#8217;s the code.</p>
<pre class="brush:javascript">$(document).ready(function() {
 	$("form").submit(function(e) {
 		e.preventDefault();
		$.post("/forms/submit", { username: $("#username").val(), email: $("#email").val() }, function (data) {
			alert(data);
		});
 	});
 });</pre>
<p>That&#8217;s it. I think we had a little less than 30 lines total even with all the extra spacing and such.</p>
<p>Check out the demo <a title="Ajax Post Demo" href="http://demos.blufusion.net/ajax-post" target="_blank">here</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/TzUJPMGwXLNqGB-L7VhM3p5OkUU/0/da"><img src="http://feedads.g.doubleclick.net/~a/TzUJPMGwXLNqGB-L7VhM3p5OkUU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/TzUJPMGwXLNqGB-L7VhM3p5OkUU/1/da"><img src="http://feedads.g.doubleclick.net/~a/TzUJPMGwXLNqGB-L7VhM3p5OkUU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/blufusion/~4/MrnXfyGTfVQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blufusion.net/2009/07/30/easy-ajax-post-with-jquery-and-codeigniter/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://blufusion.net/2009/07/30/easy-ajax-post-with-jquery-and-codeigniter/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>PHP/JS Contest: Win an iPhone 3GS at Nettuts</title>
		<link>http://feedproxy.google.com/~r/blufusion/~3/qow5LD0Dptc/</link>
		<comments>http://blufusion.net/2009/07/28/phpjs-contest-win-an-iphone-3gs-at-nettuts/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 18:37:53 +0000</pubDate>
		<dc:creator>dferg</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blufusion.net/?p=147</guid>
		<description><![CDATA[Nettuts has a PHP/Javascript competition going on right now for all you scripters. All you have to do to enter is create a new script (PHP or Javascript) and submit it to Themeforest. If your script is approved by the moderators, post a link to your script to the competition entry form. After that, you&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_148" class="wp-caption alignright" style="width: 310px"><img class="size-medium wp-image-148" title="Nettuts Contest" src="http://blufusion.net/wp-content/uploads/2009/07/Nettuts-Contest-300x197.png" alt="Nettuts Contest" width="300" height="197" /><p class="wp-caption-text">Nettuts Contest</p></div>
<p><a title="Nettuts" href="http://www.nettuts.com" target="_blank">Nettuts</a> has a PHP/Javascript competition going on right now for all you scripters. All you have to do to enter is create a new script (PHP or Javascript) and submit it to <a title="Themeforest" href="http://themeforest.net/" target="_blank">Themeforest</a>. If your script is approved by the moderators, post a link to your script to the <a title="iPhone 3GS Competition Entry Form" href="http://www.formspring.com/forms/?661264-bBBiPNp3sk" target="_blank">competition entry form</a>. After that, you&#8217;re entered automatically.</p>
<h2>Prizes</h2>
<h3>1st Place:</h3>
<ul>
<li>iPhone 3GS</li>
<li>1 year subscription to Nettuts</li>
<li>CSSEdit license ($42 value)</li>
</ul>
<p><span id="more-147"></span><br />
<h3>2nd Place:</h3>
<ul>
<li>Western Digital 1TB External Drive</li>
<li>6 month Nettuts membership</li>
</ul>
<h3>3rd Place:</h3>
<ul>
<li>CSSEdit License</li>
<li>6 month Nettus membership.</li>
</ul>
<p>For more info, check <a title="Nettuts PHP/JS Competition" href="http://net.tutsplus.com/competitions/contests/phpjs-competition-win-an-iphone-3g-s/" target="_blank">here</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/FmvHE6mi1muVkNRMD9_98ls3djI/0/da"><img src="http://feedads.g.doubleclick.net/~a/FmvHE6mi1muVkNRMD9_98ls3djI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/FmvHE6mi1muVkNRMD9_98ls3djI/1/da"><img src="http://feedads.g.doubleclick.net/~a/FmvHE6mi1muVkNRMD9_98ls3djI/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/blufusion/~4/qow5LD0Dptc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blufusion.net/2009/07/28/phpjs-contest-win-an-iphone-3gs-at-nettuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blufusion.net/2009/07/28/phpjs-contest-win-an-iphone-3gs-at-nettuts/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Creating A Simple Tooltip Using jQuery and CSS</title>
		<link>http://feedproxy.google.com/~r/blufusion/~3/_eDQUSGb2C4/</link>
		<comments>http://blufusion.net/2009/07/27/creating-a-simple-tooltip-using-jquery-and-css/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 19:31:03 +0000</pubDate>
		<dc:creator>dferg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blufusion.net/?p=124</guid>
		<description><![CDATA[Over time, I&#8217;ve noticed a lot of scripts and plugins that are available to simply add tooltips to items on a page. Adding a plugin for something that simply is overkill. Adding a plugin for tooltips  typically requires that you include an additional script and an additional stylesheet (depending on which one you use). In [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_132" class="wp-caption alignright" style="width: 310px"><img class="size-medium wp-image-132" title="Easy Tooltips" src="http://blufusion.net/wp-content/uploads/2009/07/Easy-Tooltips-300x162.png" alt="Easy Tooltips" width="300" height="162" /><p class="wp-caption-text">Easy Tooltips</p></div>
<p>Over time, I&#8217;ve noticed a lot of scripts and plugins that are available to simply add tooltips to items on a page. Adding a plugin for something that simply is overkill. Adding a plugin for tooltips  typically requires that you include an additional script and an additional stylesheet (depending on which one you use). In this post, I &#8216;ll show you just how easy it is to create a clean, styled tooltip using jQuery.<br />
<span id="more-124"></span></p>
<h2>Getting Started</h2>
<p>I&#8217;m going to assume that you already have a web server set up and running and that you already have at least a basic knowledge of how of jQuery.  If you have even a little bit of jQuery knowledge, this should be extremely easy.</p>
<p>There are obviously multiple ways that this tooltip can be created and styled. I won&#8217;t go into extensive detail on it, I will just get you started and let you piece things together from there.</p>
<h2>Step 1 &#8211; Include jQuery</h2>
<p>This line will load jQuery from Google&#8217;s AJAX API&#8217;s. Loading jQuery from Google is considered good practice by many developers because it decreases latency, creates parallelism, and provides caching, meaning user&#8217;s may not have to download jQuery at all because it&#8217;s already cached on their machine from another site.</p>
<p>Here&#8217;s the code:</p>
<pre class="brush:html"><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"><!--mce:0--></script></pre>
<h2>Step 2 &#8211; Pick Your Structure</h2>
<p>This is where you determine how you want your tooltips to be organized. There are many, many ways of doing this. For this example, I chose to simply give a link tag a chosen class &#8216;tooltips&#8217;, and within the link tag, include a span object that is hidden.</p>
<p>Example:</p>
<pre class="brush: html"><a class="tooltips" href="somepage.php#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">Click here for a page
<span>This is my hidden tooltip!</span>
</a></pre>
<p>Looks simple enough, right?</p>
<h2>Step 3 &#8211; Styling Your Popup</h2>
<p>You can style your popup any way that you desire. I kept this example simple.</p>
<pre class="brush:css">span {
	background:#c8c8c8;
	display:none;
	padding:10px;
	position:absolute;
	z-index:1000;
	-moz-border-radius:4px;
}</pre>
<p>That&#8217;s it. The <em>display</em>, <em>z-index</em> and the <em>position</em> property are the most important. Setting <em>display</em> to none obvious hides the element until we need it. The <em>position</em> property being set to absolute will allow us to place the popup wherever we want to put it. The <em>z-index </em>property being set to a high value should ensure that the tooltip will stay on top of all other elements.</p>
<h2>Step 4 &#8211; The jQuery script</h2>
<p>We&#8217;re down to the last step, creating your jQuery script to display the popup. Once again, this is an extremely easy script.</p>
<pre class="brush:javascript">$(document).ready(function() {
	$(".tooltips").hover(
		function() { $(this).contents("span:last-child").css({ display: "block" }); },
		function() { $(this).contents("span:last-child").css({ display: "none" }); }
	);
	$(".tooltips").mousemove(function(e) {
		var mousex = e.pageX + 10;
		var mousey = e.pageY + 5;
		$(this).contents("span:last-child").css({  top: mousey, left: mousex });
	});
});</pre>
<p>Start off by setting a hover event listener to all items that have the tooltip class. The first function within hover handles actions when the mouse is placed over the item, the second function handles actions for when the mouse is removed from the item. Here, we will select the item using the $(this) selector, then find the last span that is a child element of the container. Now that we the span selected, set the <em>display</em> property to block to make it appear. Obviously you would do just the opposite when the mouse was removed.</p>
<p>As an extra touch, I also added the mousemove event to the tooltips items. This event listener will grab the eventObject (e), and determine the location of the mouse when the event occurred. Once the coordinates are retrieved, the position of the tooltip is updated so that the tooltip floats around in relation to the cursor position.</p>
<h2>Done</h2>
<p>There are multiple ways that these tooltips can be styled, nested, selected, etc. As I said, this is just a basic tooltip to get you started. Experiment with different tooltip positions, layouts, animations to find create the tooltip that best fills your needs.</p>
<p><a title="jQuery Tooltips" href="http://demos.blufusion.net/jquery-tooltips">Click here for working demo</a></p>
<p>Good luck</p>

<p><a href="http://feedads.g.doubleclick.net/~a/uN89zZpseEY03wwKoipNxpBZE64/0/da"><img src="http://feedads.g.doubleclick.net/~a/uN89zZpseEY03wwKoipNxpBZE64/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/uN89zZpseEY03wwKoipNxpBZE64/1/da"><img src="http://feedads.g.doubleclick.net/~a/uN89zZpseEY03wwKoipNxpBZE64/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/blufusion/~4/_eDQUSGb2C4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blufusion.net/2009/07/27/creating-a-simple-tooltip-using-jquery-and-css/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://blufusion.net/2009/07/27/creating-a-simple-tooltip-using-jquery-and-css/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>CodeIgniter From Scratch: Day 2</title>
		<link>http://feedproxy.google.com/~r/blufusion/~3/kfRtX1xzdtA/</link>
		<comments>http://blufusion.net/2009/07/27/codeigniter-from-scratch-day-2/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 16:33:27 +0000</pubDate>
		<dc:creator>dferg</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://blufusion.net/?p=114</guid>
		<description><![CDATA[Jeffrey Way has posted his second video screencast about the CodeIgniter framework on Nettuts today. In this second screencast JW covers the topic of Models. Jeffrey explains the purpose of using models, walks you through creating your first model and function, as well as using it to retrieve records that are stored in a database. [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_116" class="wp-caption alignright" style="width: 310px"><img class="size-medium wp-image-116" title="CodeIgniter From Scratch Day 2" src="http://blufusion.net/wp-content/uploads/2009/07/CodeIgniter-From-Scratch-Day-2-300x173.png" alt="CodeIgniter From Scratch Day 2" width="300" height="173" /><p class="wp-caption-text">CodeIgniter From Scratch Day 2</p></div>
<p>Jeffrey Way has posted his second video <a title="CodeIgniter From Scratch: Day 2" href="http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-day-2/" target="_blank">screencast</a> about the CodeIgniter framework on Nettuts today. In this second screencast JW covers the topic of Models. Jeffrey explains the purpose of using models, walks you through creating your first model and function, as well as using it to retrieve records that are stored in a database. JW also demonstrated how easy it is to generate SQL queries using the <a href="http://codeigniter.com/user_guide/database/active_record.html">Active Record</a> class provided with CodeIgniter.<br />
<span id="more-114"></span></p>
<h2>Query Bindings</h2>
<p>JW did a great job explaining the use of models to perform database interaction via CodeIgniter. I also learned about something new from this screencast. Granted this new tidbit of information wasn&#8217;t anything extremely fascinating or very useful to me, but still, it&#8217;s something new. This new thing was the creation query bindings. Query bindings are basically a way of creating prepared SQL statements and easily inserting user provided data into these statements. The user provided data is auto escaped before being used, therefore the posibility of SQL injection is eliminated for you.</p>
<p>Example:</p>
<pre class="brush:php">$sql = "SELECT * FROM my_table WHERE id = ?"
$q = $this-&gt;db-&gt;query($sql, 3);</pre>
<p>This code would execute the SQL command constructed within the $sql variable, and then substitute the value of the second parameter in the query function for the &#8216;?&#8217;. So in this example, the resultant SQL command that would be executed would be:</p>
<pre class="brush:php">SELECT * FROM my_table WHERE id = 3;</pre>
<p>This can also be used with multiple parameters simply by making the second parameter in the query function an array.</p>
<p>Looking forward to CodeIgniter from Scratch: Day 3. Keep up the good work JW.</p>
<p>If you missed day 1, go back and check it out <a title="CodeIgniter From Scratch: Day 1" href="http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-day-1/" target="_blank">here</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/-ymehKzyA76ehuem8ZN_dBg-lx0/0/da"><img src="http://feedads.g.doubleclick.net/~a/-ymehKzyA76ehuem8ZN_dBg-lx0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/-ymehKzyA76ehuem8ZN_dBg-lx0/1/da"><img src="http://feedads.g.doubleclick.net/~a/-ymehKzyA76ehuem8ZN_dBg-lx0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/blufusion/~4/kfRtX1xzdtA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blufusion.net/2009/07/27/codeigniter-from-scratch-day-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blufusion.net/2009/07/27/codeigniter-from-scratch-day-2/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>50 Great CSS Tricks</title>
		<link>http://feedproxy.google.com/~r/blufusion/~3/m-XvuuMCBZE/</link>
		<comments>http://blufusion.net/2009/07/20/50-great-css-tricks/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 14:22:34 +0000</pubDate>
		<dc:creator>dferg</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://blufusion.net/?p=57</guid>
		<description><![CDATA[Found a great list of CSS tutorials and tricks on Smashing Magazine this morning. Everything from creating great layouts, stylesheet optimization, creating inline navigation menu’s, etc.
CSS is almost certainly one of the best developments in web design since the first graphical web browsers were adopted on a wide scale. Where tables created clunky, slow-loading pages, [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_136" class="wp-caption alignright" style="width: 310px"><img class="size-medium wp-image-136" title="50 New CSS Techniques For Your Next Web Design" src="http://blufusion.net/wp-content/uploads/2009/07/50-New-CSS-Techniques-For-Your-Next-Web-Design-300x137.png" alt="50 New CSS Techniques For Your Next Web Design" width="300" height="137" /><p class="wp-caption-text">50 New CSS Techniques For Your Next Web Design</p></div>
<p>Found a great list of CSS tutorials and tricks on Smashing Magazine this morning. Everything from creating great layouts, stylesheet optimization, creating inline navigation menu’s, etc.</p>
<blockquote><p>CSS is almost certainly one of the best developments in web design since the first graphical web browsers were adopted on a wide scale. Where tables created clunky, slow-loading pages, CSS created much more streamlined and usable web pages. Plus, CSS has allowed designers to achieve a number of different styles that used to only be possible with images.</p>
<p>One of the best parts of CSS is that it’s so simple once you know the basics. Where tables used to make incredibly complex and sometimes impossible-to-decipher code, CSS keeps things clean and simple. Add a few comments to keep everything organized and it becomes an absolute dream to work with.</p></blockquote>
<p>Linking it up <a title="50 New CSS Techniques For Your Next Web Design" href="http://www.smashingmagazine.com/2009/07/20/50-new-css-techniques-for-your-next-web-design/" target="_blank">here</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/01B1GXJgAhGSg4b9omiY0V8Ggdw/0/da"><img src="http://feedads.g.doubleclick.net/~a/01B1GXJgAhGSg4b9omiY0V8Ggdw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/01B1GXJgAhGSg4b9omiY0V8Ggdw/1/da"><img src="http://feedads.g.doubleclick.net/~a/01B1GXJgAhGSg4b9omiY0V8Ggdw/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/blufusion/~4/m-XvuuMCBZE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blufusion.net/2009/07/20/50-great-css-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blufusion.net/2009/07/20/50-great-css-tricks/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>CodeIgniter: Installation and Setup</title>
		<link>http://feedproxy.google.com/~r/blufusion/~3/QZ4E0CZK0Ow/</link>
		<comments>http://blufusion.net/2009/07/18/codeigniter-from-the-very-beginning/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 17:53:43 +0000</pubDate>
		<dc:creator>dferg</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://blufusion.net/?p=3</guid>
		<description><![CDATA[I&#8217;ve seen quite a few CodeIgniter tutorials and screencasts out there and none that I have seen seem to cover everything that I thought should be covered in an initial install. I decided I would finally try to put together one of my own to help some of the newer members get things going, as [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_7" class="wp-caption alignright" style="width: 310px"><img class="size-medium wp-image-7" title="CodeIgniter" src="http://blufusion.net/wp-content/uploads/2009/07/banner1-300x119.png" alt="CodeIgniter" width="300" height="119" /><p class="wp-caption-text">CodeIgniter</p></div>
<p>I&#8217;ve seen quite a few<a title="CodeIgniter" href="http://www.codeigniter.com/" target="_blank"> CodeIgniter</a> tutorials and screencasts out there and none that I have seen seem to cover everything that I thought should be covered in an initial install. I decided I would finally try to put together one of my own to help some of the newer members get things going, as well as try to give a decent enough explanation to the MVC architecture so that you will understand what&#8217;s going on. So, enough talking, here we go.</p>
<p><span id="more-3"></span></p>
<h1>Preparation</h1>
<p>We will start off by getting you ready to start with CodeIgniter. For this instructional, I will explain things as if you are completely starting from scratch. This will include downloading and installing the CodeIgniter framework as well as installing a local web server.</p>
<p>If you already have a web server up and running, you can skip this part and move on to downloading and installing CodeIgniter.</p>
<h2>Download and Install XAMPP</h2>
<div id="attachment_11" class="wp-caption alignright" style="width: 462px"><img class="size-full wp-image-11" title="XAMPP Control Panel" src="http://blufusion.net/wp-content/uploads/2009/07/xampp.png" alt="XAMPP Control Panel - Click Start" width="452" height="362" /><p class="wp-caption-text">XAMPP Control Panel - Click Start</p></div>
<p>For this tutorial I will use the <a title="XAMPP by apache friends" href="http://www.apachefriends.org/en/xampp.html" target="_blank">XAMPP</a> to setup a local development environment. For those you who don&#8217;t know, XAMPP is an Apache based web server that comes pre-configured with installations of MySQL, PHP, and Perl. At the time of writing this post, the most current distribution of XAMPP is 1.7.1. XAMPP can be downloaded <a title="Download XAMPP" href="http://www.apachefriends.org/en/xampp-windows.html#646" target="_blank">here</a>. (Note: This tutorial will not work for the latest version of XAMPP. XAMPP 1.7.2 has been released and comes bundled with PHP 5.3 which has known issues with CodeIgniter 1.7.1.  I will get an updated tutorial on the differences and how to get things rolling with XAMPP 1.7.2 ASAP).</p>
<p>After you have downloaded XAMPP, run the executable to extract the files to your location of choice. I chose to extract to the root of the C: drive so that XAMPP will be located at C:\xampplite. Navigate to this directory and run the <em>setup_xampp.bat</em> file.</p>
<p>The next step will be starting up Apache and ensuring that everything is working up to this point. To do this, run <em>xampp-control.exe.</em> This is the XAMPP Control Panel. Here you will be able to start and stop all the needed services or access phpmyadmin. Go ahead and click on the <em>Start</em> button to the right of the Apache label. Now jump over to your browser of choice and enter <em>http://localhost</em> into the address bar and press enter.</p>
<p>You should now see the default XAMPP installation page. If you do then we are ready to move on to CodeIgniter.</p>
<h2>Download CodeIgniter</h2>
<p>Now it&#8217;s time to move on the CodeIgniter installation. At the time of writing this tutorial CodeIgniter is also in version 1.7.1. Check the <a title="codeigniter.com" href="http://www.codeigniter.com" target="_blank">CodeIgniter</a> site to find the latest version.</p>
<h2>CodeIgniter and MVC Background</h2>
<div id="attachment_13" class="wp-caption alignright" style="width: 310px"><img class="size-full wp-image-13" title="MVC Data Flow" src="http://blufusion.net/wp-content/uploads/2009/07/mvcflow.png" alt="MVC Data Flow" width="300" height="369" /><p class="wp-caption-text">MVC Data Flow</p></div>
<p>CodeIgniter is a powerful, lightweight PHP based framework that is based off of the MVC (Model &#8211; View &#8211; Controller) architecture. A lot of people have a hard time grasping MVC but it is really not that complicated. MVC is designed to separate you code from presentation, allowing you to create views that are very clean and minimal on PHP. Let&#8217;s talk about MVC a little more in depth for a second.</p>
<p>Models &#8211; Models are typically used to perform any database interaction. By using a model to do all data retrieval, you leave other layers like the controller for gathering/prepping all the data for display. Models are not restricted to only database interaction though. You can push any functionality that you wish out to a model.</p>
<p>Views &#8211; Views contain all presentation layer code (HTML, CSS, etc). View files should be something that you are comfortable with.</p>
<p>Controller &#8211; The controller is what ties everything together. When to go to a url hosted on a CodeIgniter site, the controller is in charge of gathering all data needed for the page and then passing that data to the view files for display in your browser.</p>
<p>On top of the MVC architecture, CodeIgniter also has a large selection of code libraries available at your disposal. These libraries provide simplified access to functions such as:</p>
<ul>
<li>Validating user form input</li>
<li>Querying databases</li>
<li>Managing user sessions</li>
<li>Manipulating images</li>
<li>and more&#8230; See <a title="CodeIgniter User Guide" href="http://www.codeigniter.com/user_guide" target="_blank">CI User Guide</a> for a complete list</li>
</ul>
<p>CodeIgniter also has a long list of helpers available. Helpers provide a host of common functions to simply normal tasks such as opening forms, sending emails, and more. Once again, the complete list of helpers is available in the CodeIgniter User Guide.</p>
<h2>Installing CodeIgniter. Finally!</h2>
<p>Now that we&#8217;ve got you a little more familiar with what CodeIgniter is and how some of the pieces work together, its time to move on to the installation. CodeIgniter&#8217;s installation is extremely simple. Hopefully you already have CodeIgniter downloaded. If you do, navigate to the <em>htdocs</em> directory within your XAMPP installation directory, and remove all of the current files there. Next extract the CodeIgniter, and move all files in the inner CodeIgniter_1.7.1 subfolder into the <em>htdocs</em> folder and navigate back to <em>http://localhost</em> in your browser once again. At this point, you should now be greeted with the default CodeIgniter welcome page.</p>
<p>That&#8217;s all there is to it. You now have CodeIgniter up and running locally. I plan to continue these tutorials and will help you figure out where to go and what to do now that you have things running. We&#8217;ll cover creating your first controller, view, and issues with index.php.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/yiMLh1ygLVauwxRFrPQUc-qaZUY/0/da"><img src="http://feedads.g.doubleclick.net/~a/yiMLh1ygLVauwxRFrPQUc-qaZUY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/yiMLh1ygLVauwxRFrPQUc-qaZUY/1/da"><img src="http://feedads.g.doubleclick.net/~a/yiMLh1ygLVauwxRFrPQUc-qaZUY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/blufusion/~4/QZ4E0CZK0Ow" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blufusion.net/2009/07/18/codeigniter-from-the-very-beginning/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://blufusion.net/2009/07/18/codeigniter-from-the-very-beginning/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
	</channel>
</rss>
