<?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>Ajax Bestiary &#187; dimensions</title>
	<atom:link href="http://www.ajaxbestiary.com/tag/dimensions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ajaxbestiary.com</link>
	<description>AJAX Development, News, Techniques &#38; More</description>
	<lastBuildDate>Wed, 01 Feb 2012 12:46:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Determining Position with YUI</title>
		<link>http://www.ajaxbestiary.com/2007/11/05/determining-position-with-yui/</link>
		<comments>http://www.ajaxbestiary.com/2007/11/05/determining-position-with-yui/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 13:57:23 +0000</pubDate>
		<dc:creator>Don Albrecht</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[YUI]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[dimensions]]></category>
		<category><![CDATA[Space]]></category>

		<guid isPermaLink="false">http://www.ajaxbestiary.com/2007/11/05/determining-position-with-yui/</guid>
		<description><![CDATA[Today we conclude our series of posts on space &#38; dimension with an exploration of YUI&#8217;s Spacial capabilities. Many of YUI&#8217;s capabilities aren&#8217;t readily apparent from the component level documentation. One exception are the setXY &#38; getXY functions. setXY &#38; getXY operate on the top left corner of an Element relative to the top left [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Today we conclude our series of posts on space &amp; dimension with an exploration of YUI&#8217;s Spacial capabilities.  Many of YUI&#8217;s capabilities aren&#8217;t readily apparent from the component level documentation.  One exception are the setXY &amp; getXY functions.</p>
<ul>
<li>setXY &amp; getXY operate on the top left corner of an Element relative to the top left corner of the document.</li>
<li>A companion getXY is provided with the YUI event object to determine the location of clicks.</li>
</ul>
<p>A look at YUI&#8217;s API&#8217;s reveals a second, powerful class for dealing with 2d space.  The YUI region class is a representation of an object on a grid.  Region provides the top, left, right &amp; bottom locations in a rectangular shape.  Region is not a tool for manipulating the dom, rather it is a utility class for determining the union, intersection, area and other properties of a defined rectangular area.</p>
<p>YUI lacks many of the capabilities for handling scrolls, widths  &amp; heights we&#8217;ve encountered in other toolkits but still provides a reasonably capable set of tools with which to handle locations within a document.</p>
<p><img src="http://www.ajaxbestiary.com/?voyeur=1"></p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.ajaxbestiary.com/2007/11/05/determining-position-with-yui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handling Space &amp; Dimensions with Dojo &amp; Spry</title>
		<link>http://www.ajaxbestiary.com/2007/11/03/handling-space-dimensions-with-dojo-spry/</link>
		<comments>http://www.ajaxbestiary.com/2007/11/03/handling-space-dimensions-with-dojo-spry/#comments</comments>
		<pubDate>Sat, 03 Nov 2007 17:40:53 +0000</pubDate>
		<dc:creator>Don Albrecht</dc:creator>
				<category><![CDATA[Dojo]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[dimensions]]></category>
		<category><![CDATA[Space]]></category>
		<category><![CDATA[Spry]]></category>

		<guid isPermaLink="false">http://www.ajaxbestiary.com/2007/11/03/handling-space-dimensions-with-dojo-spry/</guid>
		<description><![CDATA[I may be looking in the wrong place.&#160; But I haven&#8217;t been able to find any dimension &#38; spatial capabilities in either Dojo 1.0 or the Spry framework.&#160; If anyone knows how to determine xy positions of page elements using either of these toolkits, please leave your comments below.]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>I may be looking in the wrong place.&nbsp; But I haven&#8217;t been able to find any dimension &amp; spatial capabilities in either Dojo 1.0 or the Spry framework.&nbsp; If anyone knows how to determine xy positions of page elements using either of these toolkits, please leave your comments below.</p>
<p><img src="http://www.ajaxbestiary.com/?voyeur=1"></p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.ajaxbestiary.com/2007/11/03/handling-space-dimensions-with-dojo-spry/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Handling Space in Mootools</title>
		<link>http://www.ajaxbestiary.com/2007/11/02/handling-space-in-mootools/</link>
		<comments>http://www.ajaxbestiary.com/2007/11/02/handling-space-in-mootools/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 16:48:12 +0000</pubDate>
		<dc:creator>Don Albrecht</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[dimensions]]></category>

		<guid isPermaLink="false">http://www.ajaxbestiary.com/2007/11/02/handling-space-in-mootools/</guid>
		<description><![CDATA[Today we continue our series exploring the way spacial data is handled in Javascript toolkits with a look at mootools.  (Read Previous Installments on jQuery and prototype).   Similar to prototype, mootools includes dimensioning information in the Element Object.  Unlike prototype, mootools includes positioning information there as well.  Window &#38; Document level information is contained separately [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Today we continue our series exploring the way spacial data is handled in Javascript toolkits with a look at mootools.  (Read Previous Installments on <a href="http://www.ajaxbestiary.com/2007/10/31/jquery-dimension-plugin-spacial-awareness-made-simple/">jQuery</a> and <a href="http://www.ajaxbestiary.com/2007/11/01/handling-dimensions-with-prototype/">prototype</a>).   Similar to prototype, mootools includes dimensioning information in the Element Object.  Unlike prototype, mootools includes positioning information there as well.  Window &amp; Document level information is contained separately in Window.size.js</p>
<p>Element Dimension &amp; Position Properties (Element.Dimensions.js):</p>
<ul>
<li> scrollTo(): Scrolls an element to a specified position (in some toolkits, scroll to scrolls the container to the specified element).</li>
<li>getSize(): Returns an Object representing all size &amp; scroll values of the elemen.</li>
<li>getPosition(): Returns the real offsets of the element (relative to document).</li>
<li>getTop: Returns the top position of the element (relative to the window).</li>
<li>getLeft: Returns the left position of the element (relative to the window).</li>
</ul>
<p>The Window dimensions (Window.Size.js):</p>
<ul>
<li>getWidth: Returns width <strong>Window</strong></li>
<li>getScrollWidth: Returns width of<strong> Document</strong></li>
<li>getHeight: Returns height of <strong>Window</strong></li>
<li>getScrollHeight: Returns height of <strong> Document</strong></li>
<li>getScrollLeft: Determine current left offset of viewport relative to document.</li>
<li>getScrollTop: Determine current vertical offset of viewport relative to document.</li>
<li>getSize: Same as Element.getSize.</li>
</ul>
<p>Next time, we&#8217;ll look at YUI.</p>
<p><img src="http://www.ajaxbestiary.com/?voyeur=1"></p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.ajaxbestiary.com/2007/11/02/handling-space-in-mootools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handling Dimensions with Prototype</title>
		<link>http://www.ajaxbestiary.com/2007/11/01/handling-dimensions-with-prototype/</link>
		<comments>http://www.ajaxbestiary.com/2007/11/01/handling-dimensions-with-prototype/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 18:23:43 +0000</pubDate>
		<dc:creator>Don Albrecht</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[dimensions]]></category>

		<guid isPermaLink="false">http://www.ajaxbestiary.com/2007/11/01/handling-dimensions-with-prototype/</guid>
		<description><![CDATA[Yesterday, We explored the jQuery Dimensions plugin and how it can be used to get a handle on the Physical location of elements on the page. Today we explore achieving the same effect with the native Prototype Element &#38; Position Objects. Element provides three methods to get a handle on the dimensions of an element [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Yesterday, <a href="http://www.ajaxbestiary.com/2007/10/31/jquery-dimension-plugin-spacial-awareness-made-simple/">We explored the jQuery Dimensions plugin</a> and how it can be used to get a handle on the Physical location of elements on the page.  Today we explore achieving the same effect with the native Prototype Element &amp; Position Objects.</p>
<p>Element provides three methods to get a handle on the dimensions of an element</p>
<ul>
<li>getWidth( element )  Returns the width of an element</li>
<li>getHeight() Returns the height of an element</li>
<li>getDimensions() Returns the height &amp; width of an element as an associative array.</li>
</ul>
<p>For more advanced and capable access to the spacial properties of an Element we turn to the Position object.</p>
<ul>
<li>page()  Returns the x, y position of an element relative to the viewport</li>
<li>cumulativeOffset() Returns the x, y position of an element relative to the entire document</li>
<li>positionedOffset() Returns the position of an element relative to its parent.</li>
</ul>
<p>As you can see, the prototype tools are a bit more powerful out of the box than jQuery Dimension (None of these require a plugin.)  Prototype, however, doesn&#8217;t handle scrolls as well as jQuery Dimension.</p>
<p>Read more about these APIs at</p>
<p><a href="http://www.prototypejs.org/api">http://www.prototypejs.org/api </a></p>
<p><img src="http://www.ajaxbestiary.com/?voyeur=1"></p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.ajaxbestiary.com/2007/11/01/handling-dimensions-with-prototype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

