<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Software As She's Developed &#187; MHTML</title>
	<atom:link href="http://softwareas.com/tag/mhtml/feed" rel="self" type="application/rss+xml" />
	<link>http://softwareas.com</link>
	<description>Mahemoff's Podcast/Blog - Web, Programming, Usability from the Author of 'Ajax Design Patterns' (AjaxPatterns.org)</description>
	<lastBuildDate>Wed, 25 Aug 2010 11:40:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.4" -->
		<copyright>Copyright &amp;#xA9; Software As She's Developed 2010 </copyright>
		<managingEditor>michael@mahemoff.com (Software As She's Developed)</managingEditor>
		<webMaster>michael@mahemoff.com (Software As She's Developed)</webMaster>
		<category>posts</category>
		<ttl>1440</ttl>
		<itunes:keywords></itunes:keywords>
		<itunes:subtitle></itunes:subtitle>
		<itunes:summary>Mahemoff's Podcast/Blog - Web, Programming, Usability from the Author of 'Ajax Design Patterns' (AjaxPatterns.org)</itunes:summary>
		<itunes:author>Software As She's Developed</itunes:author>
		<itunes:category text="Society &amp; Culture"/>
		<itunes:owner>
			<itunes:name>Software As She's Developed</itunes:name>
			<itunes:email>michael@mahemoff.com</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://softwareas.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<image>
			<url>http://softwareas.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
			<title>Software As She's Developed</title>
			<link>http://softwareas.com</link>
			<width>144</width>
			<height>144</height>
		</image>
		<item>
		<title>Embedded Images in TiddlyWiki Under IE6 via MHTML &#8211; Proof-of-concept</title>
		<link>http://softwareas.com/embedded-images-in-tiddlywiki-under-ie6-via-mhtml-proof-of-concept</link>
		<comments>http://softwareas.com/embedded-images-in-tiddlywiki-under-ie6-via-mhtml-proof-of-concept#comments</comments>
		<pubDate>Mon, 16 Nov 2009 21:32:38 +0000</pubDate>
		<dc:creator>mahemoff</dc:creator>
				<category><![CDATA[SoftwareDev]]></category>
		<category><![CDATA[AjaxPatterns]]></category>
		<category><![CDATA[Experiment]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[MHTML]]></category>
		<category><![CDATA[TiddlyWiki]]></category>

		<guid isPermaLink="false">http://softwareas.com/embedded-images-in-tiddlywiki-under-ie6-via-mhtml-proof-of-concept</guid>
		<description><![CDATA[

I only came across the MHTML image hack over the weekend, while listening to @jeresig on the new jQuery podcast (incidentally not the only ]]></description>
			<content:encoded><![CDATA[<p><a href="http://tiddlywiki.mahemoff.com/graphical.html" title="tiddlywiki mhtml images (by mahemoff)"><img src="http://farm3.static.flickr.com/2655/4109725075_f297009308.jpg" title="tiddlywiki mhtml images (by mahemoff)" alt="tiddlywiki mhtml images (by mahemoff)" width="400" height="338" /></a></p>

<p>I only came across the <a href="http://www.phpied.com/mhtml-when-you-need-data-uris-in-ie7-and-under/">MHTML image hack</a> over the weekend, while listening to @jeresig on the new <a href="http://blog.jquery.com/2009/11/13/announcing-the-official-jquery-podcast/">jQuery podcast</a> (incidentally not the only <a href=""http://paulirish.com/2009/introducing-yayquery-a-jquery-podcast">jQuery podcast</a> to be launched in the past week or two).</p>

<p>The MHTML image hack lets you embed images with text, just like ye olde data: URI hack, but in a way that works for IE6. MHTML is MIME for HTML.</p>

<p>Of course, I immediately wondered if it could work in a single-page web app like tiddlywiki, and it turns out it can, though my quick exercise still has some problems.</p>

<p><a href="http://tiddlywiki.mahemoff.com/graphical.html">IE6 TiddlyWiki images demo here</a></p>

<p>As I wrote on the demo itself:</p>

<blockquote>
<p>Normally, images are contained in a separate location, pointed at from HTML IMG tags or from CSS background-image properties. However, Tiddlywiki is a style of web app where everything resides in one file. So how to include images?

</p><p>The usual hack is to embed data: URIs (http://en.wikipedia.org/wiki/Data_URI_scheme). However, no go for IE6 and IE7. Hence, a &#8220;newer&#8221; technique &#8211; newer meaning recently discovered. That is, MHTML (http://www.phpied.com/mhtml-when-you-need-data-uris-in-ie7-and-under/).

</p><p>I was curious if MHTML worked in single-file HTML pages, reading off a file URI, and to my surprise it does. That said, it&#8217;s not perfect at all. Firstly, I had to hard-code the location, because I don&#8217;t know how to refer to &#8220;the current file&#8221; within the MHTML link. (I suppose a workaround would be to output the image file and refer to that with a relative URL, but we lose the benefit of everything being in one file.) Secondly, I played around with various base-64 images and this arrow one (from the phpied.com demo) was the only that worked <img src='http://softwareas.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .

</p><p>So it&#8217;s a proof-of-concept with many gaps left for the reader to fill!
</p></blockquote>

<p>Hopefully people play with this further. <a href="http://ie6isolderthan.com">At 3002 days old and counting</a>, your grandpa&#8217;s browser isn&#8217;t going anywhere fast.</p>
]]></content:encoded>
			<wfw:commentRss>http://softwareas.com/embedded-images-in-tiddlywiki-under-ie6-via-mhtml-proof-of-concept/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
