FAQ Database Discussion Community


Javascript - Apply() breaking IE 9

javascript,jquery,internet-explorer,internet-explorer-9
I have this object: var _intervals = { intervals: {}, _add: function (fun, interval) { var newInterval = setInterval.apply( window, [fun, interval].concat([].slice.call(arguments, 2)) ); this.intervals[ newInterval ] = true; return newInterval; }, _delete: function (id) { return clearInterval(this.intervals[id]); }, _deleteAll: function () { var all = Object.keys(this.intervals), len = all.length;...

Line: 5571 Error: Not enough storage is available to complete this operation

javascript,jquery,jqgrid,internet-explorer-9
I am getting "Not enough storage is available to complete this operation." error while trying to add data (20K records) in jqGrid. This issue is occurring in IE 9. Code: //This line adds 20k records to the jqgrid $.when(GetDataBySelectedCode()) .done(function (ResultData) { if (ResultData!= null) {//able to get result here...

IE9 Input and Select zoom issue using EM unit

html,css,internet-explorer,internet-explorer-9,font-size
I have a page, all styles are authored using em unit for sizing. I am facing a strange issue in IE9. I have a requirement to have custom zoom buttons. By clicking on that button, I am increasing the font-size of body. Eg from 1em to 2em and all child...

Select option not dynamically set on IE9

jquery,internet-explorer-9
I have looked at all the answers related to this, but still cannot figure out. Please help. I have a jquery code as below : $('#DDPrimaryServiceLine').find('option:contains("' + rowData['Primary_Service_Line'] + '")').attr("selected", true); rowData is generated from ajax through DB call. Also originally the select is empty ,it is getting dynamically populated...

Should the X-UA-Compatible meta tag come before or after the charset tag

html,internet-explorer-9,x-ua-compatible
I need to force IE9 to use its standards mode, and have the following HTML: <!doctype html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=9"> Is it correct to have the <meta charset="utf-8"> tag appear before the X-UA-Compatible tag? ...

“Security Risk” Error Message in IE9 with Yammer Embed Feed

javascript,ssl,internet-explorer-9,yammer
I have an app that Embeds a Yammer feed using the Yammer "embedFeed" API. The app is hosted under SSL (via HTTPS). On PC's running IE9 it's causing IE to display a dialog box that says: "This page is accessing information that is not under its control. This poses a...

create an adaptive quadrilateral trapezoid in css

css,css3,svg,internet-explorer-9,css-shapes
Is it possible to create the image shapes in css? I've googled this more than I'd like to admit over the last week without finding a solution. I have been able to semi-replicate it but haven't gotten all the requirements worked out. have a border be responsive adapt to content...

Error - First chance exception occured in webdriver.dll

selenium,xpath,webdriver,internet-explorer-9
I have a selenium project setup in visual studio 2010 and while debugging , I am getting first chance exceptions in webdriver.dll with additional information: unable to find xpath ==.//[@id='menuForm:projectMenu_span'] As the error says clearly,it was unable to locate the element with xpath. I used firebug to get the xpath....

.append JQuery not working in IEjquery,html,internet-explorer-9,append
my table is printing fine in firefox, but is not displaying in IE9. Any help would be greatly appreciated. Thank you. Please see code below. $("p").append("<br>"); $("p").append("This is printing in IE"); //table is not $("p").append("<table id=\"course_titles\" class=\"display\" bgcolor = \"#CC0000\" width=\"75%\" cellspacing=\"0\" border = \"1\">"); $("#course_titles").append("<tr>"); $("#course_titles").append("<td><b>Course Title</b></td>"); $("#course_titles").append("<td><b>CU...

How to “postMessage” to host from within pdf when viewed in IE9 object element

javascript,asp.net-mvc,pdf,internet-explorer-9,itextsharp
I am attempting to do a small PoC with PDFs and have run into an issue. I am looking to post a message to a PDF and have the PDF post a message to the browser. The deets: I am viewing the PDF in an "object" element in IE9. I...

Internet Explorer hover/rgba/opacity/css3 compatibility

css3,internet-explorer,hover,internet-explorer-9,rgba
I am using CSS3 with an rgba alpha opacity hover to display text over an image when the user hovers. Works fine in chrome, firefox and safari but when trying in internet explorer (9) it just shows the image and hovering does nothing. Check out the code here: http://jsfiddle.net/b16pow50/ div...

Remove mysterious space that IE9 creates around

html,css,internet-explorer,internet-explorer-9
I'm trying to learn how to make crossbrowser pages and stuck at dealing with IE9: it creates some space near the <img>, see example Look at the rightmost image, it should appear here. If space doesnt appear, hover the mouse over the image. Can't imagine what's wrong, this image is...

IE9 displaying selected items even when selected=“”

javascript,jquery,html,internet-explorer-9
I have a series of drop downs that let the user select multiple items from the same overall list of available options. Each drop down contains the same basic list, but if an item is selected, that option will not appear in the other lists. The page loads with one...

Internet explorer 9 will not recognize doctype sent by servlet from weblogic server and renders in document mode IE7 - extra characters before start?

java,html,servlets,internet-explorer-9,weblogic
PROBLEM Internet Explorer 9 does not take the <!DOCTYPE html> into account in the same way when I have my page locally or on my server. I made a simple test page to highlight the problem: EDIT: updated simple test page with meta tag and css link <!DOCTYPE html> <html...

select box population function not working in IE 9

javascript,internet-explorer,internet-explorer-9
I am new to the world of web dev and so far, for the most part, everything has been peaches and cream and daffodils and teddy bears. Having a blast making a pretty form in Google Chrome. The thing is, most of the people in the company I work for...

Black overlay showing up on top of html5 video in ie9

jquery,css,html5,video,internet-explorer-9
So IE strikes again. I'm having a ridiculously hard time trying to figure out why IE is making a black screen show up on top of the video. I have a button on a web page that brings up a black div that fills the whole screen and inside the...

Is there a bug in Internet Explorer 9/10 with innerHTML=“”?

javascript,internet-explorer-9,internet-explorer-10
I often use the following code to clear the content of an element : div.innerHTML = ""; But I found a stange behaviour on Internet Explorer. It seems that all children of the div get their own children removed too! If I keep a reference to a child of the...

Associative Array Internet Explorer 8/9

javascript,arrays,internet-explorer-8,internet-explorer-9
I've an javascript Array: obj[name][uid] = 10 obj[name][blub] = 12 When I am checking in modern browsers for if(obj[name] == undefined){ ...do stuff } else ... it works great. But in IE 8 and 9 it doesnt work. How can I check in IE 8/9 if this array has been...

Internet Explorer Tells me The Cache for forward and backward ist deakivated

javascript,ruby-on-rails,html5,internet-explorer-9,tinymce-4
I've got an problem with an ruby on rails aplication. I've got a Textarea with the TinyMCE editor. so if I call the page every thing is okay. But If I want to save or leave the page I got the Message If I really want to leave the page?...

Site not rendering on Internet Explorer (Uses Reveal.js library)

internet-explorer,internet-explorer-9,reveal.js
I have just realised that a site that I have developed (www.troov.co) is not displaying at all on Internet Explorer. It's working on other browsers (Chrome and Safari). I realise that there are ongoing problems with Internet Explorer with some javascript frameworks, but the site won't load any content at...

jQuery - IE9 issues (works once debugger was opened )

javascript,jquery,internet-explorer,internet-explorer-9,inspect
I have a one page site, and im using the following code for scrolling between the pages: function gotoPage() { var cur = $(this); var role = cur.attr('role'); var target = $('#' + role); $('html,body').animate({ scrollTop: target.offset().top - 94 }, 1000); } $('.navBt').click(gotoPage); HTML: <div class="navBt" role="topSpacing"> <img src="img/nav_campaign.png" />...

How make flexible blocks without flexbox for old IE

css3,cross-browser,internet-explorer-9,flexbox
There is a question about simple form, with input and button, Цe need a block filled 100% of the available space inside the box in which there may be other elements, without their wraps. This is easily done with the flexbox, but it does not support IE 8-9. Please help...

How to access clipboard and current cursor position when pasting in a textarea in IE8/9 before it becomes the current value?

javascript,internet-explorer-8,internet-explorer-9,textarea,maxlength
Since IE8/9 do not support HTML5's maxlength attribute, I need to find a way to prevent pasting too long text into a textarea/input, so I chose to go with the onpaste-attribute/eventhandler via jQuery, see the example code below: $(document).ready(function() { $('textarea[maxlength]').on('paste', function() { var maxlength = $(this).attr('maxlength'); if (this.value.length >=...

.toggle() does not work with IE9

jquery,internet-explorer-9,toggle
I want to show some information when hitting a link as you can find here: http://jsfiddle.net/t4f8yer0/1/ html: <a href="#" class="more">show more</a> <br> <div class="toggle"> this is more </div> js: $(document).ready(function(){ $(".toggle").css('display','none'); $( ".more" ).click(function() { $(event.target).next().next().toggle( "slow" ); }); }); This works for chrome and IE edge but not for...

How do I prevent jquery from reloading an animation in IE mouse hover?

jquery,internet-explorer,internet-explorer-9
I have an animation that plays on mouse over on a containing div. In IE9+ if the user hovers over an element inside that container it replays the animation. My basic setup is: <div class="book"> <img src="bookcover.jpg" /> <div class="overloay"> <p class="title">Book title</p> <a href="#">read book</a> </div> </div> When the...

`ie9` - contenteditable false not working when parent editable

javascript,jquery,html,css,internet-explorer-9
I am trying to make a content editable and non-editable containers. the user can use this as 3 ways. they can put content with non-editable they can put the content with editable they can put the content without selecting one of this. (editable) I am trying to achieve this as...

show a div with jQuery if the user is on IE 9 and below

javascript,jquery,internet-explorer,internet-explorer-9
How could I detect (with jQuery) if the user is on IE 9 or below, and if they are .show() a div? I have successfully done the below with jQuery for Android. How could I do a IE 9 AND below condition? Done similar with Android. (would like a similar...

IE9 resource returing array of char instead of JSON object

javascript,json,angularjs,internet-explorer-9,ngresource
I'm having a rating system with an API to handle the ratings. On the Get method is the following code: public JToken Get(string vid) { JToken result = null; var status = new { Rating = 100, UserRated = true }; result = JsonConvert.SerializeObject(status); return result; } and in my...

Angular $http and Fusion Tables in IE9

javascript,angularjs,internet-explorer-9,google-fusion-tables
I am trying a simple get request to a google fusion table in my angular controller. $http.get(url) .success(function(data) { //Do stuff with data }) This works in firefox, chrome, safari and IE10+ however in IE9 (Which I am requried to support) the request fails to even send and the console...

How set height of select dropdown list in IE 9 [duplicate]

html,css,internet-explorer,internet-explorer-9,html-select
This question already has an answer here: Height of an HTML select box (dropdown) 5 answers I found a bug with select tag in IE 9... In IE 10 and 11, FF, Chrome, Safari everything works fine, but in IE 9 - when list with options become visible, it's...

400 Bad Request when calling wcf from html using XDomainRequest

javascript,wcf,internet-explorer-9,.net-4.5,xdomainrequest
I'm on this problem since more than one week and all I have tried haven't work so well. I started with Jquery to find out that Ie9 was different from the other browsers and requires its own way for calling wcf. It is simple enough and I did all the...

How to get style attribute value before IE9 strips it

javascript,css,internet-explorer,internet-explorer-9,inline-styles
I'm trying to grab the value of the style attribute before IE9-10 strips invalid values out. So far I've tried every variation of the following - $0.attributes.style $0.style $0.getAttribute('style') But it seems if I try to set an invalid value I cannot get access to it - <div style="display: none;...

IE9: removing “dirty” round corners

css,internet-explorer-9
This portion of code draws round borders on a menu. That works well in Chrome, IE11 and even IE10, but in IE9 there is a problem: the round borders are "dirty"... .navsub { display: block; z-index: 999; } .navsub li { /*float: left;*/ margin: 0px 2px; padding: 3px 5px; display:...

CSS Hamburger menu icon not displaying properly in ie9

css,css3,internet-explorer-9,pseudo-class,hamburger-menu
I have inserted a 'hamburger' menu icon into my website's header using only CSS3 code obtained from codrops website. The icon uses the pseudoclasses :before and :after and it works perfectly in the latest version of Chrome and in IE11. However, using IE9 (which our organization uses at work), the...

Polyfill for FileReader API

javascript,flash,internet-explorer-9,filereader
Please help me out on using fileReader polyfill for IE9. Im unable to get it out on how to use it Please correct me if im doing anything wrong here. Im trying to use the FileReader API Shim for IE9. But on change event of the input type = file,...

Pseudo element takes up space in IE9

html,internet-explorer-9,contenteditable
I have a div that I want to behave like an text input field. Here's the full source code example: HTML: <div contenteditable='true'></div> CSS: div:empty:before { content: 'Type here...'; color: #ccc; } div{ padding: 4px; border: 1px solid #ccc; } See the fiddle in IE9: http://jsfiddle.net/87m23r5q/2/ In IE9, the problem...

CSS: How to set up gradient background cross browser (only missing IE8 and IE9)

css,internet-explorer-8,internet-explorer-9,background-color,linear-gradients
I have created my own navbar and would like to set up a simple gradient background color for it. So far I have the following which works fine for me in newer browsers but I am not sure what I have to add here to cover IE8 and IE9 as...

Event Handlers not being invoked in IE 9

javascript,dom,event-handling,internet-explorer-9
I am trying to add event handlers to the option elements contained inside a select box. The relevant code is as follows: $(document).ready(function(){ $('.custom_select_option_1').mousedown(function(event){ event.preventDefault(); var opt= event.target; var scroll_offset= opt.parentElement.scrollTop; opt.selected= !opt.selected; opt.parentElement.scrollTop= scroll_offset; update_selections(opt.parentElement); }); $('.custom_select_option_1').mousemove(function(event){ event.preventDefault(); }); }); My code works fine in Chrome, but in IE-9...

How can I use JavaScript/jQuery to conditionally add a stylesheet?

javascript,jquery,internet-explorer,internet-explorer-9,conditional-comments
I've looked online for a suitable solution to the following issue and I can't seem to find a useful workaround; We're using Umbraco CMS to display a client's website, this isn't allowing us to add in the usual conditional comments that one would do in the < head > of...

IE9: Right-click and 'View source' is opening up in word?

internet-explorer-9
I have Windows 7 Professional for an OS: I'm not sure what changed, but suddenly in IE9 anytime I view the source of a HTML page it's firing up MS Word and trying to display in Word. How do I revert my Right-click->'View source' so it no longer opens in...

CSS: How to set up border radius cross browser (only IE8 and IE9 missing ?)

css,internet-explorer-8,internet-explorer-9,border,internet-explorer-10
I have created my own buttons and set up some simple border radius. So far I have the following which works fine for me in newer browsers but I am not sure what I have to add here to cover IE8 and IE9 as well (I am not interested in...

Form.onsubmit not working

javascript,internet-explorer-9,console.log
I'm creating a script to check something in my code. This script runs successfully on Chrome, but it doesn't run on IE. This is run on onsubmit in my form <form id="frm1" name="frm1" method="post" onsubmit="return checkForm();" action="save_dept_add.php"> And this is my script (I've put it in head tag) <script language="javascript"...