Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've done a <em>lot</em> of work with history and using the hash. Almost all of the existing history plugins have some sort of gap in them. The one I've used that's pretty close to perfect is this one which is a jQuery plugin:</p> <p><a href="http://www.mikage.to/jquery/jquery.history.js" rel="nofollow noreferrer">http://www.mikage.to/jquery/jquery.history.js</a> </p> <p>It was updated in March of this year handles IE 8 issues and it also deals with IE6 pretty successfully. One thing I've noticed is that IE really hates having ? in the hash after the #. It stops properly handling the hash when the ? is present. Even this one I think needs a little patch for the ?, I really need to send that along to Mikage. The way to handle this is instead of using <code>location.hash</code> in the plugin when referencing the hash, use this function:</p> <pre><code>function getHash(loc) { loc = loc.toString(); if (loc.indexOf("#") != -1) return loc.substring(loc.indexOf("#")); else return ""; } </code></pre> <p>So in those spots where you need the hash, pass <code>location</code> the to function...</p> <pre><code> getHash(location) </code></pre> <p>...instead of using location.href. But note that for IE, because it's using the iframe, you want to use iframe.location instead.</p> <pre><code> getHash(iframe.location) </code></pre> <p><strong>Yahoo's Bug</strong></p> <p>You can see that Yahoo doesn't gracefully handle ?'s in IE when looking at this URL:</p> <p><a href="http://developer.yahoo.com/yui/examples/history/history-tabview.html#tabview=tab1?7236471234" rel="nofollow noreferrer">http://developer.yahoo.com/yui/examples/history/history-tabview.html#tabview=tab1?7236471234</a></p> <p>It should just ignore the non-existent module, (which it does for other names which have no ?'s in them). But it raises a JavaScript error when a ? is in the URL.</p> <p>(I will extend this list in a moment)</p> <p><strong>Really Simply History</strong></p> <p>Frankly, it's primary issue seems to be it's gone dormant. I've experienced <a href="http://code.google.com/p/reallysimplehistory/issues/detail?id=33" rel="nofollow noreferrer">this issue</a> and just didn't want to dig through it:</p> <blockquote> <p>Also, even though no changes appear to take place on the page while I travel backward through the history, the back functionality will return once I hit the pages that I had been navigating before the one using RSH. So, if I clicked on four links in the RSH page, back functionality will return after I have clicked on the back button four times. I hope that makes sense.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload