Showing posts with label internet explorer. Show all posts
Showing posts with label internet explorer. Show all posts

Internet Explorer 10: Mailto bug opening lots of windows

Internet Explorer 9 was a great move in the right direction. I was pretty excited to install IE10, but the disappointed that followed was almost as bad as Diablo 3.

What's the problem?

Could not perform this operation because the default mail client is not properly installed

Wait, what? I've been using Thunderbird for years. Default settings checked out fine mate.

But the real linsanity occurs after clicking "OK" to clear that popup.

Even when using another program such as Firefox or email client, clicking on a "mailto" link will cause Internet Explorer 10 to open up hundreds of windows for absolutely no reason.

How the fuck this got past quality control is beyond me!

I figured out it was IE10's fault when the same thing happened after I tried typing "mailto:" directly into the address bar... for science.

How do I fix it?

A) Recreate the mailto (update 15/05/2014)

  • Start
  • Type "cmd"
  • Right click "cmd.exe" and click "Run as administrator"
  • Paste in the following
reg ADD "HKLM\Software\Classes\mailto" /f /v "URL Protocol" /t REG_SZ /d ""

(Thanks to Anonymous below for submitting this)

B) Upgrade to IE11 (update 15/05/2014)

IE11 is just better. Get it.

C) Get rid of it.

  • Start
  • Type in "Windows Update" and click it
  • At the bottom, clicked "Installed updates"

image

  • Sort by "Installed on" and find "Windows Internet Explorer 10"
  • Uninstall
  • Confirm and restart when done

image

  • Don't feel bad about it. The poor thing had to be put out of it's misery... WITH A POWERBOMB
put-em-through-a-table-o

Source

CSS (IE8/IE9/IE10): Meta tag to disable compatibility view

I had some trouble with CSS on Internet Explorer 8 the other day and wondered why the hell it wasn't working.
After hours of frustration, I disabled compatibility mode by clicking on "Tools" > "Compatibility View" and it just worked.

image
But I had to disable this for the whole site, without having to teach each user about it. Luckily, there is a meta tag for it!

Add the following tag into the head section of your page and IE will use the specified rendering mode.

<meta http-equiv="X-UA-Compatible" content="IE=8" />
Unsure which version of Internet Explorer supports this, but I know IE8 and IE9 honours this setting.

*update 12/8/2011*

OK, this caused a bit of confusion to me but I figured out why rounded corners (CSS border-radius) wasn't working on IE9.

I shot myself in the foot because I've set the "IE=8" compatibility mode, IE9 will not render rounded borders because IE8 doesn't actually support it.

After reading a post on StackOverflow, I looked up the docs for document compatibility and found a fix. Set the order of compatibility in this format:

<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />

Now it'll try IE9 mode first, IE8, then IE7. You can even set IE=EDGE so it'll use the highest mode possible.

*update 21/8/2013*

haha a little over 2 years since the last update, I ran into another issue with this.

IE9 dev tools was spitting out this error:

X-UA-Compatible META tag ignored because document mode is already finalized.

The hell does that mean?

Well apparently it only works if we have it as the VERY FIRST tag in the <head> element, with the exception of <title>. Moving your compatibility meta tag up will fix it.

[ Source ]

[ Fix: IE9 fieldset rounded corners, Defining Document Compatibility, HTML1115: X-UA-Compatible META tag ('IE=9, IE=8, chrome=1') ignored because document mode is already finalized ]

CSS: Internet Explorer, position relative/absolute and z-index don't act right

Another day, another IE6/IE7 CSS quirk. Good thing it doesn't affect IE8 and luckily this ones a bit easier to fix than most.

image

It doesn't make sense. The light blue div on the bottom left has the "position: relative;" style set, while the menu has "position: absolute" with a higher z-layer index.

For some reason, IE decides to just ignore the z-layer and put the div on top anyway. Annoying little critter...

To fix this:

  • Give the troublesome div a small z-index (0 or so)
  • Give the menu a higher z-index, say 10 (anything higher than 1 will do)
  • Give the menu's parent a z-index of anything thats higher than the menu.

[ Source ]

Internet Explorer 6: No String.trim() support

Its not exactly a well kept secret that web developers loathe IE6, but I never expected to leave out a simple function such as String.trim().

A simple test script such as this would cause an error.

alert("     hello world    ".trim());

image
An unwelcome surprise.

Luckily, theres an easy fix for that! Simply paste this code near the top before any trim() calls are made.

if (!('trim' in String.prototype)) {
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g,""); };
}

image 
Yay its working now!

[ Source ]

JS Error: "Expected identifier, string or number" but only on Internet Explorer

I got some cryptic errors on Internet Explorer when the document was trying to load. Took me a few hours to hunt this bastard down!

image

Hmm ok, so I took a look at line 269 of the HTML and it had nothing. At first I thought it was a JQuery bug. Nope it wasn't.

After taking a look at the error details, I got this:

image
Err, wtf?

Bloody hell! Does it hurt to be a little more descriptive?

After enabling the script debugger (instructions), I found that the errors were caused by defining objects with a trailing comma at the end of the last field.

image
A snippet of the "ajaxupload_3_6.js"

Removing the "," at the end of the "onError" line would fix the issues. Seems that IE has an issue parsing it and decides to stop executing scripts on the page altogether.

Internet Explorer stuck on "Loading Search Settings..."

Occasionally, I accidently press CTRL+E on the keyboard and display the "Search" Explorer Bar. The annoying little toolbar will freeze up my IE and just loop.

Worst thing is that it'll come back every time I load the browser, making it impossible to use anymore.

So, into the registry I go, hunting down the option to remove the toolbar!

Simply remove this registry key and all will be well.

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar\WebBrowser\ITBarLayout

Next time the browser will open, it shouldn't show that search bar anymore.

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog