Note that there are some explanatory texts on larger screens.

plurals
  1. POSammy.js routes not firing from Knockout-bound links in IE10
    text
    copied!<p>I have a single page application that uses Knockout.js for data binding and Sammy.js for routing client-side (hash-based) URLs. </p> <p>I'm seeing a weird problem in Internet Explorer, however: sometimes links, when clicked, will change the URL in the browser's address bar, but the corresponding Sammy route will not execute. </p> <p>It doesn't happen every time (but I can consistently reproduce the error), and it only happens in IE10 (Chrome works fine every time). It appears to be related to Knockout as well, since a set of hard-coded links don't exhibit the same problem.</p> <p>To illustrate, I've stripped away everything but the bare minimum to recreate the problem and created two jsbin examples:</p> <p><strong>Example 1 (with Knockout):</strong> <a href="http://jsbin.com/aretis/2/" rel="noreferrer">http://jsbin.com/aretis/2/</a></p> <p>To see the problem, open the link above and click "Record #1", then "Baz", then "Record #1" again. The URL for record 1 will appear in the address bar, but the route for that record will not be appended to the list.</p> <p><strong>Example 2 (without Knockout):</strong> <a href="http://jsbin.com/amivoq/1/" rel="noreferrer">http://jsbin.com/amivoq/1/</a></p> <p>In this example, I have a static list of record links instead of a data-bound list. Clicking on any of the links (in any order) will result in that route being appended to the list (as it should).</p> <p>A reminder that these must be run in IE to reproduce the problem. </p> <p>Any ideas?</p>
 

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