internet-explorer

How can I get width and height of SVG on Image.load in IE 11

五迷三道 提交于 2020-04-08 21:07:22
问题 It works fine everywhere but not in IE 11 (I have not tested other IE versions yet). var img = new Image(); img.onload = function(){ alert( 'img: ' + img.width + 'x' + img.height + ' natural: ' + img.naturalWidth + 'x' + img.naturalHeight ); }; img.src = 'http://upload.wikimedia.org/wikipedia/en/b/b5/Boeing-Logo.svg'; JSFiddle: JSFiddle Result: img: 121x30 natural: 121x30 - Real browsers (Chrome, Safari, Firefox, ...) img: 0x0 natural: 0x0 - IE 11 There is a similar question here: Getting

jQuery load() throws “permission denied” error in IE

江枫思渺然 提交于 2020-04-07 06:34:18
问题 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 different domain than mine). It seems to me that IE tries to grab this js file through a xhr, which then throws the "permission denied" error. Is there a workaround for

Submitting data via IE to an online MS Form is not working

一个人想着一个人 提交于 2020-04-05 06:50:31
问题 Can anyone figure out what I am doing wrong? When I try to submit data to an online MS Form the submission fails upon clicking the submit button because the data in the input text box disappears. The code I am using: Sub Hello() Dim objIE As Object Dim URL As String Dim doc As HTMLDocument Dim oServ As Object Dim cProc As Variant Dim oProc As Object URL = "https://forms.office.com/Pages/ResponsePage.aspx?id=1tUOxOPgeU2DDHmR8zp8jnPOq1Zxq2ZMgF9BFdtxEI9UNTJUSlpaNVU3S0pYRDI0MzE3UkZZQzdZNi4u" Set

IE support for DOM importNode

只谈情不闲聊 提交于 2020-03-30 05:52:44
问题 I've been looking arround the web, and I'm fairly sure I already know the answer ("no"), but I'd like to check: Does IE support importNode() yet? Is there a better alternative than walking the DOM and creating nodes? (I've seen the clasic article by Anthony Holdener but its more than a year old now, and I'm hoping that either IE has evolved, or someone has another workarround) Thanks. 回答1: I haven't heard this has changed yet, and in a recent post by John Resig, he states: Internet Explorer

IE support for DOM importNode

此生再无相见时 提交于 2020-03-30 05:52:06
问题 I've been looking arround the web, and I'm fairly sure I already know the answer ("no"), but I'd like to check: Does IE support importNode() yet? Is there a better alternative than walking the DOM and creating nodes? (I've seen the clasic article by Anthony Holdener but its more than a year old now, and I'm hoping that either IE has evolved, or someone has another workarround) Thanks. 回答1: I haven't heard this has changed yet, and in a recent post by John Resig, he states: Internet Explorer

How to pass blob to the viewer.js in PDF.js and how to display pdf in separate window

你离开我真会死。 提交于 2020-03-28 06:41:39
问题 I have loaded the pdf in canvas but unable to pass it to viewer.js in PDF.js. Examples only show how to pass to canvas not to viewer.js and i want to load the pdf in different window 回答1: PDF.js comes with a viewer. You can embed an iframe/frame in your page, or open a new window. The url will be the same for both: pdfjs/web/viewer.html?file=URL_TO_YOU_PDF You can also pass binary data: // atob() is used to convert base64 encoded PDF to binary-like data. // (See also https://developer.mozilla

How to pass blob to the viewer.js in PDF.js and how to display pdf in separate window

痞子三分冷 提交于 2020-03-28 06:41:22
问题 I have loaded the pdf in canvas but unable to pass it to viewer.js in PDF.js. Examples only show how to pass to canvas not to viewer.js and i want to load the pdf in different window 回答1: PDF.js comes with a viewer. You can embed an iframe/frame in your page, or open a new window. The url will be the same for both: pdfjs/web/viewer.html?file=URL_TO_YOU_PDF You can also pass binary data: // atob() is used to convert base64 encoded PDF to binary-like data. // (See also https://developer.mozilla

Selenium iterate over the open windows in the OS and find the right IE process to attach t (c#)

不羁的心 提交于 2020-03-26 02:32:02
问题 I am trying to reconnect a webdriver to an existing intance of Internet Explorer. After reading I was informed that With internet-explorer, it's possible to iterate over the open windows in the OS and find the right IE process to attach to (1). But I can't get such feature to work. I believe this is a Watin feature only from reading (2). Is such feature possible with selenium? (1) How can I reconnect to the browser opened by webdriver with selenium? (2)https://github.com/seleniumhq/selenium

IE won't start session from an iframe?

时光毁灭记忆、已成空白 提交于 2020-03-22 08:14:06
问题 The task was to bypass login form on remote server with a session_id acquired through a call to server's web API. So that user wouldn't have to login twice. Since there's no way to set cookies for different domain. What we came up to was - put a little file on remote server, to which we pass encrypted session_id from hidden iframe and which is supposed to start a proper session for a remote app, which is then loaded in another iframe. This approach works fine in FF/Chrome, but not IE...

How to use relatedTarget (or equivalent) in IE?

…衆ロ難τιáo~ 提交于 2020-03-21 12:01:08
问题 Apparently IE (11) has an issue with relatedTarget , for example on blur events. Is there an alternative for IE to get the relatedTarget ? Here is an example that produces an error in IE: https://jsfiddle.net/rnyqy78m/ 回答1: If I look at this list: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/relatedTarget blur isn't included as having a standard secondary target. So I assume the secondary target on blur in chrome is non-standard. If you replace blur by focusin or focusout, it