<?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>Web Plant Media &#187; JQuery</title>
	<atom:link href="http://www.webplantmedia.com/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webplantmedia.com</link>
	<description>Lubbock Web Design and Web Development</description>
	<lastBuildDate>Wed, 28 Mar 2012 21:19:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Sticky Footer at Bottom of Page using JQuery</title>
		<link>http://www.webplantmedia.com/jquery/2010/04/sticky-footer-at-bottom-of-page-using-jquery/</link>
		<comments>http://www.webplantmedia.com/jquery/2010/04/sticky-footer-at-bottom-of-page-using-jquery/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 03:18:26 +0000</pubDate>
		<dc:creator>ChrisB</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.webplantmedia.com/?p=375</guid>
		<description><![CDATA[I was developing a site for my client and I decided that I wanted to make my footer stick to the bottom of the page regardless of the amount of content. I did a search for &#8220;sticky footers&#8221; and found some good CSS hacks. The problem is that it&#8217;s a little hard to implement once [...]]]></description>
			<content:encoded><![CDATA[<p>I was developing a site for my client and I decided that I wanted to make my footer stick to the bottom of the page regardless of the amount of content. I did a search for &#8220;sticky footers&#8221; and found some good CSS hacks. The problem is that it&#8217;s a little hard to implement once you have a majority of you site structured a specific ways.</p>
<p>I can tell you now that the CSS hacks for a sticky footer doesn&#8217;t cooperate well when you have margins declared in other div classes. I spent about an hour trying to get my footer to work right. It would work well in some pages but in others, would display a vertical scroll bar with 20 pixels or so left to scroll.</p>
<p>I got fed up and decided to try and use JQuery to solve my problems. It worked brilliantly! And it&#8217;s as simple as this. If my window height is greater than my content plus footer height, add the appropriate top padding to the footer that will keep it always on the bottom. If the content height is greater than the windows height, leave the padding as it was previously declared in your css. And just make sure you calculate the top padding on page load and when the window is resized.</p>
<p><img class="alignnone size-medium wp-image-376" title="stickyfooter" src="http://www.webplantmedia.com/wp-content/uploads/2010/04/stickyfooter-300x201.jpg" alt="Sticky Footer" /></p>
<p>Here is the code. Just put it at the end of your page somewhere. Make sure you change the class name &#8216;.footer&#8217; with whatever class or id name you are using for your footer.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	positionFooter<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
	<span style="color: #003366; font-weight: bold;">function</span> positionFooter<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> padding_top <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.footer&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;padding-top&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;px&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> page_height <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">body</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> padding_top<span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> window_height <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> difference <span style="color: #339933;">=</span> window_height <span style="color: #339933;">-</span> page_height<span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>difference <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> 
			difference <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
&nbsp;
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.footer&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
			padding<span style="color: #339933;">:</span> difference <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;px 0 0 0&quot;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>
		.<span style="color: #660066;">resize</span><span style="color: #009900;">&#40;</span>positionFooter<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.webplantmedia.com/jquery/2010/04/sticky-footer-at-bottom-of-page-using-jquery/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Fade Problem in qTip &#8211; JQuery</title>
		<link>http://www.webplantmedia.com/jquery/2010/03/fade-problem-in-qtip-jquery/</link>
		<comments>http://www.webplantmedia.com/jquery/2010/03/fade-problem-in-qtip-jquery/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 03:43:40 +0000</pubDate>
		<dc:creator>ChrisB</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.webplantmedia.com/?p=100</guid>
		<description><![CDATA[Using qTip, I was experiencing problems with the opacity levels in the fade in/fade out effects. My tooltip would activate on mouseover and deactivate on mouseout, which could enable a user to toggle back and forth very quickly. When the tooltip is fading in, and I quickly deactivate by mouseout, the opacity level that I [...]]]></description>
			<content:encoded><![CDATA[<p>Using qTip, I was experiencing problems with the opacity levels in the fade in/fade out effects. My tooltip would activate on <em>mouseover</em> and deactivate on <em>mouseout</em>, which could enable a user to toggle back and forth very quickly. When the tooltip is fading in, and I quickly deactivate by <em>mouseout</em>, the opacity level that I deactivate at will become the maximum value.</p>
<p><strong>Example:</strong><br />
<a href="http://www.webplantmedia.com/wp-content/uploads/2010/03/qtip_error1.jpg"><img class="alignnone size-full wp-image-102" title="qtip_error" src="http://www.webplantmedia.com/wp-content/uploads/2010/03/qtip_error1.jpg" alt="fade opacity problem in qTip" width="380" height="152" /></a></p>
<p><strong>Solution 1: </strong>You can turn off effects in jquery.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">jQuery.<span style="color: #660066;">fx</span>.<span style="color: #660066;">off</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span></pre></div></div>

<p>Now, your qtip will not be able to use JQuery&#8217;s <a href="http://api.jquery.com/category/effects/" target="_blank">effect</a> API and will not try to fade in/fade out. Your qTip will be fully functional. But not elegant.</p>
<p>If you don&#8217;t want to globally turn off the effects library for jquery, you can disable the fade in/fade out effects locally by using the <a href="http://api.jquery.com/stop/" target="_blank">stop()</a> method and creating your own &#8220;dummy&#8221; effect function which will override the default effect. Here is an example.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.ajax_tooltip:not(.disabled)'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> information <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">;</span>
    information <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;ref&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">qtip</span><span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#123;</span>
        show<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
            delay<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
            solo<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
            when<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
                target<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
                event<span style="color: #339933;">:</span> <span style="color: #3366CC;">'mouseover'</span>
            <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
            effect<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        hide<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
            fixed<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
            delay<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
            when<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
                target<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
                event<span style="color: #339933;">:</span> <span style="color: #3366CC;">'mouseout'</span>
            <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
            effect<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        position<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
            target<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
            corner<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
                target<span style="color: #339933;">:</span> <span style="color: #3366CC;">'bottomMiddle'</span><span style="color: #339933;">,</span>
                tooltip<span style="color: #339933;">:</span> <span style="color: #3366CC;">'topMiddle'</span>
            <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
            adjust<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> screen<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span> <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        content<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
            url<span style="color: #339933;">:</span> information<span style="color: #339933;">,</span>
            text<span style="color: #339933;">:</span> <span style="color: #3366CC;">'&lt;p&gt;Content Loading...&lt;/p&gt;'</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        style<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> <span style="color: #000066;">name</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'normal'</span> <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong>Solution 2:</strong> You can use this updated <a href='http://www.webplantmedia.com/wp-content/uploads/2010/03/qtip.js'>qTip Patch</a>. This patch fixes the opacity problem during fade in/fade out. However, you may still wish to disable effects for added performance. The contents in this file can completely replace the original content in your qTip.js. I also noticed that it fixes an issue when trying to re-size the width in IE after loading content via Ajax. Keep track of the latest version. The patch is a fix for version 1.0.0-rc3.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webplantmedia.com/jquery/2010/03/fade-problem-in-qtip-jquery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Object Caching 240/246 objects using disk: basic

Served from: www.webplantmedia.com @ 2012-05-18 07:30:00 -->
