473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

IE 6.0.2900.2180 appendChild issue

2
I came across this weird issue the other day and was hoping to get some thoughts on the cause,

The bug is specific to IE 6.0.2900.2180 and resolution of 800x600, only this specific resolution, already weird huh.

So what happens is the div which should 'pop up' doesn't under the above conditions, all other browser versions and even higher resolution in the above version of IE all works.

heres the code to reproduce the issue:

[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="javascript" type="text/javascript">
function openme()
{
var newdiv = document.createElement('div');
newdiv.id = "vppopup"
newdiv.name = "vppopup";
newdiv.style.width = "200px";
newdiv.style.height = "200px";
newdiv.style.border = "1px solid #999";
newdiv.style.backgroundColor = "#fff";
newdiv.style.zIndex = '50';
newdiv.style.position = "absolute";
newdiv.style.top = "10px";
newdiv.style.left = "10px";
newdiv.innerHTML = '<div style="height:25px;background:#fff;"></div>' +
'<div style="width:[w];height:[h]">'+
'<iframe id="frmeid" src="http://www.google.com" height="180px" width="200px" frameborder="0" style="background:#fff;" ></iframe>'+
'</div></div>';
document.body.appendChild(newdiv);
}
</script>
</head>
<body>
<input type="button" onclick="openme();" value="clickme" />
</body>
</html>[/HTML]

To resolve the issue i set the style.position, style.top, style.left after i append newdiv.

This has got me stumped as why it occured. Any thoughts?
Mar 27 '07 #1
1 1497
rtw
2
Correction here is the code


[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="javascript" type="text/javascript">
function openme()
{
var newdiv = document.createElement('div');
newdiv.id = "vppopup"
newdiv.name = "vppopup";
newdiv.style.width = "200px";
newdiv.style.height = "200px";
newdiv.style.border = "1px solid #999";
newdiv.style.backgroundColor = "#fff";
newdiv.style.zIndex = '50';
newdiv.style.position = "absolute";
newdiv.style.top = "10px";
newdiv.style.left = "10px";
newdiv.innerHTML = '<div style="height:25px;background:#fff;"></div>' +
'<div style="width:[w];height:[h]">'+
'<iframe id="frmeid" src="http://www.google.com" height="180px" width="200px" frameborder="0" style="background:#fff;" ></iframe>'+
'</div></div>';
document.body.appendChild(newdiv);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div style="float:left">
<div style="clear:both" />
<div style="width: 755px;">
<input type="button" onclick="openme();" value="clickme" />
</div>
</div>
</form>
</body>
</html>[/HTML]
Mar 27 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

25
by: kie | last post by:
hello, i have a table that creates and deletes rows dynamically using createElement, appendChild, removeChild. when i have added the required amount of rows and input my data, i would like to...
2
by: samuel.adam | last post by:
Hi all, I am coding an AJAX DHTML whatever application and I was fed up with always typing a lot of appendChild() functions. I created a custom one called append_children() and wanted to share...
2
by: Stewart | last post by:
Originally posted in comp.lang.javascript: Newsgroups: comp.lang.javascript From: "Stewart" Date: 23 Aug 2005 02:50:04 -0700 Local: Tues, Aug 23 2005 10:50 am Subject: FireFox, RemoveChild,...
4
by: matty | last post by:
Hello, here is an example of what is driving me totally crazy. This example will show that the first call to "doit()" will print 30 times the image with only one call to the server. Then I have...
3
by: ezmiller | last post by:
So I have some code that gets the body element of another frame and then tries to dynamically write a table. The code fails when, after creating the table, I try to append it to the document. I...
6
by: sonic | last post by:
Ok, i am sure everyone is sick of hearing about this. but i've checked about 10 different posts/sites about this issue, and they all say "use DOM" but i think there is more to be said. Perhaps I...
1
by: steveking4557 | last post by:
Hi I keep getting the following error message Faulting application explorer.exe, version 6.0.2900.2180, faulting module unknown, version 0.0.0.0, fault address 0x0240640e Which results in...
2
by: vsanjit | last post by:
Hi all, I've been trying to create a table dynamically upon the generation of en event using the appendChild method in Javascript. This seems to work fine in Firefox, but not in IE7. There's also...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.