Code: Select all
echo("<td><a href='frmKaraokeUpdateSongGroup.php?RecKey=$fldKF_Song_LU&fldKF_Key=$fldKF_Key'>$fldKF_Group</td>\n");
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.
Code: Select all
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;
}