I want to add eclipseies after some letter in table view , I am creating table at run time .can you suggest me.In
one columns i want not more than 10 char so i need eclipseies , i share my code.
var tbl = document.getElementById('mainBodyDivContent');
//tbl.innerHTML = "";
for (var i = 0; i <r.length-1; i++) {
var tr = document.createElement('tr');
tr.setAttribute('id', i);
(function(id) {
tr.onclick = function() {
if(myScroll.isScrolling) {return;}
//window.clearTimeout(myTimedCall);
//window.clearInterval(myTimedCall);
window.location.href="route.html?RID="+r[id].RID+"&StationCode="+stationCode;
};
}(i));
var td1 = document.createElement('td');
td1.setAttribute('width', '10%');
td1.setAttribute("align","center");
td1.innerHTML = r[i].platformNo;;
var td2 = document.createElement('td');
td2.setAttribute('width', '40%');
td2.setAttribute("align","center");
td2.innerHTML = r[i].schDepart + " - " + r[i].expDepart;;
var td3 = document.createElement('td');
td3.setAttribute('width', '40%');
td3.setAttribute("align","center");
*************************i want to add eclipseies if stationName is more than 10 char is show dot.....*********
td3.innerHTML = r[i].stationName + " (" + r[i].crsCode + ")" ;;