View Single Post
  #1 (permalink)  
Old July 12th, 2007, 05:17 AM
jasmine2 jasmine2 is offline
Registered User
 
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default javascript with PHP in MAC's Firefox

// Related to Javascript in php in Mac's Firefox.


var tbodyElem = document.getElementById("'.$tmpNodeId.'").rowIndex ;alert(tbodyElem);trElem = tableBody.insertRow(tbodyElem+1);trElem.name='.$ma inLevelNo.';trElem.value='.$subLevelNo.';trElem.id ="'.$tmplformid.'";tdElem=trElem.insertCell();tdEl em.value=0;tdElem.style.textIndent='.$indents.';td Elem.id="col_'.$tmplformid.'";tdElem.className="'. $classStyle.'";';


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. still that problem existing. can you check this code?
i heard that insertRow() wont work in MAC OS.
This coding is perfectly running in Window IE.