<?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: Emulating onhashchange without setInterval</title>
	<atom:link href="http://ajaxian.com/archives/emulating-onhashchange-without-setinterval/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/emulating-onhashchange-without-setinterval</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: SalmanMitha</title>
		<link>http://ajaxian.com/archives/emulating-onhashchange-without-setinterval/comment-page-1#comment-285631</link>
		<dc:creator>SalmanMitha</dc:creator>
		<pubDate>Mon, 24 Jan 2011 03:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4163#comment-285631</guid>
		<description>Timer is least problematic, n most easy.. 
y nt use this!!
if ((&#039;onhashchange&#039; in window) &#124;&#124; (&#039;onhashchange&#039; in document))
  window.onhashchange = doSomething;
else
  window.setInterval(&quot;doSomething()&quot;,200);</description>
		<content:encoded><![CDATA[<p>Timer is least problematic, n most easy..<br />
y nt use this!!<br />
if ((&#8216;onhashchange&#8217; in window) || (&#8216;onhashchange&#8217; in document))<br />
  window.onhashchange = doSomething;<br />
else<br />
  window.setInterval(&#8220;doSomething()&#8221;,200);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zachleat</title>
		<link>http://ajaxian.com/archives/emulating-onhashchange-without-setinterval/comment-page-1#comment-266880</link>
		<dc:creator>zachleat</dc:creator>
		<pubDate>Mon, 25 Aug 2008 01:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4163#comment-266880</guid>
		<description>Hey quixote and Dean,
It doesn&#039;t even need text in the a tags inside of the i-frame.  You can get the current hash from the name attribute of the currently scrolled i-frame.

I&#039;ve updated the script on my page, if you want to check it out.

Thanks,
Zach</description>
		<content:encoded><![CDATA[<p>Hey quixote and Dean,<br />
It doesn&#8217;t even need text in the a tags inside of the i-frame.  You can get the current hash from the name attribute of the currently scrolled i-frame.</p>
<p>I&#8217;ve updated the script on my page, if you want to check it out.</p>
<p>Thanks,<br />
Zach</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: quixote218</title>
		<link>http://ajaxian.com/archives/emulating-onhashchange-without-setinterval/comment-page-1#comment-266875</link>
		<dc:creator>quixote218</dc:creator>
		<pubDate>Sun, 24 Aug 2008 17:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4163#comment-266875</guid>
		<description>You could fix the text-resize issue with some CSS, I think.

a {
   display:block;
   height:50px;
   overflow:hidden;
}

Since the target element is a fixed size (the size should be greater than the height of the iframe, I assume), scrolling will always happen and text size won&#039;t matter.</description>
		<content:encoded><![CDATA[<p>You could fix the text-resize issue with some CSS, I think.</p>
<p>a {<br />
   display:block;<br />
   height:50px;<br />
   overflow:hidden;<br />
}</p>
<p>Since the target element is a fixed size (the size should be greater than the height of the iframe, I assume), scrolling will always happen and text size won&#8217;t matter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zachleat</title>
		<link>http://ajaxian.com/archives/emulating-onhashchange-without-setinterval/comment-page-1#comment-266850</link>
		<dc:creator>zachleat</dc:creator>
		<pubDate>Fri, 22 Aug 2008 20:13:57 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4163#comment-266850</guid>
		<description>@Dean, I&#039;ll work on it later tonight when I&#039;m not on company time.  I&#039;ll update the post on my page when I&#039;ve got it working.  It&#039;s good to stay hydrated, just try not to get soaked.</description>
		<content:encoded><![CDATA[<p>@Dean, I&#8217;ll work on it later tonight when I&#8217;m not on company time.  I&#8217;ll update the post on my page when I&#8217;ve got it working.  It&#8217;s good to stay hydrated, just try not to get soaked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deanedwards</title>
		<link>http://ajaxian.com/archives/emulating-onhashchange-without-setinterval/comment-page-1#comment-266847</link>
		<dc:creator>deanedwards</dc:creator>
		<pubDate>Fri, 22 Aug 2008 17:10:54 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4163#comment-266847</guid>
		<description>@Zach, sorry to be a wet blanket. If you can get it working with resized text then I might reconsider. :-)</description>
		<content:encoded><![CDATA[<p>@Zach, sorry to be a wet blanket. If you can get it working with resized text then I might reconsider. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zachleat</title>
		<link>http://ajaxian.com/archives/emulating-onhashchange-without-setinterval/comment-page-1#comment-266845</link>
		<dc:creator>zachleat</dc:creator>
		<pubDate>Fri, 22 Aug 2008 14:45:55 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4163#comment-266845</guid>
		<description>Also, you&#039;d have to resize your text to gargantuan proportions to actually break this approach.  But I&#039;ll update the page with a fix.</description>
		<content:encoded><![CDATA[<p>Also, you&#8217;d have to resize your text to gargantuan proportions to actually break this approach.  But I&#8217;ll update the page with a fix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zachleat</title>
		<link>http://ajaxian.com/archives/emulating-onhashchange-without-setinterval/comment-page-1#comment-266844</link>
		<dc:creator>zachleat</dc:creator>
		<pubDate>Fri, 22 Aug 2008 14:34:45 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4163#comment-266844</guid>
		<description>Hey Dean,
I have a lot of respect for the work that you&#039;ve done, but I think that concentrating on that one point of failure misses the beauty of the approach.

This is a cross browser bookmarking script that relies on almost nothing but standard browser behavior: that linking to a #name will jump to that name on the page and create a new history entry.

Removing the text inside of the div&#039;s created inside of the iframe would fix your problem, no?

Regards, Zach</description>
		<content:encoded><![CDATA[<p>Hey Dean,<br />
I have a lot of respect for the work that you&#8217;ve done, but I think that concentrating on that one point of failure misses the beauty of the approach.</p>
<p>This is a cross browser bookmarking script that relies on almost nothing but standard browser behavior: that linking to a #name will jump to that name on the page and create a new history entry.</p>
<p>Removing the text inside of the div&#8217;s created inside of the iframe would fix your problem, no?</p>
<p>Regards, Zach</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbloom</title>
		<link>http://ajaxian.com/archives/emulating-onhashchange-without-setinterval/comment-page-1#comment-266843</link>
		<dc:creator>dbloom</dc:creator>
		<pubDate>Fri, 22 Aug 2008 14:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4163#comment-266843</guid>
		<description>I wrote a history script a few years ago that does something similar, &lt;i&gt;with&lt;/i&gt; bookmarking:
http://bloomd.home.mchsi.com/newhist/demo

One fun advantage over other history scripts it has is that it can tell the index in the history, as well as the hash value. So you can have two pages in the same session with the same hash value, and be able to distinguish the two (for purposes such as cacheing scroll position, etc).

It&#039;s really, really hacky though. It actually loads the page&#039;s &lt;i&gt;content&lt;/i&gt; in a position:fixed iframe. And it doesn&#039;t work in Opera :-(.</description>
		<content:encoded><![CDATA[<p>I wrote a history script a few years ago that does something similar, <i>with</i> bookmarking:<br />
<a href="http://bloomd.home.mchsi.com/newhist/demo" rel="nofollow">http://bloomd.home.mchsi.com/newhist/demo</a></p>
<p>One fun advantage over other history scripts it has is that it can tell the index in the history, as well as the hash value. So you can have two pages in the same session with the same hash value, and be able to distinguish the two (for purposes such as cacheing scroll position, etc).</p>
<p>It&#8217;s really, really hacky though. It actually loads the page&#8217;s <i>content</i> in a position:fixed iframe. And it doesn&#8217;t work in Opera :-(.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deanedwards</title>
		<link>http://ajaxian.com/archives/emulating-onhashchange-without-setinterval/comment-page-1#comment-266840</link>
		<dc:creator>deanedwards</dc:creator>
		<pubDate>Fri, 22 Aug 2008 13:39:16 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4163#comment-266840</guid>
		<description>It immediately breaks when you resize text. I&#039;ll stick with a timer thanks.</description>
		<content:encoded><![CDATA[<p>It immediately breaks when you resize text. I&#8217;ll stick with a timer thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: V1</title>
		<link>http://ajaxian.com/archives/emulating-onhashchange-without-setinterval/comment-page-1#comment-266838</link>
		<dc:creator>V1</dc:creator>
		<pubDate>Fri, 22 Aug 2008 12:57:33 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4163#comment-266838</guid>
		<description>hot, what else can i say</description>
		<content:encoded><![CDATA[<p>hot, what else can i say</p>
]]></content:encoded>
	</item>
</channel>
</rss>

