<?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>Cultivate Web Design Melbourne - Development Blog &#187; isVisible</title>
	<atom:link href="http://cultivatewebdesign.com.au/blog/tag/isvisible/feed/" rel="self" type="application/rss+xml" />
	<link>http://cultivatewebdesign.com.au/blog</link>
	<description></description>
	<lastBuildDate>Thu, 12 Aug 2010 04:16:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Check if an element&#8217;s hidden or visible using mootools</title>
		<link>http://cultivatewebdesign.com.au/blog/check-if-an-elements-hidden-or-visible-using-mootools/</link>
		<comments>http://cultivatewebdesign.com.au/blog/check-if-an-elements-hidden-or-visible-using-mootools/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 01:58:11 +0000</pubDate>
		<dc:creator>Chris Gunn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[isHidden]]></category>
		<category><![CDATA[isVisible]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[OffsetHeight]]></category>
		<category><![CDATA[validate]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web design melbourne]]></category>

		<guid isPermaLink="false">http://cultivatewebdesign.com.au/blog/?p=85</guid>
		<description><![CDATA[OffsetHeight property returns the elements real width including borders, margin and padding. This is a IE introduced property not in w3c but now implemented in almost all browsers. Maybe we should try using mootools new get calculated width/height? We combined this with phatfusions validate to only validate visible fields on forms. Element.implement( { isHidden: function() [...]]]></description>
			<content:encoded><![CDATA[<p>OffsetHeight property returns the elements real width including borders, margin and padding.<br />
This is a IE introduced property not in w3c but now implemented in almost all browsers. Maybe we should try using mootools new get calculated width/height?</p>
<p>We combined this with phatfusions validate to only validate visible fields on forms.</p>
<pre class="brush: jscript;">
Element.implement(
{	isHidden: function()
{	var w = this.offsetWidth, h = this.offsetHeight,
force = (this.tagName === 'TR');
return (w===0 &amp;amp;&amp;amp; h===0 &amp;amp;&amp;amp; !force) ? true : (w!==0 &amp;amp;&amp;amp; h!==0 &amp;amp;&amp;amp; !force) ? false : this.getStyle('display') === 'none';
},

isVisible: function()
{	return !this.isHidden();
}
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://cultivatewebdesign.com.au/blog/check-if-an-elements-hidden-or-visible-using-mootools/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

