473,386 Members | 1,630 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.

problem with createTextNode

77
Hello..i have this script

Expand|Select|Wrap|Line Numbers
  1. var span = document.createElement('span');
  2. var theData = document.createTextNode('Location Code');
  3. span.appendChild(theData);
  4. label.appendChild(span);
  5.  
the text node is works well in Firefox, but in IE, it doesn't show up...

any idea please??thanks
Jul 17 '08 #1
4 1485
gits
5,390 Expert Mod 4TB
i'm not aware of such a problem with IE - i think it should work ... could you post how you refer the label-node where the span should be appended? to check whether the reference is correct or not you could just try to set the innerHTML of the label-node ... when something appears the reference is correct, and we should have a look at it in more detail ...

kind regards
Jul 17 '08 #2
maminx
77
i'm not aware of such a problem with IE - i think it should work ... could you post how you refer the label-node where the span should be appended? to check whether the reference is correct or not you could just try to set the innerHTML of the label-node ... when something appears the reference is correct, and we should have a look at it in more detail ...

kind regards

but how??i'm a newbie in javascript, can you give me an example??

thanks
Jul 18 '08 #3
dmjpro
2,476 2GB
How you could get the label node?
Jul 18 '08 #4
acoder
16,027 Expert Mod 8TB
but how??i'm a newbie in javascript, can you give me an example??
You forgot the first part where he asked for the rest of the code.
Jul 18 '08 #5

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

Similar topics

1
by: Christian Schmidbauer | last post by:
Hello! I prepare my XML document like this way: ------------------------------------------------------- PrintWriter writer; Document domDocument; Element domElement; // Root tag
3
by: AndyG | last post by:
I'm trying to mess about with a table using javascript. I'm deleting the current row then adding a new row and adding a couple of columns. I then want to add either a style attribute and add a...
24
by: Robi | last post by:
I have the following problem: I populate a page with a specific amount of <div id="MyTest"> containers inside another <div> container. for (i=0; i < MyString.length; i++) document.write('<div...
2
by: ezmiller | last post by:
Hi, I am trying to learn how to dynamically write HTML using the W3C DOM. But I am having trouble with the code. It doesn't seem to be doing what I expect it to and I am not sure why. Let me...
2
by: ezmiller | last post by:
Hi, I have some code (which I will paste in below) that writes out some HTML dynamically using the W3C DOM...the last part of the code write out a simple table. MY problem is that the table is...
13
by: db | last post by:
Hi@all, I am always thinking that there is no problems that I can not solve. But now i changed my idea...... And I have posted it in javascript group, since i think both javascript and php...
1
by: funkymp | last post by:
im trying to create a user interface that allows a user to upload there own mixes which are then added to a itunes podcast. basically, my problem is. when it updates the podcast.xml file, i need...
1
by: apog | last post by:
Hello, everyone! I have a javascript running perfectly with IE, but nothing seems to happend if I use firefox... anyone knows why? Here is the script: function add_div_field () { var ni =...
4
by: Dan Andrews | last post by:
Hello, I was wondering what is the correct way to handle special characters via javascript and the DOM. I would like to avoid document.write and innerHTML. What I am doing is dynamically...
5
by: Juan R. =?iso-8859-1?q?Gonz=E1lez-=C1lvarez?= | last post by:
I want to substitute "\(" by "(" i have tried content = content.replace(/\\\(/g, "("); content = content.replace(/\\\(/g, unescape("%26") + "#40;"); content = content.replace(/\\\(/g,...
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: 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...
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
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...

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.