Dear Friends
I have the following JavaScript in HTM Web Resource :
function action()
{
//var parentActivityId = parent.Xrm.Page.data.entity.attributes.get('activityid');
var parentActivityId = '8f39813a-2850-e911-a2b6-005056986a49';
alert("working" + parentActivityId);
var countTables=$('#Tab').find('table').length;
//alert("Numbers of Table are" + countTables);
var table_ID="Tab";
var table_No=1;
//var countCheckedRow=$('#Tab1').find("input[type='checkbox']:checked").length;
//alert("Checked Rows are" + countCheckedRow);
var table_ID=table_ID+table_No;
alert("working" + table_ID);
var grid = document.getElementById("Tab1");
//alert(document.getElementById("Tab1").rows[0].innerHTML);
alert(parent.document.getElementById("Tab1").rows[0].innerHTML);
//Reference the CheckBoxes in Table.
var checkBoxes = grid.getElementsByTagName("input");
var topicID = "";
alert("check boxes - "+ checkBoxes.length);
for (var i = 0; i < checkBoxes.length; i++) {
if (checkBoxes[i].checked) {
alert("Checked");
alert(document.getElementById("Tab1").rows[i].innerHTML);
// var row = checkBoxes[i].parentNode.parentNode;
//topicID = row.cells[1].innerHTML;
//alert(" " + topicID);
}
}
in the above function both of following statement not working:
alert(document.getElementById("Tab1").rows[0].innerHTML);
alert(parent.document.getElementById("Tab1").rows[0].innerHTML);
*This post is locked for comments
I have the same question (0)