IE « IE « Javascript HTML CSS Q&A

Home
Javascript HTML CSS Q&A
1.animation
2.audio
3.background
4.browser
5.button
6.canvas
7.checkbox
8.Cookie
9.Development
10.DIV
11.dom
12.dropdown
13.editor
14.element
15.Event
16.Firefox
17.flash
18.font
19.Form
20.frame
21.hide
22.hyperlink
23.IE
24.iframe
25.image
26.innerHTML
27.json
28.layout
29.Library
30.localStorage
31.Menu
32.mobile
33.onclick
34.popup
35.Render
36.scroll
37.scrollbar
38.svg
39.tab
40.table
41.tag
42.text
43.TextArea
44.TextBox
45.validation
46.video
47.window
48.xml
Javascript HTML CSS Q&A » IE » IE 

1. What to do when IE's moveToElementText spits out an Invalid Argument exception    stackoverflow.com

We've written a plugin to the Xinha text editor to handle footnotes. You can take a look at: http://www.nicholasbs.com/xinha/examples/Newbie.html In order to handle some problems with the way Webkit and ...

2. Problem with HTML Parser in IE    stackoverflow.com

I am trying to create a dialog box that will appear only if the browser selected is IE (any version) however I get this error:

Message: HTML Parsing Error: Unable ...

3. Risk of using contentEditable in IE    stackoverflow.com

We have to add a basic HTML editor to our product. As we only support IE at present (most customers are still on IE 6), I have been told to ...

4. Internet Explorer 6 aborts page request when javascript executes    stackoverflow.com

The scenario is this. A web page contains:

  • some DIVs whose visibility can be toggled with a javascript (fired from an hyperlink)
  • a Submit button, whose response takes about 5 seconds
The hyperlink code ...

5. Problem with SWFObject in IE    stackoverflow.com

I'm having a problem with SWFObject in IE. The swf-file shows, but everything below the swf doesn't. Here's the URL: http://timkjaerlange.com/wip/co2penhagen/ Any ideas to what could be wrong?

6. Is there a way to make a javascript link open up in IE?    stackoverflow.com

I have a link that uses javascript to submit a form, like so:

<a href="javascript:document.some_form.submit()">some link</a>
However, this will point to a vendor-supplied application that of course only works in IE. Is ...

7. Make IE respect your whitespace with dynmically changed content    stackoverflow.com

If I have the following line in html:

<span></span> wtf
and then I run the jQuery statement:
$("span").html("test");
It ends up looking like "testwtf" instead of "test wtf". Is there anything I can do about ...

8. Conditional comment for 'Except IE8'?    stackoverflow.com

I'm using <!--[if IE 8]><![endif]--> for targeting IE8, but there's some JS that I want to load for all browsers EXCEPT IE8, what conditional comment should I use? Edit: I wonder if ...

9. JavaScript IE appendChild() - Unexpected call to method or property access    stackoverflow.com

I have been having this problem in IE. I have two divs which I use to drag selected elements from one to another. Lets say I have a child element (also ...

10. Why this javascript is not working in IE?    stackoverflow.com

I am using the following javascript to dynamically add rows in a table:-

 var trObj = document.createElement('tr');
 trObj.setAttribute('name', 'dynamicTR');

 var tdObjEmpty = document.createElement('td');
 tdObjEmpty.setAttribute('colspan', '2');
 tdObjEmpty.innerHTML = '&nbsp;'
 trObj.appendChild ...

11. JAVASCRIPT: IE: outerHTML    stackoverflow.com

Problem i encounter with outerHTML using IE Browser if i say:

txt="Update Complete!";
msg = sub.appendChild(d.createElement("p"));
msg.outerHTML = txt;
It Works Fine: But if i say
txt="1 Error:<ul><li>Some Error</li></ul>";
msg = sub.appendChild(d.createElement("p"));
msg.outerHTML = txt;
Gives me an error of:
Message: Unknown ...

12. in Internet Explorer, pasteHTML causes unexpected behavior?    stackoverflow.com

I have the following HTML w/Javascript code (note: this only works in Internet Explorer):

<script type='text/javascript'>
function changeIt() {
 var startTag = "<span class='h' id='123abc'>";
 var endTag = "</span>";
 var htmlStr = document.selection.createRange().htmlText;

 ...

13. setAttribute is not working for 'style' attribute on IE    stackoverflow.com

I'm porting a piece of JS code written for Firefox into Internet Explorer. I faced a problem of changing style of an element using setAttribute method which was working on Firefox.

button.setAttribute('style', ...

14. Javascript remove/addChild problem in IE    stackoverflow.com

I've got an HTML page with a select and another control. I want the type of the second control to dynamically change depending on the value selected in the first control. Here's ...

15. How can I get IE to recognize NBSP as NBSP instead of a space?    stackoverflow.com

For the following JavaScript:

function EscapedString(str) {
  var obj = document.createElement("span");
  obj.innerHTML = str;
  return "&#" + (obj.textContent || obj.innerText).charCodeAt(0) + ";";
}

alert(EscapedString("&nbsp;"));
alert(EscapedString("&#160;"));
alert(EscapedString("\xA0"));
IE returns &#32; for each value instead of ...

16. IE's responseXML.getElementsByTagName() unable to handle non English character?    stackoverflow.com

I have a javascript that does this (http is your XMLHttpRequest object)

var r = http.responseXML.getElementsByTagName('item');
The issue is variable r is always an empty list if the response contains non-English character (r.length ...

17. Javascript issue on IE    stackoverflow.com

I have added the social links in my html page. When I added, the top nav of my pages is gone. Tats appeared in firefox but not in IE. Any one help me how ...

18. How can I control the action of onbeforeunload in IE?    stackoverflow.com

I've got a problem about onbeforeunload recently that I need to pop up a voting page when users try to close their IE browsers.I did it by using:

<body onbeforeunload="makevote()">
And the ...

19. javascript function not working in IE 7    stackoverflow.com

Can anyone please tell me how do I make this script run in IE 7? When I run this , nothing happens.

    <html>
    <head>
 ...

20. problem in using appendchild in IE7    stackoverflow.com

Find below the js function that I'm using to add a new date field & 'Select Venue' link to an existing div with id 'coursedates' . Problem is this works fine ...

21. Reading URL Anchor on IE    stackoverflow.com

I've got a page full of links to another page with anchors on the end (like this: index.html#anchor). On the page they point to, I have a script that is supposed ...

22. internet explorer and dynamic lists from javascript    stackoverflow.com

I have a page that requires user input then it will execute some javascript and populate fields on the page. Part of this includes calling a perl script that will run ...

23. Set data on text nodes in IE with javascript    stackoverflow.com

i have created a script to associate data to dom nodes, something like the jQuery.data method. Basically the script sets a property on the node that is the key of an ...

24. IE 8 Quirks vs Standards retrieving offsetHeight/offsetWidth    stackoverflow.com

I am in the process of converting my application to use XHTML strict mode (it didn't have a DOCTYPE before). However, I noticed a significant degradation when getting offsetHeight/offsetWidth. This is ...

25. How to get a NON-standard attribute in IE8 through javascript?    stackoverflow.com

I have an HTML page that has this doctype:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
However, the HTML contains this tag:
<applet src="blahblah"></applet>
(EDIT: actually the HTML doesn't contain the applet. The applet is ...

26. problem with onblur in IE and in FF    stackoverflow.com

I have a code like this: (this is a pop-up)

<body onblur="window.focus();">
<form id="ronny">
<select id="select1" name="select1">
<option> 1b </option>
<option> 1a </option>
</select>
<select id="select2" name="select2">
<option> 2b </option>
<option> 2a </option>
</select>
Now, my problems are:
  1. In FF - when i ...

27. Operation Aborted in IE 7    stackoverflow.com

I have Operation Aborted each time I Refresh my website's page. I read the article of MSFT about this issue, and I dont have that case. I have a div inside the body ...

28. IE6 & IE7 messing up dynamic HTML generated by JavaScript    stackoverflow.com

I am wondering my IE6 and IE7 is messing up dynamic HTML generated by JavaScript (use with FancyBox and jQuery). For example:

var html = '<a href="#fancyBoxContent" class="fancybox"></a>';
document.getElementById('container').innerHTML = html;
Instead of filling the ...

29. Embed VLC Player 1.1.7 in page for IE    stackoverflow.com

I am looking for a code sample on how to place a VLC player (latest version) on a web page and have it play a movie file. Pure HTML/Javascript. Target Browser ...

30. JavaScript code won't work in Internet Explorer 9    stackoverflow.com

This JavaScript works in Chrome, Firefox, Safari but not in Internet Explorer. It sends the page layout everywhere. Any Ideas?

var slideimages = new Array()
var slidelinks = new Array()

var ImageArr1 = new Array("images/mefish.jpg", ...

31. javascript equivalent of Disable feature in IE6    stackoverflow.com

I have come across a requirement to disable the drop down items through the following javascript code.

function alertselected(selectobj){
 alert(selectobj.selectedIndex)
 if(selectobj.selectedIndex ==1){
    alert('15656');
    document.getElementById("reportFlag").disabled=true;
 }else{
  ...

32. There is some ready/default code to block Internet Explorer 6 or lower versions?    stackoverflow.com

I want show a message to users if they're using IE6 that the browser is outdated in a div. There is something done to do this?

33. Create Internet Explorer extension changing content of a webpage    stackoverflow.com

I'd like to develop an Internet Explorer extension that changes the content of a specific webpage, like content scripts in Google Chrome. (eg. when I go to the website Google and ...

34. Can't change property value in IE using JS    stackoverflow.com

I've a little snippet code that doesn't work in IE only, tested in FF, Safari, Chrome, Rockmelt and all working. JS:

document.forma.score.value = 12;
html:
<input name="score" id="score" type="text"/> 

35. Playing sounds in IE7+?    stackoverflow.com

What's the best way to play sounds without flash in IE7+? I'm specifically targeting IE browsers for this. Is the <embed /> tag correct? I've never messed with sounds in HTML ...

36. Carousel not working in IE7/8    stackoverflow.com

I am working with jquery.carouFredSel-4.0.3-packed.js for the carousal and it works good with IE9 and mozilla,but in IE7/8, it says "LOG: carouFredSel: Not enough items: not scrolling " whenever i am ...

37. appendChild doesn't work correctly in IE    stackoverflow.com

I am trying to create a simple Modal window, but IE isn't cooperating. When I call this function in IE, the content appears at the bottom of the page under all ...

38. FlexiGrid Not working in IE    stackoverflow.com

Hi all,
I have used Flexigrid in my interface.It is working fine in FireFox.But when I load the page in IE the table header only getting ...

39. SCRIPT5007 IE9 getElementsByTagName    stackoverflow.com

Why is this simple thing not working in IE 9? It works just fine i FF and Chrome.

<script language="javascript" type="text/javascript">
    function displayBusinessCardData() {
      ...

40. parenNode.replaceChild not working in IE6    stackoverflow.com

I had a table element in my Html file of FCK editor which i tried to replace with new table element using parentNode.replaceChild method.Though it works fine in Internet Explore 8 ...

41. Using appendChild with IE in Javascript    stackoverflow.com

I am having trouble with this code in IE (with Chrome it seems to work fine):

<html>
<body>
<script type="text/javascript">
    var scriptContent = "var whatever=1";
    var _js = ...

42. Setting the Zone in IE when serving pages from a CD    stackoverflow.com

The software I am currently working on generates a set of web pages which can then be burnt to CD or DVD with an autorun tool, which launches the default browser. The ...

43. document.write problem in IE    stackoverflow.com

I'm writing a demo page that will display a demo and people can get the source code of the demo.
I use this method to do it: store the source code of ...

44. modalDialogBox parameters and ie issue    stackoverflow.com

In modaldialogBox when use the dialogHeight and dialogWidth the size of the dialogbox is not increased in IE. I want to disable the scroll bar in the modaldialogbox and display as whole ...

45. Viewing the updated HTML in ie6    stackoverflow.com

I am working with ie6 (unfortunately) and i am having a javascript error. Its wondrous error message gives me a line in the html source, but unfortunately the javascript that does ...

46. Problem with getElementsByTagName in IE 8    stackoverflow.com

I have problem this script dont working in IE 8 in Firefox is everything OK.

<html>
<style type="text/css">
 lip{   position:absolute;     }
</style>
<body>
<ul><lip>3<input type = "checkbox" name = "LH3" ...

47. Another appendchild not working in IE    stackoverflow.com

I have a appendChild JS function that works beautifully in all the browsers except IE. I am using a JS array and appending this data to a table. http://jsfiddle.net/2waZ2/51/ ...

48. Why does IE 8 navigator.userAgent return MSIE 7.0?    stackoverflow.com

I am trying to implement a browser support feature on my webpage. For Firefox 3.6 it is working fine, but for some reason IE 8's userAgent is returning a wrong value. Here ...

49. node.appendChild not behaving as expected in <=IE9 (haven't checked 10)    stackoverflow.com

Im having a really weird IE problem that I can't figure out what the root cause is. I'm hoping to get an explanation as to what internally is going wrong. ...

50. What is happening to my site in IE?    stackoverflow.com

My site: FIFA Encyclopedia A long time ago I made some big changes and incorporated a lot of PHP and used some Javascript to make the right and left sides ...

51. Issue with Javascript generated html code in Internet Explorer    stackoverflow.com

I have a html page with a form in it. In this form, I have 1 input field available for users, with it's type set to file. The form is usually ...

52. addLoadEvent, appendChild IE 6    codingforums.com

Hm, its very strange Ive created a simple testing file and there I could append the element(s) correctly. So then I recreated the original HTML file step by step and created a new JS file, copying the JS from the old JS file step by step as well and then it worked as if it had always been like that. It ...

53. Javascript appendChild IE problem    codingforums.com

test

54. Inner html response IE & Opera problem    forums.digitalpoint.com

var xmlHttp function CheckField(field) { xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Browser does not support HTTP Request") return } var url="include/check.php" url=url+"?op=ajax" url=url+"&field=" +field.name url=url+"&value=" +field.value xmlHttp.onreadystatechange=stateChanged xmlHttp.open("GET",url,true) LastField = field.name; xmlHttp.send(null) } function stateChanged() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ if (document.getElementById) { x = document.getElementById(LastField); x.innerHTML = xmlHttp.responseText; x.style.display = "block"; } else if (document.all) { x = document.all[LastField]; x.innerHTML = ...

55. Please a workaround for this appendchild IE Problem.    forums.digitalpoint.com

Code: // Add media function addMedia(obj) { if (opener.document.getElementById('media-' + obj.id)) { alert('Media already exists.'); } else { var el_main = opener.document.getElementById('media-container'); // Create list element el_Media = opener.document.createElement('li'); el_Media.id = 'media-' + obj.id; el_Media.className = 'thumbnail'; //el_Media.onclick = function(){this.parentNode.parentNode.removeChild(this.parentNode);}; // Create hidden input field el_INPUT = opener.document.createElement('input'); el_INPUT.name = "media[]"; el_INPUT.value = obj.id; el_INPUT.type = "hidden"; // Add mediaThumb el_IMG ...

57. AppendChild is not working in IE?    forums.devshed.com

__________________ Three gigs for the secretaries fair Seven gigs for the system source Nine gigs for the coders in smoky lairs One disk to rule them all, one disk to bind them One disk to hold the files, and in the darkness grind'em --------------------------------------------------- It is by caffeine alone that I set my mind in motion. It is by the beans ...

58. AppendChild to documentElement in IE    forums.devshed.com

60. Anchors # being cut at ? in IE6    forums.devshed.com

Hello everybody, I am setting up an ajax application with anchors to keep the browser history and stuff. It works as hell in IE7, FF, Safari, Opera and so. It only fails in IE6 because for some reason IE6 cuts the anchors when it has a ? (question mark) on it. For example, if I have an URL like this: http://www.mysite.com/index.php#news?pag=3 ...

61. Using getElementsByTagName in IE7    forums.devshed.com

maybe you guys need more code?? Code: function ajaxContent(xmlfile){ var ajaxRequest; // The variable that makes Ajax possible! try{ // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e){ // Internet Explorer Browsers try{ ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){ // Something went wrong alert("Your browser broke!"); return false; ...

62. "No Such Interface Supported" with appendChild and IE7    forums.devshed.com

Hello all, I have been having this error for the best part of today and I simply don't know where to start with fixing it. Basically I have a link that opens a new window allowing a user to upload a file. Upon the file being uploaded a series of JavaScript commands add a new row to an HTML table in ...

63. (html,javascript) -Internet Explorer MAC ISSUE    forums.devshed.com

hi , i have developed an application using php,javascript,html and postgresql. i have problems in running my pages in MACINTOSH machines.(everything is fine when i run it from IE in windows but am facing many problems in MACINTOSH internet explorer in MAC) many functionalities in HTML (eg moving divisions) and many javascript codes are not working in mac ie. can anyone ...

64. HTML no-cache in IE    devnetwork.net

65. HTML/ Javascript IE Help    phpfreaks.com

66. appendChild not working in IE6 and IE7    phpfreaks.com

The following code is being used to add a div to the parent page from within an iframe and is working in Firefox, Chrome and Opera but not in IE6 or IE7 (the other IEs haven't been tested yet): parent.window.document.body.appendChild(newDiv); Can anyone suggest what the problem might be and whether there's a way round it ? Thanks in advance.

67. getElementsByTagName in IE issues    phpfreaks.com

68. appendChild not working in IE6 or 7    phpfreaks.com

69. appendChild problem with IE7    phpfreaks.com

It doesn't pop up with an error message, it's just that the table just doesn't appear Code: [Select] function tableBuild () { var container = document.getElementById ('container'); // build head ...

70. UL, LI Issue inIE 6 and IE7    sitepoint.com

Hi, I have created list items using

    and
  • . It's works fine in Firefox but in ie 6 and ie 7 I could not see the list bullet. Here is the steps I did: I have a Global ul , li reset value. after that I have created two column list using two
      block. and in cs I am ...

71. IE problem - appendChild or other reason?    sitepoint.com

I have a problem with this peace of JS - it works fine in Firefox and Chrome - but not in IE(7). I keep staring at it but I can't figure it out - any ideas which part is not supported in IE7 and what the workaround is? Code:

74. Please a workaround for this appendchild IE Problem.    sitepoint.com

Code: // Add media function addMedia(obj) { if (opener.document.getElementById('media-' + obj.id)) { alert('Media already exists.'); } else { var el_main = opener.document.getElementById('media-container'); // Create list element el_Media = opener.document.createElement('li'); el_Media.id = 'media-' + obj.id; el_Media.className = 'thumbnail'; //el_Media.onclick = function(){this.parentNode.parentNode.removeChild(this.parentNode);}; // Create hidden input field el_INPUT = opener.document.createElement('input'); el_INPUT.name = "media[]"; el_INPUT.value = obj.id; el_INPUT.type = "hidden"; // Add mediaThumb el_IMG ...

75. responseXML and getElementsByTagName in IE    sitepoint.com

I found your post while searching for a solution to the same problem. I just fixed it by changed the Content-Type in the header of the XML document I was working with from application/xhtml+xml to text/xml. I'm able to use getElementsByTagName on it now, so hopefully the same solution works for you without breaking something else you're doing. Good luck, Brian ...

76. IE6 and inner.HTML    sitepoint.com

Code: if(document.getElementById) { window.alert = function(text) { err(text); } } function err(text) { document.getElementById("alert").innerHTML = text; setTimeout('document.getElementById("alert").innerHTML = ""', 3000); } function makeRequest() { if(window.XMLHttpRequest) { try { return new XMLHttpRequest(); } catch(e) { req = false; } } else if(window.ActiveXObject) { try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { req = false; } } else { err("You browser doesn't support ...

77. appendChild, createElement, setAttribute in IE    sitepoint.com

function addphoto() { var photos = document.getElementById("photos"); // the element that containts the fields // create a label for the file field var title = photos.appendChild(document.createElement("strong")); title.innerHTML = "Photo " + count.value; // create the file input field var file = photos.appendChild(document.createElement("input")); file.setAttribute("type", "file"); file.setAttribute("size", 70); file.setAttribute("name", "filPhotos[]"); // create a label for the text field var caption = photos.appendChild(document.createElement("strong")); caption.innerHTML ...

78. problem using req.responseXML.getElementsByTagName with IE    sitepoint.com

function initRequest(url) { if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject) { isIE = true; req = new ActiveXObject("Microsoft.XMLHTTP"); } } function changeLocalidad() { if (!target) target = document.getElementById("provincia"); var url = "AjaxServlet?provincia=" + escape(target.value); initRequest(url); req.onreadystatechange = processRequest; req.open("GET", url, true); req.send(null); } function processRequest() { if (req.readyState == 4) { if (req.status == 200) { var ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.