Page 1 of 1

insertrow() will work in Mac's Firefox or not?

Posted: Wed Jul 11, 2007 9:35 am
by LuzzyRaabu
myNewRow = document.all.myTable.insertRow()

this is working in Window's IE. but it is not working in MAC's FireFox.

Can [s]u[/s] you help me to resolve this?
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.

Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.

Posted: Wed Jul 11, 2007 2:15 pm
by miro_igov
"Unfortunately, scripting the addition of table rows and cells in IE for Macintosh (including version 5.1) is very broken, yielding elephantine row and cell dimensions."

Quoted O'Reilly pocket javascript reference.

Posted: Wed Jul 11, 2007 2:58 pm
by thiscatis
I think he's asking about FF, not IE

Posted: Wed Jul 11, 2007 3:26 pm
by feyd
document.all does not exist in any browser outside of those which derive from IE.

related to javascript in php in Mac.

Posted: Thu Jul 12, 2007 4:54 am
by LuzzyRaabu
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


[syntax="javascript"]var tbodyElem = document.getElementById("'.$tmpNodeId.'").rowIndex;alert(tbodyElem);trElem = tableBody.insertRow(tbodyElem+1);trElem.name='.$mainLevelNo.';trElem.value='.$subLevelNo.';trElem.id ="'.$tmplformid.'";tdElem=trElem.insertCell();tdElem.value=0;tdElem.style.textIndent='.$indents.';td Elem.id="col_'.$tmplformid.'";tdElem.className="'.$classStyle.'";';
[/syntax]

Code: Select all

print "<table style= 'position:relative;top:50' cellspacing=3 cellpadding=3 width=100%>";
print "<tbody id=tableBody >";
i am just sending, few sample coding. i found problem near insertRow(). i changed the coding, which you told. still that problem existing. can you check this code?


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]