internet-explorer

IE JS: how to use pasteHTML() when selection.type == 'None'?

I'm trying to allow the user to edit a contenteditable div, but am finding that I can't use pasteHTML unless there is some text selected. I thought document.selection.createRange() would return a valid zero-length selection (i.e. a position), but alas no. I've really struggled to find any solution to this that doesn't involve iframes (...

Overlaying <span> doesn't work in IE6

<li> <span>overlay</span> content </li> li { position: relative; height:65px; overflow: hidden; } li span { background: url(../img/bullet_grey.png) no-repeat; width: 20px; height: 20px; position: absolute; top: 50px; left: 10px; } This works in all browsers except IE6, which just hides the SPAN so...

How to Make Browser Detect Concurrent Loggin into 2 A/C

I am playing a browser based online game and is wondering how it can detect I am trying to login using 2 separate accounts on the same machine. I've tested a few things. First it is not based on detecting same IP since I can login concurrently using firefox/IE and it wont be a good idea to ban users sharing the same IP using a router (...

$.ajax not working properly on IE6

Basically, I have something like this: $.ajax({ type: "GET", url: "my_url", cache: true, success: function(data) { /* code here */ }, dataType: 'json' }); This code is working in all tested browsers (IE7/8, chrome, safari, firefox) but in IE6 the success function is no...

How to call images from CSS when page are loaded using https

This one is driving me nuts. It's (yet) another IE6/7 idiosyncrasy, but one of my web pages needs to be loaded using https. In IE6/7 I get the dreaded "contains secure and nonsecure items" message which is causing users to panic. I've gone through the code top to bottom and isolated the problem (as IE sees it) to background images in my ...

XBAP IE Access Keys

I have a XBAP app where on a page i have Save and Cancel buttons. when i click 's' or 'c' keys on keyboard, XBAP navigating to the previous page. i didn't set any accesskeys or something like that .. Could anyone tell me how to stop this.. Thanks Rey. ...

In Internet Explorer 7, text-align: right is not taking effect

Is there any way to make the header align towards right? Tested in Internet Explorer 7 only. <html> <style type="text/css"> th { text-align: left; } </style> <body> <table width="100%" border="1"> <thead> <tr> <th style="width: 250px;">Tag <th st...

IE plugin (mimetype content extension) accelerators

Hi everyone, I wrote a content extension plug-in for IE (ActiveX component, c++) That control has at least one inputbox. The problem that I have is that some of the keystrokes (tab, backspace etc) are processed also by the main IE window. I would very much like to inhibit IE processing those. One more thing will be to programmaticall...

jQuery load() throws "permission denied" error in IE

Hi, I'm loading a page through AJAX with jQuery's load() function. It doesn't work in IE8, giving the "permission denied" error. Using the IE debugger, it seems that when jQuery tries to open up the xhr, ie blocks it. The problem is, my page has a javascript src that points to bing maps js api (which of course is in a completely diffe...

AJAX Script Only Works in Firefox, But Not IE.

My ajax script only works in Firefox and not ie why?? ======================================== <html> <head> <script language=Javascript> function Inint_AJAX() { try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) {} //IE try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE try { return new XMLHttpR...

why link title not showing in IE but showing in firefox?

see example here http://jsbin.com/elesa code <p> <a target="_blank" href="#" title="Download PDF, 58KB, opens in a new window"> <img width="150" height="50" border="0" src="http://sstatic.net/so/img/logo.png" alt=""/> </a> </p> ...

Link to CSS files across domains without mixed content warning in IE?

My sites run off a subdomain (yyy.xxx.com), but I'm required to include CSS files from the main domain (xxx.com). We run a CMS that doesn't let me do any server-side stuff during the preview stage, so I'm stuck sending a page over https that includes a CSS import to http. All my IE users get a mixed content warning because of this. Is t...

extend IE with .net (VB or C#)

I want to write IE extension in .Net (VB/C#) I already have experience writing firefox addons. All I want to do is, manipulate the DOM before showing it to the user. Like remove some stuff, highlight words, etc... Is it possible to do it using .Net? Or is the only way C++/ATL and those things? I tried searching, but the only useful s...

How to stop browser(espcially Internet Explorer) from doing super caching of javascript?

Hi I don't know what is going on but this is really evident in IE 8. It loads up my page and my javascript files. I then have debug lines in my server side code that should get activated when an ajax request from my jquery comes through. Or some other contact with the server such a refreshing the page. So I have this var timeout; va...

Dynamically built Javascript src attribute error in IE

Controller public ActionResult GetCategories() { var htmlText = new StringBuilder(); var scriptText = new StringBuilder(); htmlText.Append("Hello world"); scriptText.AppendFormat("document.write({0});", htmlText.ToString()); var content = new ContentResult(); content.Content = script...

Carriage return causes a visual space in Internet Exporer 8

A carriage return in my html code causes a visual space in the rendered html in Explorer 8. I'm guessing this will affect other versions too. For example: <span> (111)&nbsp; 222- 3333&nbsp; 444444 </span> looks like this: (111) 222- 3333 444444 There should be only 1 space after the first bracket, no space after the dash and on...

Internet explorer spilling content out of container

I am trying to make a bar that will show up on top of sites that belong to company I work for. I first developed it for firefox and then came in horror when saw it in IE. It's completely broken. The bottom line problem is how to make IE spill it's content when it's height is set? Is there a fix for this, or should I take a different a...

IE and absolute positioning divs

This problem is only in IE. Consider the following HTML: <html> <body> <div style='position:absolute;left:1em;right:1em;top:1em;bottom:1em;overflow:auto;'> Put more than a full screen of text in here. It should create a scroll inside the div. In IE, it stretches the div out vertically. </div> </body> </html> If you put a ton of...

How to Set a Hook on IE url

I Have a app running background. I use it to get the url on IE if the IE is running... It's better if It is a hook not a loop enum the windows. How can do that? ...

prettify highlightning in a PRE with white-space:nowrap is one line in IE

Hi, In Internet Explorer, a PRE with a style of white-space:nowrap is causing the code in the PRE to be in one single line when I use prettify (http://code.google.com/p/google-code-prettify/). Doesn't a <br/> is supposed to cause a new line in a PRE? I checked the HTML source generated by prettify after the page has loaded and it gener...