<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: If I Told You You Had a Beautiful Figure&#8230;</title>
	<atom:link href="http://ajaxian.com/archives/if-i-told-you-you-had-a-beautiful-figure/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/if-i-told-you-you-had-a-beautiful-figure</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Joe</title>
		<link>http://ajaxian.com/archives/if-i-told-you-you-had-a-beautiful-figure/comment-page-1#comment-256063</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 25 Sep 2007 18:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2813#comment-256063</guid>
		<description>I agree with everyone. There&#039;s many ways to skin a cat but this just seems to be breaking out a chainsaw when other options are far better.</description>
		<content:encoded><![CDATA[<p>I agree with everyone. There&#8217;s many ways to skin a cat but this just seems to be breaking out a chainsaw when other options are far better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://ajaxian.com/archives/if-i-told-you-you-had-a-beautiful-figure/comment-page-1#comment-256057</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Tue, 25 Sep 2007 17:41:48 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2813#comment-256057</guid>
		<description>Jake, Andy I got flamed the other day for suggesting the same things:
1.  How, as a layout designer, does one not have control over the layout
and
2.  Just because something seems hard in CSS does not mean it can&#039;t be done.  Too often JS is used where designers can&#039;t see a solution in grid design or floats.  The worst part is that JS is not very good at resizing the flow of content -- for instance, firing up to 1000s of times on a window resize.&lt;code&gt;

&lt;/code&gt;The strange part to me is that this is being done client-side, &lt;em&gt;not in the CMS&lt;/em&gt;.  If you know what the target dimensions are for images, you could have a backend utility read the dimensions on post, or send the image dimensions from the client, and have the change permanently committed to the HTML.  That way there&#039;s no weird resizing on page load.  Also, &lt;strong&gt;then there&#039;s no need for prototype (or other libraries).&lt;/strong&gt;&lt;code&gt;

&lt;/code&gt;I repeat that I think this is a bad example for n00bs, encouraging framework dependency over faster, more proper JS or CSS .  It&#039;s great now that jQuery, Prototype, and YUI have Positioning/Dimensions libraries, but relying on them for basic layout is a bad path to take.</description>
		<content:encoded><![CDATA[<p>Jake, Andy I got flamed the other day for suggesting the same things:<br />
1.  How, as a layout designer, does one not have control over the layout<br />
and<br />
2.  Just because something seems hard in CSS does not mean it can&#8217;t be done.  Too often JS is used where designers can&#8217;t see a solution in grid design or floats.  The worst part is that JS is not very good at resizing the flow of content &#8212; for instance, firing up to 1000s of times on a window resize.<code></p>
<p></code>The strange part to me is that this is being done client-side, <em>not in the CMS</em>.  If you know what the target dimensions are for images, you could have a backend utility read the dimensions on post, or send the image dimensions from the client, and have the change permanently committed to the HTML.  That way there&#8217;s no weird resizing on page load.  Also, <strong>then there&#8217;s no need for prototype (or other libraries).</strong><code></p>
<p></code>I repeat that I think this is a bad example for n00bs, encouraging framework dependency over faster, more proper JS or CSS .  It&#8217;s great now that jQuery, Prototype, and YUI have Positioning/Dimensions libraries, but relying on them for basic layout is a bad path to take.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://ajaxian.com/archives/if-i-told-you-you-had-a-beautiful-figure/comment-page-1#comment-256033</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Tue, 25 Sep 2007 13:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2813#comment-256033</guid>
		<description>Another solution is to work closer with &quot;those who fill in the content&quot; so they understand the design goals (and the designer understands the content goals) to avoid this kind of thing all together.

Also, if the &quot;images pixelate horribly when resized&quot;, why would the browser be any better at this?</description>
		<content:encoded><![CDATA[<p>Another solution is to work closer with &#8220;those who fill in the content&#8221; so they understand the design goals (and the designer understands the content goals) to avoid this kind of thing all together.</p>
<p>Also, if the &#8220;images pixelate horribly when resized&#8221;, why would the browser be any better at this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jake</title>
		<link>http://ajaxian.com/archives/if-i-told-you-you-had-a-beautiful-figure/comment-page-1#comment-256031</link>
		<dc:creator>jake</dc:creator>
		<pubDate>Tue, 25 Sep 2007 13:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2813#comment-256031</guid>
		<description>I hate to say this but ... this is an example of what not to do with JavaScript. JavaScript is meant to add interaction to a webpage, not fix an html/css issue.  The only exception might be using JS to fix a browser specific css bug but still it is usually better to fix you&#039;re css bugs within your stylesheets.

This example could easily be done using a table. The &#039;image with caption&#039; can be wrapped with  which will collapse the outer container.  Another easy solution is just include the image width, which we all know to do from HTML 101, and then you could also set the outer div width.</description>
		<content:encoded><![CDATA[<p>I hate to say this but &#8230; this is an example of what not to do with JavaScript. JavaScript is meant to add interaction to a webpage, not fix an html/css issue.  The only exception might be using JS to fix a browser specific css bug but still it is usually better to fix you&#8217;re css bugs within your stylesheets.</p>
<p>This example could easily be done using a table. The &#8216;image with caption&#8217; can be wrapped with  which will collapse the outer container.  Another easy solution is just include the image width, which we all know to do from HTML 101, and then you could also set the outer div width.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

