internet-explorer

childNodes[] not working in IE9 as in IE7 and 8

陌路散爱 提交于 2020-01-21 19:45:32
问题 I have some code that works in IE7 and 8 but not in 9 var table = document.getElementById('RadGrid_ctl01').childNodes[2]; which doesn't work in IE9, now I did read that IE9 count white spaces etc and therefore the index won't be the same as in IE7 and IE8 so I debugged and found same values when I changed index from 2 to 4 like so: var table = document.getElementById('RadGrid_ctl01').childNodes[4]; However when I later on try to access the table object with this code var editor = table

childNodes[] not working in IE9 as in IE7 and 8

萝らか妹 提交于 2020-01-21 19:43:07
问题 I have some code that works in IE7 and 8 but not in 9 var table = document.getElementById('RadGrid_ctl01').childNodes[2]; which doesn't work in IE9, now I did read that IE9 count white spaces etc and therefore the index won't be the same as in IE7 and IE8 so I debugged and found same values when I changed index from 2 to 4 like so: var table = document.getElementById('RadGrid_ctl01').childNodes[4]; However when I later on try to access the table object with this code var editor = table

Why getting a text selection from textarea works when a button clicked but not when a “div” clicked (in Internet Explorer)

元气小坏坏 提交于 2020-01-21 19:19:12
问题 Consider the following code: (Live demo here - Open in Internet Explorer 7 or 9) HTML: <textarea>Hello Stack Overflow</textarea> <input class="a" type="button" value="Click here does the job" /> <div class="a">But clicking here not :(</div> JS: function getInputSelection(el) { var start = 0, end = 0, normalizedValue, range, textInputRange, len, endRange; if (typeof el.selectionStart == "number" && typeof el.selectionEnd == "number") { start = el.selectionStart; end = el.selectionEnd; } else {

z-index problem in IE

青春壹個敷衍的年華 提交于 2020-01-21 13:48:25
问题 I have a map with points on it which the user hovers over to reveal further information. The problem I have is hard to explain because it only seems to be a problem when the user views the page in IE and when it is hosted on my server. Exactly the same code on the jsfiddle page below works fine. http://jsfiddle.net/FbYEW/ What happens when hosted on my server is the z-indexes on the popups do not work and the popups appear underneath the other spots. Can anyone think why this might be... it's

IE11 - Variable is out of range even though I used `let` for the loop

你。 提交于 2020-01-21 12:07:12
问题 The console stops on this line with the error: Unable to get property 'srcset' of undefined or null reference var srcObj = rollOverCollectionA[i].srcset.splice(171, 0, '-hover'); This above line is part of this section. document.addEventListener("DOMContentLoaded", function (event) { var rollOverCollectionA = document.getElementById("roll-over-collection-b").getElementsByClassName("rollover"); rollOverCollectionA = Array.prototype.slice.apply(rollOverCollectionA); console.log(

Filling Internet Explorer inputbox

坚强是说给别人听的谎言 提交于 2020-01-21 11:34:08
问题 I read so many answers to my problem but somehow if I try to "mimic" what I see, I still am not able to do what I need. The problem is very simple: fill an inputbox on an opened IE page. Result: the code gets stuck on the line with getelementbyid showing runtime error 424 (object required). Private Sub AddInfoFromIntranet() Dim ie As Object Set ie = CreateObject("internetexplorer.application") Application.SendKeys "{ESC}" ' I need this to ignore a prompt With ie .Visible = True .navigate "

Filling Internet Explorer inputbox

回眸只為那壹抹淺笑 提交于 2020-01-21 11:33:35
问题 I read so many answers to my problem but somehow if I try to "mimic" what I see, I still am not able to do what I need. The problem is very simple: fill an inputbox on an opened IE page. Result: the code gets stuck on the line with getelementbyid showing runtime error 424 (object required). Private Sub AddInfoFromIntranet() Dim ie As Object Set ie = CreateObject("internetexplorer.application") Application.SendKeys "{ESC}" ' I need this to ignore a prompt With ie .Visible = True .navigate "

Filling Internet Explorer inputbox

早过忘川 提交于 2020-01-21 11:33:07
问题 I read so many answers to my problem but somehow if I try to "mimic" what I see, I still am not able to do what I need. The problem is very simple: fill an inputbox on an opened IE page. Result: the code gets stuck on the line with getelementbyid showing runtime error 424 (object required). Private Sub AddInfoFromIntranet() Dim ie As Object Set ie = CreateObject("internetexplorer.application") Application.SendKeys "{ESC}" ' I need this to ignore a prompt With ie .Visible = True .navigate "

Filling Internet Explorer inputbox

南楼画角 提交于 2020-01-21 11:33:06
问题 I read so many answers to my problem but somehow if I try to "mimic" what I see, I still am not able to do what I need. The problem is very simple: fill an inputbox on an opened IE page. Result: the code gets stuck on the line with getelementbyid showing runtime error 424 (object required). Private Sub AddInfoFromIntranet() Dim ie As Object Set ie = CreateObject("internetexplorer.application") Application.SendKeys "{ESC}" ' I need this to ignore a prompt With ie .Visible = True .navigate "

ActiveX Content in a local web page, and “the mark of the web”

为君一笑 提交于 2020-01-21 06:43:04
问题 I'm trying to make a webpage that people will run from their hard drives, locally, and this page will show a .wmv video (which is also stored locally), using Windows Media Player When I run this, IE shows me the "ActiveX Warning" bar at the top, which is what i'm trying to work around. If I load this from a web server, it loads fine, but from the local disk, it won't. Now, apparently, MS has added the Mark of the Web thingy precisely to work around this problem, however, I've been trying for