ie.busy not working well [VBA]

In our code, ie.Busy (InternetExplorer.Application Object) is not very credible. Here is what we use and works: Enum READYSTATE READYSTATE_UNINITIALIZED = 0 READYSTATE_LOADING = 1 READYSTATE_LOADED = 2 READYSTATE_INTERACTIVE = 3 READYSTATE_COMPLETE = 4 End Enum Dim strUrl Dim ie As Object Set ie = CreateObject(“InternetExplorer.Application”) ‘…. ‘ do navigation… ‘ strUrl = “” ie.Navigate … Read more

reusing Internet Explorer COM Automation Object

Try This: Set IEObject = GetObject( ,”InternetExplorer.Application” ) *Notice the comma before “InternetExplorer.Application” EDIT: Try this: Dim IE As SHDocVw.InternetExplorer Set IE = GetObject(,”InternetExplorer.Application”) You can also try this: Dim ShellApp Set ShellApp = CreateObject(“Shell.Application”) Dim ShellWindows Set ShellWindows = ShellApp.Windows() Dim i For i = 0 To ShellWindows.Count – 1 If InStr(ShellWindows.Item(i).FullName, “iexplore.exe”) <> … Read more

MAILTO max-length of each internet browsers?

Safari and most email clients have no hard limit (depends on available CPU and RAM) 2015 Web Browser Testing: Safari 705000000 2 minutes Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56 limited by 16GB RAM Firefox 268435455 20 seconds Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:41.0) Gecko/20100101 Firefox/41.0 limited … Read more

IE cannot download foo.jsf. IE was not able to open this internet site. The requested site is either unavailable or cannot be found

This is a typical MSIE error message when a download is been provided over HTTPS (SSL) while the response headers are been set to disable the browser cache via no-cache. This issue is not related to JSF. You need to relax the response headers which have influence on the browser cache. It should not contain … Read more

mailto fails in IE where there is a long body text. Is there any way to resolve this?

I never could get the location.href = mailtoHref hack to work. However, I have found that following works. $(‘body’).append($(‘<iframe id=”mailtoHack” src=”‘ + mailtoHref + ‘”/>’); $(‘#mailtoHack’).remove(); EDIT Here is a way to do it without jQuery: function mailtoHack(href) { var iframeHack; if (href.indexOf(“mailto:”) === 0) { iframeHack = document.createElement(“IFRAME”); iframeHack.src = href; document.body.appendChild(iframeHack); document.body.removeChild(iframeHack); } … Read more