internet-explorer-9

IE9 and TEXTAREA newlines

蹲街弑〆低调 提交于 2019-12-02 09:32:34
We display a piece of signed XML in a TEXTAREA. The signing takes into account the whitespace, so it is critical that this is maintained. The user then copies and pastes this into an application that validates the XML... we've not had a problem with this until now... IE9 is rending the text slightly differently. When I copy it into a HEX editor, I can see that IE9 is rendering newlines as 0xA... put it into compatibility mode (or use IE6,7,8, Chrome, Firefox etc.) and it gets rendered as 0xD,0xA I guess this won't effect most people, as it looks ok... but for us it is a royal PITA!!! Anyone

JavaScript: how to generate UUID for Internet Explorer 9?

余生长醉 提交于 2019-12-02 07:36:00
Does anyone know how to generate UUID/GUID for Internet Explorer? I have code from Broofa at: http://www.broofa.com/2008/09/javascript-uuid-function/ this works fine on almost all the browsers except IE 9. this is how I do it: window.Guid = function () { function part() { return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1).toUpperCase(); }; return { NewGuid: function () { return (part() + part() + "-" + part() + "-" + part() + "-" + part() + "-" + part() + part() + part()); }, Empty: "00000000-0000-0000-0000-000000000000" }; } (); now you can do: Guid.NewGuid(); // new uuid

Preventing onbeforeunload dialogs in IE9

感情迁移 提交于 2019-12-02 07:28:13
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_id: "<?php echo $this->session->userdata('resume_id'); ?>" } ); } You cannot send an AJAX request while

SVG Scaling Issue in IE9

懵懂的女人 提交于 2019-12-02 07:21:56
Having issues using small svg in IE9. It get's chopped off on the right/is not centered: (Supposed to be a "X") My SVG: <?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 364.786 364.786" enable-background="new 0 0 364.786 364.786" xml:space="preserve" preserveAspectRatio=

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

这一生的挚爱 提交于 2019-12-02 07:13: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? The elements inside an xml file need to define what namespace they're in, otherwise they'll get parsed as unknown xml elements. This is true even if the root of the xml file was an <svg> element. To make sure that the

Problems with simple modal in IE9

强颜欢笑 提交于 2019-12-02 05:52:41
Yesterday I launched a new website. Before I uploaded the files to my server, I tested the website in IE8, Firefox, Safari and Chrome, and everything seemed to be OK. But I just installed IE9 and my Simple Modal boxes don't show up in this browser. I'm using the following javascript code: jQuery(function ($) { $('a.modal').click(function (e) { $('#' + this.id + "content").modal({onOpen: function (dialog) { dialog.overlay.fadeIn('fast', function () { dialog.container.fadeIn('fast'); dialog.data.fadeIn('slow'); }); }}); return false; }); $.modal.defaults.onClose = function (dialog) { dialog.data

$.get not working in IE

*爱你&永不变心* 提交于 2019-12-02 05:12:24
This displays 1 no matter what I echo in getbillno.php - also why I'm not showing that part anymore. Nothing would change unless I change bill into a string or put tbl (just to see what happens) in its place, so I figured the problem is not in getbillno.php but with this part right here. I'm very much new to jQuery and I really can't see what's wrong with this. This works perfectly with Chrome, FF, and in Safari. I have other functions with jQuery in the same page and those work fine in any browser including IE(9). It's just with this one that I'm having problems. <script type="text/javascript

Parsing xml/json response in IE9

℡╲_俬逩灬. 提交于 2019-12-02 05:07:57
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="uploadForm" action="http://api.imgur.com/2/upload.xml" method="POST" enctype="multipart/form-data"> <input type

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

跟風遠走 提交于 2019-12-02 04:37:31
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"); myInput.setAttribute("name", key); myInput.setAttribute("type", "hidden"); myInput.setAttribute("value

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

五迷三道 提交于 2019-12-02 04:30:42
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[i].childNodes[j].childeNodes[0] the variable editor will get the expected value in IE7 and IE8,