WordPress.org

Ready to get started?Download WordPress

Forums

Advanced AJAX Page Loader
[resolved] Doesn't work in Internet Explorer (7 posts)

  1. euphoriuhh
    Member
    Posted 2 years ago #

    Encountered issue in Internet Explorer:

    Object doesn't support property or method 'pushState'
    ajax-page-loader.js, line 78 character 4

    Known issue? Workaround?

    There must be a way to conditionally load the ajax-loader only if in a browser that supports the functionality?

    http://wordpress.org/extend/plugins/advanced-ajax-page-loader/

  2. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    Which version of Internet Explorer are you referring to? Works fine in the IE browsers I have tested (Ie7, IE8, IE9).

  3. euphoriuhh
    Member
    Posted 2 years ago #

    Hey Dean - Sorry to be a pain again.

    Hmm. Just tried it on IE9 on Windows7.

    Surprised to hear you say it works, especially on the older versions. Everything I have seen says that IE does not yet support history.pushState() ( http://stackoverflow.com/questions/3722815/does-internet-explorer-support-pushstate-and-replacestate )

    I wonder if I am missing some kind of workaround? My site is http://whatthefestival.com/_wp

    Thanks much.

  4. euphoriuhh
    Member
    Posted 2 years ago #

    Do you know of any other sites utilizing your plugin? Just curious to take a look. I'm wondering if my issues are unique to my situation.

    Even still, seems like some integration with Modernizr or even maybe History.js plugin could resolve any compatibility issues.

  5. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    Right, I see sorry I didn't realise you were on about the history feature (skimmed your post), I apologies.

    I was aware pushState wouldn't work in older versions of IE but thought it worked in the latest ones :s. But thats for the information I will work on the code and provide the "fallback method" you are talking about!

    Thanks for this :)

  6. euphoriuhh
    Member
    Posted 2 years ago #

    quick update. There are definitely more elegant solutions and there must be ways to recreate the same functionality in IE using History.js.. but for now, wrapping the history.pushState call in a conditional check like

    if (typeof history.pushState !== "undefined") {
    }

    alleviates the js error and gets the site working in IE. It doesn't update the URL but I'm really not too concerned with perfect functionality for IE people.

  7. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    I have now implemented your recommended fix, but as you suggest, I need to implement a better approach ASAP

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic