internet-explorer-9

How to read binary data in IE9?

吃可爱长大的小学妹 提交于 2019-12-02 17:36:23
I'm working on some Javascript code that creates an alpha mask of a image using paths embedded by Photoshop. The onload handler of a IMG tag would call a clip(this). The function load the image's source file and scans through it. Here's the setup: function clip(img) { var xhr = new XMLHttpRequest(); xhr.open('GET', img.src, true); xhr.responseType = 'arraybuffer'; xhr.target = img; xhr.onload = function(e) { var bytes = new Uint8Array(this.response); var p = findPhotoshopSegment(bytes); if(p) { var paths = parse8BIMData(bytes, p); /* ... replaces IMG with SVG tag ... */ } }; xhr.send(); } You

Is there a way to detect if the browser has subpixel precision?

二次信任 提交于 2019-12-02 17:25:15
Is there a way to detect if the browser has subpixel precision for elements ? IE9, unlike any of the other major browsers, has subpixel precision for its elements (an elements width can be 50.25px) and because of that, I need to treat a thing differently. One way is to use jQuery to detect the browser name and version, but this is deprecated in jQuery and not recommended, instead being suggested that the existence of features should be tested for not the browsers names and versions. I'm not sure where you got the idea that IE9 is the only browser that supports fractional pixel units, but that

The event after loading image on IE9

早过忘川 提交于 2019-12-02 16:56:25
问题 I am writing an internet site, using javascript, HTML for IE9 . I found solution to loading dynamically the image by: document.getElementById("id_image").filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = document.getElementById("id_filepic").value id_image related to the <IMG> and id_filepic related to <input id="id_filepic" type="file"> After the line: document.getElementById("id_image").filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = document.getElementById

Parsing xml/json response in IE9

浪子不回头ぞ 提交于 2019-12-02 13:38:30
问题 I thought this issue was resolved but unfortunately it's not, although it seems to be a different problem this time. I want to use imgur API photo sharing service via cross domain XHR, and apparently, it works fine. I start a request, they send an xml and all I need to do is processing that. However, I can't do it properly in Internet Explorer 9 despite multiple suggestions (works in Chrome, Firefox). This is the most simple code I tried: HTML: <!DOCTYPE html> <html> <body> <form id=

Modal dialog missing image on form submit, IE9+

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 13:30:14
This issue is driving me mad. So I've got a modal dialog. <div class="modal"> <img src="...."/> </div> Instanciated thus: $(".modal").dialog({ resizable: false, draggable: false, modal: true, autoOpen: false, width: 530, height: 460, closeOnEscape: false, dialogClass: 'popup noTitle' }); Then I have a form: <form> <input type="submit"/> </form> and Js to open the modal: $('form input').click(function() { $(".modal").dialog('open'); }); In most browsers this works great: In IE 9 and IE 10. The modal is opened but the image is missing : I believe it is something to do with the form submit,

Why does IE not add <option> to my dropDown?

让人想犯罪 __ 提交于 2019-12-02 13:25:39
I'm running this sample script with IE: var $select = $('#select'); var $button = $('#button'); $button.click(function() { var $option = $('<option />'); $option.text('hello'); $option.appendTo($select); }); var $tabs = $('#tabs'); $tabs.tabs(); It's pretty straight forward: when clicking on the button, an option should be added to my dropdown. This works great - the basic fct in IE either. My problem: just "open" the dropDown, and "close" it again. Now switch to tab "button" and hit the button. Now switch to tab "select" - a new option should be available. This works great on every browser

Preventing onbeforeunload dialogs in IE9

北城以北 提交于 2019-12-02 11:29:16
问题 I'm having an issue in IE9 with onbeforeunload -- when the code below is run it repeatedly brings up a dialog asking if you want to stay or leave the page. I modified my code to prevent default functioning based on this thread to no avail. Any help on this would be much appreciated. Code Sample: window.onbeforeunload = function(e) { e.preventDefault(); e.returnValue = false; saveFormData(); return null; } function saveFormData() { $.post("<?php echo site_url('resume/cleanup'); ?>", { resume

The event after loading image on IE9

会有一股神秘感。 提交于 2019-12-02 10:35:50
I am writing an internet site, using javascript, HTML for IE9 . I found solution to loading dynamically the image by: document.getElementById("id_image").filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = document.getElementById("id_filepic").value id_image related to the <IMG> and id_filepic related to <input id="id_filepic" type="file"> After the line: document.getElementById("id_image").filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = document.getElementById("id_filepic").value what is the exact event that occurs just after the image is shown on the html page

“Submit is not a function” error in Firefox in dynamically CREATED form without other submit inputs

…衆ロ難τιáo~ 提交于 2019-12-02 10:20:27
问题 In Firefox 5's error console (but not in IE 9) I get the error "myForm.submit is not a function" when I call the following javascript function (in an external script file): function go(url_go, arr_POST_vars, str_method) { var str_method = str_method || "POST"; // by default uses POST var myForm = document.createElement("form_redir"); myForm.setAttribute("method", str_method); myForm.setAttribute("action", url_go); for (var key in arr_POST_vars) { var myInput = document.createElement("input");

In IE9, Imported nodes do not seem to be recognized as SVG Elements

。_饼干妹妹 提交于 2019-12-02 10:06:44
问题 I am adding couple of elements into the existing SVG document using the importNode() method; everything seems to be fine; could get the newly added elements using getElementsByTagName [getElementById() is not working] but the problem is that the imported elements are not getting recognized as SVGGElements instead they are mentioned just as [object Element]s. any idea guys? 回答1: The elements inside an xml file need to define what namespace they're in, otherwise they'll get parsed as unknown