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

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
LuzzyRaabu
Forum Newbie
Posts: 6
Joined: Wed Jun 27, 2007 2:49 am

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

Post 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.
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post 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.
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

Post by thiscatis »

I think he's asking about FF, not IE
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

document.all does not exist in any browser outside of those which derive from IE.
LuzzyRaabu
Forum Newbie
Posts: 6
Joined: Wed Jun 27, 2007 2:49 am

related to javascript in php in Mac.

Post 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]
Post Reply