How to work around IE11 localStorage events firing twice or not at all in iframes?

If you ever want to throttle an event from being called multiple times, regardless the cause for invocation, use a flag to block subsequent events. There are several strategies: .1. time-based throttling. suppose you have a function “func”, and you’d like it to be called only once within 200ms: function func(){ if (document.func_lock) return; document.func_lock=true; … Read more

Access denied in IE 10 and 11 when ajax target is localhost

Internet Explorer raises this error as part of its security zones feature. Using default security settings, an “Access is Denied” error is raised when attempting to access a resource in the “Local intranet” zone from an origin in the “Internet” zone. If you were writing your Ajax code manually, Internet Explorer would raise an error … Read more

Flex auto margin not working in IE10/11

This appears to be an IE bug. According to the flexbox specification: 8.1. Aligning with auto margins Prior to alignment via justify-content and align-self, any positive free space is distributed to auto margins in that dimension. Note: If free space is distributed to auto margins, the alignment properties will have no effect in that dimension … Read more

How can I polyfill Promise with webpack?

For people using babel in combination with webpack: you can use babel-polyfill Just do npm install –save “babel-polyfill” and then add it as an entry point in your webpack.config.js: module.exports = { entry: [‘babel-polyfill’, ‘./app/js’] }; Or, instead of using the entire babel-polyfill you can install core-js and reference only the module you need. module.exports … Read more

Placeholder CSS not being applied in IE 11

In general, when styling placeholders When encountering an unsupported vendor prefix, CSS parsing engines will consider the entire rule invalid, which is why a separate ruleset for each vendor prefix is required. Additionally, I found that IE11 requires the !important flag to override the default user agent styles: /* – Chrome ≤56, – Safari 5-10.0 … Read more

Is there a Microsoft equivalent for HTML5 Server-Sent Events?

In a word, no. Microsoft has not included SSE or an equivalent of SSE in any version of IE. IMO, you have two good options: Use a polyfill – My tests with this polyfill in IE10 and IE11 were all successful. Since it starts with if (“EventSource” in global) return;, it’ll only run in browsers … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)