Hi, I have php code below that is creating the html entry for the 2nd column of a table.
echo("<td><a href='frmKaraokeUpdateSongGroup.php?RecKey=$fldKF_Song_LU&fldKF_Key=$fldKF_Key'>$fldKF_Group</td>\n");
I am trying to get at the $fldKF_Group using javascript. I know how to find the cell and row using the command below but I can't figure out the part at the end where I mark it in bold.
var GroupCurr = document.getElementById("Table_KaraokeSchedule").rows[RowCnt].cells[1].can't figure out what to put here
I know how to do it if there is no href in the table cell (using .innerhtml). I know how to do it if there is an input textbox in the table cell. I have some example code to find the value of the href. In the past I have used .innerhtml and used the left string or right string commands (as shown below) to get at the data but I prefer not to do that. Google searches with parts of the command are not finding anything.
Any help would be appreciated.
Thanks,
John
So this is my sneaky way around not having the proper solution which does get the value.
function funcCallShellToBIAB(fldKF_Key,fldMM_Key,RowCnt) {
var GroupCurr = document.getElementById("Table_KaraokeSchedule").rows[RowCnt].cells[1].innerHTML;
GroupCurr = Right(GroupCurr, 5);
GroupCurr = Left(GroupCurr, 1);
var GroupNext = document.getElementById("Table_KaraokeSchedule").rows[RowCnt + 1].cells[1].innerHTML;
GroupNext = Right(GroupNext, 5);
GroupNext = Left(GroupNext, 1);
var mytest = 0;
var mytest2 = 0;
//window.location='frmKaraoke_ShellToBIAB.php?RecKey=' + fldKF_Key + "&fldMM_Key=" + fldMM_Key + "&GroupCurr=" + GroupCurr + "&GroupNext=" + GroupNext;
}