Click here to Skip to main content
15,888,527 members
Home / Discussions / Web Development
   

Web Development

 
GeneralFill area Image Map Help me soon Pin
Member 12583735-Apr-08 17:53
Member 12583735-Apr-08 17:53 
GeneralPosition of table differs in different browsers [modified] Pin
ASPnoob4-Apr-08 21:33
ASPnoob4-Apr-08 21:33 
GeneralRe: Position of table differs in different browsers Pin
User 98854-Apr-08 23:16
User 98854-Apr-08 23:16 
QuestionBrowser icon in address bar? Pin
Revathij4-Apr-08 21:12
Revathij4-Apr-08 21:12 
GeneralRe: Browser icon in address bar? Pin
Johnny ²4-Apr-08 21:33
Johnny ²4-Apr-08 21:33 
QuestioninnerHTML - unknown runtime error. Pin
Kiran S. S.3-Apr-08 23:41
Kiran S. S.3-Apr-08 23:41 
GeneralRe: innerHTML - unknown runtime error. Pin
Shog94-Apr-08 5:45
sitebuilderShog94-Apr-08 5:45 
GeneralRe: innerHTML - unknown runtime error. Pin
User 98854-Apr-08 18:04
User 98854-Apr-08 18:04 
innerHTML does not work well with tables in IE. Firefox works well with it though. I am not sure whether innerHTML was intended to work with nested elements.

I found that out when I tried this:

table_ref = document.getElementById(table_name);
row_innerHTML = table_ref.rows[1].innerHTML;
new_row_ref = table_ref.insertRow(table_ref.rows.length);
new_row_ref.innerHTML = row_innerHTML;


The line in block letters produced a runtime error in IE.

So, I replaced it with:

// get the node for the table
table_ref = document.getElementById(table_name);

var table_row_ref = table_ref.rows[1];
new_row_ref = table_ref.insertRow(table_ref.rows.length);
cellcount = table_row_ref.cells.length;
for (cellindex = 0; cellindex < cellcount; ++cellindex)
{
    new_col_ref = table_row_ref.cells[cellindex].cloneNode(true);
    new_row_ref.appendChild(new_col_ref);
}


Instead of trying to use HTML code, you may also have to use insertRow(), insertColumn() etc. If you want to remove existing rows, use deleteRow() function.

modified 29-Aug-18 21:01pm.

GeneralRe: innerHTML - unknown runtime error. Pin
Soumini Ramakrishnan8-Apr-08 0:33
Soumini Ramakrishnan8-Apr-08 0:33 
QuestionShow dialog Upload in Firefox. Pin
ThienK273-Apr-08 20:26
ThienK273-Apr-08 20:26 
GeneralRe: Show dialog Upload in Firefox. Pin
Shog94-Apr-08 5:51
sitebuilderShog94-Apr-08 5:51 
GeneralCHARTING Tool for .NET project! Pin
sidbaruah3-Apr-08 20:11
sidbaruah3-Apr-08 20:11 
GeneralRe: CHARTING Tool for .NET project! Pin
Paddy Boyd4-Apr-08 0:50
Paddy Boyd4-Apr-08 0:50 
QuestionProblem in firing events - ASP.NET Ajax Pin
Leonades2-Apr-08 23:04
Leonades2-Apr-08 23:04 
GeneralIIS problem with my localhost Pin
Ahmad Adnan2-Apr-08 20:48
Ahmad Adnan2-Apr-08 20:48 
GeneralRe: IIS problem with my localhost Pin
Mark J. Miller3-Apr-08 5:00
Mark J. Miller3-Apr-08 5:00 
QuestionHow to display IFRAME in the proper place in different resolution? Pin
biswa472-Apr-08 19:35
biswa472-Apr-08 19:35 
Questioncreate collapse menu Pin
hochoint1-Apr-08 17:22
hochoint1-Apr-08 17:22 
GeneralRe: create collapse menu Pin
Bradml1-Apr-08 20:32
Bradml1-Apr-08 20:32 
Generalsetting document size Pin
Force Code1-Apr-08 6:08
Force Code1-Apr-08 6:08 
GeneralRe: setting document size Pin
led mike1-Apr-08 6:30
led mike1-Apr-08 6:30 
GeneralRe: setting document size Pin
Force Code1-Apr-08 7:23
Force Code1-Apr-08 7:23 
GeneralRe: setting document size Pin
led mike1-Apr-08 7:52
led mike1-Apr-08 7:52 
GeneralRe: setting document size Pin
Force Code1-Apr-08 8:12
Force Code1-Apr-08 8:12 
GeneralRe: setting document size Pin
Force Code1-Apr-08 8:29
Force Code1-Apr-08 8:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.