Showing posts with label Internet Explorer. Show all posts
Showing posts with label Internet Explorer. Show all posts

Sunday, July 25, 2010

Internet Explorer giving a run-time error when executing object.innerHTML

By any chance did you get an “unknown run-time error” while using the following javascript method object.innerHTML=”yourhtml” in Internet Explorer? well I just did and obviously the very helpful (sarcastic) message by Microsoft didn't help at all.

Fortunately the solution is quite simple, for example in this case:

 document.getElementById('cartAddSpecContent').innerHTML = spec;  

All you have to do is to replace the 'cart'AddSpecContent' element (that used to be a

 <p>  

) for a block-level one like

 <div>  

and that's it ;)

Wednesday, November 18, 2009

How to get rid of Internet Explorer

I am not a big fan of Microsoft products and using Internet Explorer is one of the most painful experiences I have to go through while testing a UI for a web development or just while browsing the intranet at work, but today I took a look at a Firefox addon that allows you to open an IE tab inside Firefox called (not surprisingly) IE Tab.

The best part of it is that I can add trusted sites just as in IE, something that is not available in the current version of FF, and this avoids having to enter my credentials every time I go to a different page in the intranet! The addon is not perfect, IE 8 sites don’t look exactly the same but still it helps a lot while testing previous versions.

That’s it for now ;)