473,386 Members | 1,817 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,386 software developers and data experts.

createElement and IE on different machines

When I run the following code in FF 1.5 and 2, and IE 6 on my computer
the table and image appears. When I run it on the client's XP machine it
appears under FF 1.5 but under IE 6 the window is blank but IE appears
to be in some sort of loop (after about 10 seconds I get the 'not
responding' message in the title bar and have to close IE).

What is it that causes it to behave differently on different computers?

var t = document.createElement("TABLE");
t.id = "txt0";
t.style.width = "200px";
var b = document.createElement("TBODY");
var r = document.createElement("TR");
var d = document.createElement("TD");
c.style.height = "145px";

var myimg = document.createElement("IMG");
d.appendChild(myimg);
myimg.src = "images/mm.png";
r.appendChild(d);
b.appendChild(r);

var r = document.createElement("TR");
d = document.createElement("TD");
d.style.textAlign = "center";
d.style.paddingTop = "4px";
d.style.paddingLeft = "38px";
d.style.fontWeight = "bold";
var txt = document.createTextNode("item");
d.appendChild(txt);
r.appendChild(d);

b.appendChild(r);
t.appendChild(b);
document.body.appendChild(t);
Andrew Poulos
Oct 26 '06 #1
9 1771

when i chaged this line:
c.style.height = "145px";
to :
d.style.height = "145px";

it plays well under FF 2 & IE 6 on my XP machine.

Andrew Poulos wrote:
When I run the following code in FF 1.5 and 2, and IE 6 on my computer
the table and image appears. When I run it on the client's XP machine it
appears under FF 1.5 but under IE 6 the window is blank but IE appears
to be in some sort of loop (after about 10 seconds I get the 'not
responding' message in the title bar and have to close IE).

What is it that causes it to behave differently on different computers?

var t = document.createElement("TABLE");
t.id = "txt0";
t.style.width = "200px";
var b = document.createElement("TBODY");
var r = document.createElement("TR");
var d = document.createElement("TD");
c.style.height = "145px";

var myimg = document.createElement("IMG");
d.appendChild(myimg);
myimg.src = "images/mm.png";
r.appendChild(d);
b.appendChild(r);

var r = document.createElement("TR");
d = document.createElement("TD");
d.style.textAlign = "center";
d.style.paddingTop = "4px";
d.style.paddingLeft = "38px";
d.style.fontWeight = "bold";
var txt = document.createTextNode("item");
d.appendChild(txt);
r.appendChild(d);

b.appendChild(r);
t.appendChild(b);
document.body.appendChild(t);
Andrew Poulos
Oct 26 '06 #2
Andrew Poulos wrote:
When I run the following code in FF 1.5 and 2, and IE 6 on my computer
the table and image appears. When I run it on the client's XP machine it
appears under FF 1.5 but under IE 6 the window is blank but IE appears
to be in some sort of loop (after about 10 seconds I get the 'not
responding' message in the title bar and have to close IE).

What is it that causes it to behave differently on different computers?

var t = document.createElement("TABLE");
t.id = "txt0";
t.style.width = "200px";
var b = document.createElement("TBODY");
var r = document.createElement("TR");
var d = document.createElement("TD");
c.style.height = "145px";
What is c?

--
Ian Collins.
Oct 26 '06 #3
Fdream wrote:
when i chaged this line:
c.style.height = "145px";
to :
d.style.height = "145px";

it plays well under FF 2 & IE 6 on my XP machine.
Sorry, that was a typo on my part and not part of the original code that
works on my IE 6 XP machine but not on the client's.

Andrew Poulos
Andrew Poulos wrote:
>When I run the following code in FF 1.5 and 2, and IE 6 on my computer
the table and image appears. When I run it on the client's XP machine it
appears under FF 1.5 but under IE 6 the window is blank but IE appears
to be in some sort of loop (after about 10 seconds I get the 'not
responding' message in the title bar and have to close IE).

What is it that causes it to behave differently on different computers?

var t = document.createElement("TABLE");
t.id = "txt0";
t.style.width = "200px";
var b = document.createElement("TBODY");
var r = document.createElement("TR");
var d = document.createElement("TD");
c.style.height = "145px";

var myimg = document.createElement("IMG");
d.appendChild(myimg);
myimg.src = "images/mm.png";
r.appendChild(d);
b.appendChild(r);

var r = document.createElement("TR");
d = document.createElement("TD");
d.style.textAlign = "center";
d.style.paddingTop = "4px";
d.style.paddingLeft = "38px";
d.style.fontWeight = "bold";
var txt = document.createTextNode("item");
d.appendChild(txt);
r.appendChild(d);

b.appendChild(r);
t.appendChild(b);
document.body.appendChild(t);
Andrew Poulos
Oct 26 '06 #4
Ian Collins wrote:
Andrew Poulos wrote:
>When I run the following code in FF 1.5 and 2, and IE 6 on my computer
the table and image appears. When I run it on the client's XP machine it
appears under FF 1.5 but under IE 6 the window is blank but IE appears
to be in some sort of loop (after about 10 seconds I get the 'not
responding' message in the title bar and have to close IE).

What is it that causes it to behave differently on different computers?

var t = document.createElement("TABLE");
t.id = "txt0";
t.style.width = "200px";
var b = document.createElement("TBODY");
var r = document.createElement("TR");
var d = document.createElement("TD");
c.style.height = "145px";
What is c?
Sorry, it's a typo. It's not in the code that works on my machine and
not the client's.

Andrew Poulos
Oct 26 '06 #5
Andrew Poulos wrote:
Ian Collins wrote:
>Andrew Poulos wrote:
>>When I run the following code in FF 1.5 and 2, and IE 6 on my computer
the table and image appears. When I run it on the client's XP machine it
appears under FF 1.5 but under IE 6 the window is blank but IE appears
to be in some sort of loop (after about 10 seconds I get the 'not
responding' message in the title bar and have to close IE).

What is it that causes it to behave differently on different computers?

var t = document.createElement("TABLE");
t.id = "txt0";
t.style.width = "200px";
var b = document.createElement("TBODY");
var r = document.createElement("TR");
var d = document.createElement("TD");
c.style.height = "145px";
What is c?
Sorry, it's a typo. It's not in the code that works on my machine and
not the client's.
If you want help with code that doesn't work, post it. Copy and paste
rather than retype.
--
Ian Collins.
Oct 26 '06 #6
ASM
Andrew Poulos a écrit :
the original code that
works on my IE 6 XP machine but not on the client's.
that even works with my old IE Mac !
what kind of PC has your client ?

Perhaps he has not the image on his HD ?
Oct 26 '06 #7
ASM wrote:
Andrew Poulos a écrit :
>the original code that works on my IE 6 XP machine but not on the
client's.

that even works with my old IE Mac !
what kind of PC has your client ?

Perhaps he has not the image on his HD ?
The client has a two year old XP machine.

Thanks but I tested for the images by:
- doing an alert on the src
- checking the images are where they're supposed to be
- double-clicking the images to make sure they open

I copied the folder onto a USB stick and moving it to my computer and it
worked. I don't know what else to do to get this to work on the client's
computer :-(

Andrew Poulos
Oct 27 '06 #8
It sounds like a cache problem ; empty the cache/temporary internet
files (as well as the offline files) and it should work.
Andrew Poulos wrote:
ASM wrote:
Andrew Poulos a écrit :
the original code that works on my IE 6 XP machine but not on the
client's.
that even works with my old IE Mac !
what kind of PC has your client ?

Perhaps he has not the image on his HD ?

The client has a two year old XP machine.

Thanks but I tested for the images by:
- doing an alert on the src
- checking the images are where they're supposed to be
- double-clicking the images to make sure they open

I copied the folder onto a USB stick and moving it to my computer and it
worked. I don't know what else to do to get this to work on the client's
computer :-(

Andrew Poulos
Oct 27 '06 #9
ASM
Yanick a écrit :
It sounds like a cache problem ; empty the cache/temporary internet
files (as well as the offline files) and it should work.
can try to reload the file (with button in tool bar)

or change the name of the file to open
Oct 27 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

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: kie | last post by:
hello, when i create elements and want to assign events to them, i have realised that if the function assigned to that element has no parameters, then the parent node values can be attained. ...
2
by: Dave | last post by:
I have a page which uses JavaScript to create form elements using document.createElement('input'), etc.. Both Firefox and IE have no problem accomplishing this and when the form is submitted all...
1
by: RM | last post by:
I am using DataSet's .ReadXml() method to parse an XML file that has an inline schema and Im getting "different" results on various machines using the same myDataSet.ReadXml("myExample.xml"). ...
3
by: Mal Reeve | last post by:
Hello, I have a fairly simple database. NOT a FE/BE situation. Just 1 mdb residing on a server that is accessed by different machines. On 1 machine a query (and the report based on it) work...
3
by: Arpan | last post by:
Using DOM, this is how I am appending data to an existing XML file which is named AppendData.xml (the root element of AppendData.xml is <ProductList>): <script runat="server"> Sub...
10
by: webEater | last post by:
Hello, I try the following in Firefox and other modern browsers: window.addEventListener('load', function() { document.title = CSS.getClass('fontSize'); var div = document.createElement('div');...
3
by: acecraig100 | last post by:
I am fairly new to Javascript. I have a form that users fill out to enter an animal to exhibit at a fair. Because we have no way of knowing, how many animals a user may enter, I created a table...
11
by: dhtml | last post by:
(originally mis-posted on m.p.s.jscript...) I've just closed all windows in Firefox and its using 244MB of memory. I have no idea why. I had GMail open, a page from unicode, the CLJ FAQ. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.