In this post i’ll list any fixes which may help you if your using Gumby2 framework with Backbone. I’ll add more as I find them…

Override a button click in IE8

if (Gumby.isOldie) {
    var referLink = document.createElement('a');
    referLink.className = "skiplink";
    referLink.href = "#entry";
    window.location.href = "#entry";

Hard page refresh for IE8

//hard refresh for IE8
if (Gumby.isOldie && document.referrer == "")
    window.location = '/#register';

In your backbone router:

Backbone.history.start({ pushState: Modernizr.history, silent: true });
if(!Modernizr.history) {
    var rootLength = Backbone.history.options.root.length;
    var fragment = window.location.pathname.substr(rootLength);
    Backbone.history.navigate(fragment, { trigger: true });
} else {
Sam Deering is a Front-end Web Developer who specialises in JavaScript & jQuery. Sam is driven and passionate about sharing his knowledge to educate others.

Free Guide:

How to Choose the Right Charting Library for Your Application

How do you make sure that the charting library you choose has everything you need? Sign up to receive this detailed guide from FusionCharts, which explores all the factors you need to consider before making the decision.

No Reader comments

Learn JavaScript for free!
Free course: Introduction to JavaScript

Yours when you take up a free 14-day SitePoint Premium trial.