How can I automate Save as dialog box in IE11 using VBA?

Consider the example: Option Explicit Sub Test() Dim strExportURL As String Dim strFormData As Variant Dim strContent As String Dim arrRespBody() As Byte ‘ build exportURL parameter strExportURL = Join(Array( _ “permitIdentifier=”, _ “accountID=”, _ “form=accountAll”, _ “installationIdentifier=”, _ “complianceStatus=”, _ “account.registryCodes=CY”, _ “primaryAuthRep=”, _ “searchType=account”, _ “identifierInReg=”, _ “mainActivityType=”, _ “buttonAction=”, _ “account.registryCode=”, _ … Read more

How to get IE9 standards support for dialogs opened by HTA?

A quick Google of the keywords in this question gave me this page on Microsoft MSDN site: http://msdn.microsoft.com/en-us/subscriptions/ms536496(v=vs.85).aspx The answer to your question is on tha page. The answer is to add an x-ua-compatible meta tag to your HTML’s <head> section. To quote: By default, HTAs display webpages in Compatibility View, which displays standards-mode content … Read more

Chrome and IE sorts JSON Object automatically, how to disable this?

Same Problem here. My JSON-object looks like this: { “15” : { “name” : “abc”, “desc” : “Lorem Ipsum” }, “4” : { “name” : “def”, “desc” : “Foo Bar Baz” }, “24” : { “name” : “ghi”, “desc” : “May be” }, “8” : { “name” : “jkl”, “desc” : “valid” } } The … Read more

How to trigger script.onerror in Internet Explorer?

I found this buried in some MSDN documentation: Note that the documentation mistakenly says this works for elements too; the error will be fixed in the Workshop documentation for the final release of Internet Explorer 5 in March. The next thing I thought of that could help is the onreadystatechange event: <script src=”http://www.google.com/NOTFOUND.js” onreadystatechange=”alert(this.readyState)”> This … Read more

IE’s document.selection.createRange doesn’t include leading or trailing blank lines

I’m adding another answer since my previous one is already getting somewhat epic. This is what I consider the best version yet: it takes bobince’s approach (mentioned in the comments to my first answer) and fixes the two things I didn’t like about it, which were first that it relies on TextRanges that stray outside … Read more

Is there really no way to expose the prototype of a html element in IE (

No, nor is it guaranteed you can fiddle with DOM objects’ prototypes in JavaScript in general. The DOM objects are not part of the ECMAScript spec; they may not be (and traditionally speaking aren’t) native JavaScript Objects at all, in any browser. This is why frameworks tend to have their own ‘container’ wrapper classes. Also … Read more

JavaScript: split doesn’t work in IE?

you could add the code below to you program and it will work. var split; // Avoid running twice; that would break the `nativeSplit` reference split = split || function (undef) { var nativeSplit = String.prototype.split, compliantExecNpcg = /()??/.exec(“”)[1] === undef, // NPCG: nonparticipating capturing group self; self = function (str, separator, limit) { // … Read more

What is after Internet Explorer 11 on Windows 7? How well will ES2016 be supported in enterprises?

With JavaScript now being updated each year (ES2015, ES2016, ES2017, etc.), how does Microsoft plan to keep IE 11 up to date? They’re not going to. As of 2015, Internet Explorer 11 will no longer be receiving any new features or platform bug fixes. Only security updates will be provided to IE11 from here on … Read more