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

Table DOM in Mozilla Vs. IE.

dmjpro
2,476 2GB
Have a look at my code snippet ...
Expand|Select|Wrap|Line Numbers
  1. function add_row(){
  2.  var tr = some_reference;
  3.  document.getElementById('tab_id').appendChild(tr);
  4. }
  5.  
Expand|Select|Wrap|Line Numbers
  1. <table id=tab_id>
  2. <tr id=tr_id>....</tr>
  3. .....
  4. </table>
  5.  
It works in Mozilla but not in IE.
If i do
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('tr_id').parentNode.appendChild(tr);
,
now it works in both :-)
Could you explain why this happens ..experts ?
Aug 27 '08 #1
4 1311
acoder
16,027 Expert Mod 8TB
In IE, you need to append to the tbody rather than the table. See this part-article.
Aug 27 '08 #2
dmjpro
2,476 2GB
In IE, you need to append to the tbody rather than the table. See this part-article.
Yeah i know that's why i knocked the experts ;)
One more thing now a days are you busy ? I thrown a discussion over the core topics ..functions and objects, you didn't take part in that
i expected you to throw something ...... ;)
Aug 27 '08 #3
acoder
16,027 Expert Mod 8TB
I did see that thread, but didn't participate in it. Some of the concepts I needed to figure out for myself before I could contribute, but I think it's resolved now.
Aug 28 '08 #4
dmjpro
2,476 2GB
I did see that thread, but didn't participate in it. Some of the concepts I needed to figure out for myself before I could contribute, but I think it's resolved now.
Oh ...Sure man.
yeah it's now got figured out .....for myself ...
really thanks to Bytes.com experts team from here i came 2 know lot of details ..Java as well as JavaScript ;)

Basically i am also interested in C and C++ which are my heart ;) ...but i could not find out time to take part in those discussions ....
A lot of pressure in my work ...;(
Aug 28 '08 #5

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

Similar topics

1
by: nick | last post by:
I found that the width attribute in Mozilla is different in IE. In Mozilla, if the content in dropdownlist's list or table <td> cell is wider than the width attribute, Mozilla just enlarge the...
10
by: john T | last post by:
Is there anyway to vertically center a html table using css in such a way it does not alter the html table. When I tryied it just screws up.
4
by: David Ross | last post by:
In my <http://www.rossde.com/inflation.html>, I have a small table in the middle of the page. This page is composed without a DOCTYPE statement at the beginning. The table borders appear to my...
2
by: reinier | last post by:
If got a little problem, i've made a webpage that is working fine in IE, but in Mozilla i've got a little problem. When i go with my mouse over a input box or some kind of form object. The table...
31
by: Arthur Shapiro | last post by:
I'm the webmaster for a recreational organization. As part of one page of the site, I have an HTML "Calendar at a Glance" of the organization's events for the month. It's a simple table of a...
3
by: J. Baute | last post by:
hi, I'm trying to write some javascript code that will swap two rows in a table, in an attempt to provide users with an easy and visual way to manually change the order of the listed items in a...
0
by: javaguy | last post by:
I have a table I hide show/hide through a pair of divs. The show/hide part works fine in both Mozilla and MSIE. When switching between the hide and show versions the Mozilla browser keeps them in...
1
by: patelbrijeshn | last post by:
Hi , I want to display a huge table. So I want to make the table header visible on the screen even as the user scrolls the window. I am using div tag to create the floating table header. Here is...
7
by: Johnny | last post by:
In MSIE table captions are displayed at the same size as content. But in Firefox the text displays at browser default, It also exceeds the width of the table and the excess is hidden if the table...
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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,...

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.