internet-explorer-9

IE9 firing onbeforeunload event when the window opens

岁酱吖の 提交于 2020-01-03 03:29:24
问题 I'm building a site using the JFileUpload applet and want to handle the closing of a page in a certain way. JSTransferCancelled is called when the applet is cancelled. The following code is what I'm using to handle these events and it works in all browsers except IE. function JSTransferCancelled(){ bCancel=false; $.post("cancel.php"); self.close(); } $(window).load(function(){ $(window).bind('beforeunload',function(){ document.uploader.setEnabled(false); if(bCancel){ document.uploader.cancel(

How come when debugging javascript in CRM 2011 for a form opened up from the ribbon, script blocks are created?

家住魔仙堡 提交于 2020-01-02 05:00:09
问题 Setup I'm adding an appointment to a custom entity in an on site CRM 2011. I click the "New Activity" button on the Ribbon, select Appointment, then Ok. On the new window that opens, I F12 to open the IE debugger, and select the Script tab, set a break point both in my onLoad function, and in the crmForm_window_onload_handler of the FormScript.js.aspx file, and click the start debugging button. I then reload the appointment window. Issue The break point in crmForm_window_onload_handler hits,

Is there a way to work around this issue with ordered lists and update panels in IE9?

主宰稳场 提交于 2020-01-02 04:28:09
问题 I have discovered an annoying issue with ordered lists in IE9 and am wondering if there's a way to fix it without changing the ordered list into something else or getting rid of the update panel behaviour. The symptoms are that, if an ordered list (or BulletedList control) is used within an update panel, initialising a postback seems to cause the bullet numbers to display 0, 0, 0, instead of 1, 2, 3. The problem is easily reproducible via the following code: <asp:ScriptManager ID="sm1" runat=

IHTMLEventObj::put_keyCode fails in IE9 RC

瘦欲@ 提交于 2020-01-01 19:59:35
问题 I have an IE BHO created over 3 years ago that uses IHTMLEventObj::put_keyCode function. This function has worked as documented in IE6, IE7 and IE8. However, when testing with IE9 RC it no longer works as documented. The function is called the same way and the result is S_OK, but the key does not show up in the input field. The call is being made in the DISPID_HTMLELEMENTEVENTS2_ONKEYPRESS even of my Invoke() function. I found someone with a similar problem: http://social.msdn.microsoft.com

IE9 filter gradient and border-radius conflict

十年热恋 提交于 2020-01-01 09:47:07
问题 I'm trying to use gradient effect and border radius on same element, but there is a conflict between them. Gradient works fine, but it makes border radius not working. here is the script .selector { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff4317',endColorstr='#891a00'); -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } I don't want to use any .htc files. Is this known issue between filter and border radius? Thanks. 回答1: You can use an SVG

IE9 filter gradient and border-radius conflict

China☆狼群 提交于 2020-01-01 09:47:05
问题 I'm trying to use gradient effect and border radius on same element, but there is a conflict between them. Gradient works fine, but it makes border radius not working. here is the script .selector { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff4317',endColorstr='#891a00'); -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } I don't want to use any .htc files. Is this known issue between filter and border radius? Thanks. 回答1: You can use an SVG

IE9 Window Loses Focus due to jQuery Mobile

南笙酒味 提交于 2020-01-01 08:35:06
问题 In our product, we're using the most recent development version of jQuery Mobile in our ASP.NET website. Each and every time we do an ASP.NET postback, the browser window goes to the back of the screen. Example: Maximize any window. Example: Visual Studio, Word, Windows Explorer. Maximize IE9 over it. IE9 is the only thing you see on the screen. Click on a button in our solution that does a postback. IE9 is no longer visible. Whatever was behind it now has focus (and fills the screen, as it

IE 9 and 10 box-shadow on resizing element

我的未来我决定 提交于 2020-01-01 05:13:07
问题 http://jsbin.com/ararar/5/edit tl;dr The above link is a quick example of the problem further described below. Click on the li:s to remove them, and see the rendering glitch in IE9 or IE10. In an app that my team is building, we have a box for search results, that changes in height depending on the number of matches. The element has a box-shadow applied to it. The problem is in IE9 and IE10, when the box becomes smaller. It seems like IE will "forget" about the box-shadow, and only re-render

Should I use the SVG gradients generated by Colorzilla for IE9?

我的梦境 提交于 2020-01-01 05:01:05
问题 I've found http://www.colorzilla.com/gradient-editor/ to be great for generating CSS3 gradients. However, there's one thing about it which would be great if someone could clarify for me. As I understand it, IE9 doesn't support the filters in the same way IE6-8 did, and doesn't support CSS3 gradients either. Colorzilla gives a very clever way of forcing IE9 to work with multi stop gradients, by including SVG data for the gradient in the CSS, and setting filter to none for IE9 only on any

Javascript dispatchEvent click is not working in IE9 and IE10

独自空忆成欢 提交于 2020-01-01 03:50:11
问题 I'm trying to simulate mouse events like click, mouseover etc on app build in ExtJs. I'm using below code to simulate click, function triggerEvent(element, eventName) { if (document.createEvent) { var evt = document.createEvent('MouseEvents'); evt.initEvent(eventName, true, true); return element.dispatchEvent(evt); } } var btn = document.getElementById("loginButton"); triggerEvent(btn, "click"); This works fine on chrome and firefox but never works on IE9 and IE10. If I use btn.fireEvent(