<?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>Transcending Frontiers &#187; Animating Table Rows with jQuery</title>
	<atom:link href="http://blog.thefrontiergroup.com.au/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thefrontiergroup.com.au</link>
	<description>Your peek inside the collective mind of The Frontier Group</description>
	<lastBuildDate>Mon, 02 Apr 2012 04:32:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Animating Table Rows with jQuery</title>
		<link>http://blog.thefrontiergroup.com.au/2008/12/animating-table-rows-with-jquery/</link>
		<comments>http://blog.thefrontiergroup.com.au/2008/12/animating-table-rows-with-jquery/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 13:55:19 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[AuroraCMS]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Product Reviews]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=220</guid>
		<description><![CDATA[Animating table rows in the browser is problematic. You see, they aren&#8217;t block elements and as such don&#8217;t have a height or width property. Instead they take their constraints from the content inside them, and the elements that contain them. For rows this typically means they&#8217;re constrained by the containing table, and filled by the [...]]]></description>
			<content:encoded><![CDATA[<p>Animating table rows in the browser is problematic. You see, they aren&#8217;t block elements and as such don&#8217;t have a height or width property. Instead they take their constraints from the content inside them, and the elements that contain them. For rows this typically means they&#8217;re constrained by the containing table, and filled by the contained columns.</p>
<p>Today I wanted to slide a row up, and then when it had finished sliding I wanted to remove it from the DOM. Essentially giving it a nice effect when something is deleted.</p>
<p>Given that the height of a row is controlled by it&#8217;s content, I figured the easiest way to do this would be to wrap all of the content inside each column with a block element, in this case a <code>div</code>, and then resize those.</p>
<p>jQuery makes this extremely easy :</p>
<pre name="code" class="javascript">var el = $(options.element_prefix + id);
el.children("td").each(function() {
    $(this).wrapInner("< div />").children("div").slideUp(function() {el.remove();})
});</pre>
<p>NOTE : The div tag in the <code>wrapInner()</code> is malformed because it won&#8217;t display properly otherwise. Please remove the space between the opening bracket and &#8216;div&#8217;. </p>
<p>It&#8217;s all pretty easy to understand. Essentially my root element is a row, and so for each <code>td</code> in that row wrap it&#8217;s content in a <code>div</code>. Then for the child <code>divs</code> in each <code>td</code>, run the <code>slideUp()</code> method. The callback in the <code>slideUp()</code> method says after the animation is done, remove the row. Given the speed of computers these days, no one will notice that the last few columns quite likely just vanish instead of complete their animation.</p>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2008/12/animating-table-rows-with-jquery/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2008/12/animating-table-rows-with-jquery/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Better Ways For Laying Out HTML Forms</title>
		<link>http://blog.thefrontiergroup.com.au/2008/10/better-forms/</link>
		<comments>http://blog.thefrontiergroup.com.au/2008/10/better-forms/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 01:37:42 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Websites or Tools]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=60</guid>
		<description><![CDATA[The project I&#8217;m currently working on involves creating a lot of very large and somewhat complex forms. I hadn&#8217;t investigated better ways to create HTML forms for quite a while but this seemed like the perfect opportunity to do so. After a quick search I found a great page with some tips on how to [...]]]></description>
			<content:encoded><![CDATA[<p>The project I&#8217;m currently working on involves creating a lot of very large and somewhat complex forms. I hadn&#8217;t investigated better ways to create HTML forms for quite a while but this seemed like the perfect opportunity to do so.</p>
<p>After a quick search I found a <a href="http://themaninblue.com/experiment/InForm/">great page</a> with some tips on how to better layout forms using CSS, and some new tags such as Fieldset, Label and Legend. This allowed me to create the forms I needed in half the time, using half the markup. The end result were forms that look at least twice as good as the forms I&#8217;d created using my old ways and means.</p>
<p>It just reinforces to me how important it is to keep up in IT!</p>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2008/10/better-forms/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2008/10/better-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

