internet-explorer-9

Disable a link in IE9 - prototype stop() not working

£可爱£侵袭症+ 提交于 2019-12-08 16:03:04
问题 IE9 is still in Beta, but all the same, here is a question: Using prototype.js 1.6.1, proper form for adding a click event to a link, and override the default link behavior, would be: mylink.observe('click', function(e){ doSomething(); e.stop(); }); While this works perfectly in every other browser that I tried, IE9 is a unique case. The default event behavior fires and my link takes me to the linked location. It seems that stop() isn't doing its job in IE9. The following code works perfectly

IE9 firing onbeforeunload event when the window opens

南笙酒味 提交于 2019-12-08 14:04:40
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();} }); }); I open the page with the uploader on it in a new tab from the main site and want to close

Conditional comment for IE=9 compatibility mode

十年热恋 提交于 2019-12-08 13:09:44
问题 I'm using the following conditional comment to notify users thet they are running a non-supported browser version. <!--[if lt IE 8]> ... <![endif]--> I noticed that this comment is being triggered on IE9 Compatibility mode as-well what was not my attention. Is there a way to make IE9 Compatibility mode an exception or to distinguish it and IE7 mode from regular IE7 so that I can customize the message for them? 回答1: One easy way to check compatibility mode is: try{ JSON } catch (e){ alert(

Will Internet Explorer's HTML Parser ever add non-closing tags? [closed]

て烟熏妆下的殇ゞ 提交于 2019-12-08 12:32:56
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm doing some bug fixing for an error in IE8 and IE9 when I came across a strange error. There is a <section class="create"> tag in

Google Maps API v3 doesn't get rendered in IE9 (IE10, Firefox and Chrome render it smoothly)

痴心易碎 提交于 2019-12-08 12:20:39
问题 We're updating from Google Map API v2 to v3 and I've been able to implement all required functions so far. At least in regard to the newest versions of IE, Firefox and Chrome. We've but also got the requirement that the API has to work on IE9. Sadly it doesn't even appear there. Related Code (simplified, I commented the code which afterwards jumps to another location and places markers out for the results): @UiField SimplePanel mapWrapper; [...] MapOptions options = MapOptions.create();

IE9 window.location.href error

陌路散爱 提交于 2019-12-08 11:35:38
问题 In my asp page, I have used the following javascript code for redirecting url.This code works well in native IE7, IE8, Chrome, FireFox and IE9 compatibility mode but not in IE9. While using IE9, first time it works fine but next time shows "404 - File or directory not found.The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable" error. window.location.href='<%=strURL%>' To know what I mean please open http://www.sportsmanager.us

using history.js with IE9

隐身守侯 提交于 2019-12-08 07:54:18
问题 In one of my applications i use window.history.pushState() method to update the window URL. But as IE < 10 does not support HTML5's history api, I was looking for an alternative. Answers to a lot of other questions on SO suggested to use history.js plugin. From the documentation provided by the history.js plugin it's usage is not really clear. I have added the plugin to the <head></head> section in my templates but on IE9 i am still receiving the error that says: SCRIPT438: Object doesn't

Error adding SCRIPTITEM_CODEONLY symbol using IE9 JS engine (Chakra)

独自空忆成欢 提交于 2019-12-08 07:06:56
问题 We've been using active scripting in our browser extension (BHO) for a while with the old JScript engine (CLSID_JScript), and we recently decided to support the new IE9 script engine (Chakra) as well. One thing we do is add symbols to the engine using AddNamedItem with the SCRIPTITEM_CODEONLY option to create our own modules (namespaces). Unfortunately, we haven't been able to get this to work with Chakra. Even the most trivial example where we add a symbol and immediately retrieve its script

removeFilter() function not working in IE9

纵然是瞬间 提交于 2019-12-08 06:51:17
问题 I have a removeFilter() javascript function in my application and it is not getting invoked for some reason and throwing the following error ONLY in IE9. I initially thought it be some typo in my invocation code but when i simple change the name to something other than removeFilter() (say for example applyFilter()) the function seems to be working fine. I simple tried printing some alerts within the function and the function was not invoked. Please note the function works fine in other IE 7,

IE 9 flash detect with javascript

纵饮孤独 提交于 2019-12-08 05:36:13
问题 Checking if flash plugin present, failing only in IE (think its basically the javascript engine of IE 9, even when browser&document mode changed with developer tools). var is_Flash = false; var is_FlashVersion = 0; var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0; if (plugin&&plugin.description) { is_Flash =