473,804 Members | 3,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.create Element("TABLE" );
t.id = "txt0";
t.style.width = "200px";
var b = document.create Element("TBODY" );
var r = document.create Element("TR");
var d = document.create Element("TD");
c.style.height = "145px";

var myimg = document.create Element("IMG");
d.appendChild(m yimg);
myimg.src = "images/mm.png";
r.appendChild(d );
b.appendChild(r );

var r = document.create Element("TR");
d = document.create Element("TD");
d.style.textAli gn = "center";
d.style.padding Top = "4px";
d.style.padding Left = "38px";
d.style.fontWei ght = "bold";
var txt = document.create TextNode("item" );
d.appendChild(t xt);
r.appendChild(d );

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

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.create Element("TABLE" );
t.id = "txt0";
t.style.width = "200px";
var b = document.create Element("TBODY" );
var r = document.create Element("TR");
var d = document.create Element("TD");
c.style.height = "145px";

var myimg = document.create Element("IMG");
d.appendChild(m yimg);
myimg.src = "images/mm.png";
r.appendChild(d );
b.appendChild(r );

var r = document.create Element("TR");
d = document.create Element("TD");
d.style.textAli gn = "center";
d.style.padding Top = "4px";
d.style.padding Left = "38px";
d.style.fontWei ght = "bold";
var txt = document.create TextNode("item" );
d.appendChild(t xt);
r.appendChild(d );

b.appendChild(r );
t.appendChild(b );
document.body.a ppendChild(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.create Element("TABLE" );
t.id = "txt0";
t.style.width = "200px";
var b = document.create Element("TBODY" );
var r = document.create Element("TR");
var d = document.create Element("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.create Element("TABLE" );
t.id = "txt0";
t.style.widt h = "200px";
var b = document.create Element("TBODY" );
var r = document.create Element("TR");
var d = document.create Element("TD");
c.style.heig ht = "145px";

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

var r = document.create Element("TR");
d = document.create Element("TD");
d.style.textAl ign = "center";
d.style.paddin gTop = "4px";
d.style.paddin gLeft = "38px";
d.style.fontWe ight = "bold";
var txt = document.create TextNode("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.create Element("TABLE" );
t.id = "txt0";
t.style.widt h = "200px";
var b = document.create Element("TBODY" );
var r = document.create Element("TR");
var d = document.create Element("TD");
c.style.heig ht = "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.create Element("TABLE" );
t.id = "txt0";
t.style.wid th = "200px";
var b = document.create Element("TBODY" );
var r = document.create Element("TR");
var d = document.create Element("TD");
c.style.heigh t = "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
5200
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 calculate the totals in each row. when i try however, i receive the error: "Error: 'elements' is null or not an object"
2
42873
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. e.g. aTextBox=document.createElement('input'); aTextBox.onchange=calculateOneRow2;
2
2693
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 the information is passed correctly. I am now trying to validate the form using JavaScript when the page is submitted. Firefox has no problems with this but IE returns 'document.form1.*THE FORM FIELD*.value is null or not an object' for the...
1
1772
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"). Out of 5 test machines, my results are as follows. 1 Windows 2000 Server and 2 Windows XP Professional PC's that parses the XML, builds 2 tables with appropriate format columns (string, int, etc) and populates the tables with rows of data as...
3
1217
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 just fine, On the other machine (opening the exact same file) the query does not make a simple calculated field....which is simply concating some text fields ( & "," && " - "&)
3
2201
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 Page_Load(ByVal obj As Object, ByVal ea As EventArgs) Dim xmlDoc As New XmlDocument() xmlDoc.Load(Server.MapPath("AppendData.xml")) Dim eltProducts1 As XmlElement = xmlDoc.CreateElement("Products")
10
4282
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'); document.getElementsByTagName('body').appendChild(div); alert(div); alert(div.style) }, true);
3
4014
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 with a createElement function to add additional entries. The table has the first row of input text boxes already in it. You have to click a button to add another row. That seems to be working fine. How do I pull the information from the input boxes...
11
4241
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. I've noticed that createElement leaks. It's obvious with form controls because the form keeps the control name as a property. Example:
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10578
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10321
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9152
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5522
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.