I am using routing in Angularjs for my SPA but I have to support IE7 (and IE8 in IE7 compatibility mode). I want the browser history to still work though. I don't care if I have to use a jQuery plugin.
Angularjs history support for IE6 and IE7
3.1k views Asked by Scotty.NET At
1
There are 1 answers
Related Questions in ANGULARJS
- How to automatically change path in angular when scrolling
- Error two clicks to be able to login Angular 16
- Passing an array of objects through the $http.post method in angular JS does not work
- Understanding how to apply Angular Signals from beginning on an existing service
- provider duplicate while compiling a Cordova application for the Android platform
- How can I use angularjs $parse service in Angular?
- Width of custom headers in ag-grid (angular) doesn't match with column's width
- Issues with Katex/ngx-markdown Rendering in Angular 16
- How to make Angular SSR wait for async operations to finish that are initiated in ngOnInit?
- I want to install @angular/google-maps npm Package in angular 16.2.12 but "npm install @angular/google-maps" this is not working/ tell me other query
- Angular 17 standalone application integrate CKEditor 5 -- Error: window is not defined
- Why is $scope >= 0 showing true in interpolation while empty in controller?
- The XMLHttpRequest compatibility library was not found
- Making Gantt Chart Column Labels More Readable
- Pass key-value pairs of object as individual arguments to component in Angular
Related Questions in INTERNET-EXPLORER-7
- Comments before head tag breaks javascript code
- XML data source object (dso) has type HTMLUnknownElement and data binding does not happen and recordset is undefined
- In IE with compatibility mode JQuery .val() not working
- How can I align inline div elements vertically in IE7?
- Bootstrap 5 tab nav not working in firefox and internet explorer
- RUNDLL32.EXE MSHTML.DLL,PrintHTML with Javascript
- JQuery Autocomplete's compatibility with IE7
- Reliably Detect IE7 in IE6 document mode
- Getting polyfill "vminpoly" working with internal CSS
- Overcome/ignore compatibility view IE11 for particular page/site
- How to create circle with timer on UI which support all IE browsers
- Freeze top row and scrolling contents only
- What can i use instead of css box-sizing?
- How can i force browser(ie7) to load file from request?
- How to force main page run IE11 and iFrame run IE7
Related Questions in BROWSER-HISTORY
- Creating custom history back and forwards buttons using a React hook
- Browser Back Button Redirect Bug
- TypeError: Cannot read properties of undefined (reading 'push') in React
- Angular back button from external app with skipLocationChange
- History API in Safary | issue accessing a link with anchor
- React useNavigate() not triggering window.addEventListener('locationchange' / history
- what is __PRIVATE_NEXTJS_INTERNALS_TREE for?
- How to enable use of the forward button in my vanilla typescript single page app (code examples included)
- Unable to Intercept Browser Back Button Press in Next.js Success Page
- url is incorrect in `load` after pushState and navigation
- Unblock react history push on particular condition
- Preventing creation of history entry when changing language in Next.js
- Test history.block function callback with Jest
- How can I check the url before calling history.back()?
- Why am I not able to delete my browser history anymore on my Mozilla firefox pc
Related Questions in HASHCHANGE
- Safari private browsing behavior different with redirect with hashtag to another domain
- When URL changes on scroll to a certain hash, add a class to a div
- Prevent jumping to hash on initial load of URL consisting a hash
- Detect Vue SPA url changes (listen to route updates)
- Why doesn't my class names update when set though JS?
- Component updated state not being reflected in hashchange handler
- How do I offset the anchor scroll that overlaps elements?
- Popstate event not firing on back button
- Expand details element when URL is called with specific hashes
- Current URL hashchange event append new hash to target URL and link out to it
- javascript variable shows in console.log but not in browser output
- Why is output being duplicated inside hashchange event listener?
- How to know when a url hash has been manuallly (writing) changed?
- Jquery hash set function
- window hashchange event on internet explorer is not triggered
Related Questions in JQUERY-BBQ
- Isotope with BBQ
- jQuery BBQ generates error with jQuery 2
- Hash location basics
- Issue with assigning checkbox int array values to variable
- Yii jQuery BBQ error after delete
- Trying to connect to the Foursquare API and failing because "Callback uri is not valid for this consumer"
- jQuery hash-based nav with jquery-bbq makes page jump around
- Appending Hash to URL on .load() Page Update
- Additionally filter buttons won´t update the URL hash (see my JSFIDDLE)
- Isotope shiftColumnOfItem combined with hashHistory - how to?
- Jquery code doesn't work well on firefox/ie
- How to display this next and prev title in url with bbq and jquery
- Hashchange addClass not working
- Tracking onhashchange events
- Angularjs history support for IE6 and IE7
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I checked through the angular source sniffer.js, location.js and browser.js to check the mechanics of how history is working. In essence if the browser supports history (i.e.
$sniffer.historyis true) then history api is used, else it simply writes tolocation.href(orlocaiton.replace(url)). Check out$browser.url(url, replace)in browser.js, line 149 for details.So, if angular is just writing to
locationthen a jquery plugin like Ben Alman's BBQ will pick up this event because it is polling for changes to location.hash. I have successfully got this working in IE8 (in IE7 mode) by simply including Ben's hashchange plugin (a subset of BBQ) and then a minimal event fire and event listening:NOTE: jQuery hashchange (and BBQ) is using deprecated
$.browser.msieat line 300 so instead use(document.documentMode != undefined)as suggested in the comments to Ben's blog post.