My HTML and code:
function ScrollableTable (tableEl, tableHeight, tableWidth) { tableHeight = tableHeight * screen.width * 0.01; this.initIEengine = function () { this.containerEl.style.overflowY = 'auto'; if (this.tableEl.parentElement.clientHeight - this.tableEl.offsetHeight = (this.newHeight - (headHeight + footHeight))) { this.tbody.style.overflow = '-moz-scrollbars-vertical'; /* for (x=0; x -1; if(isChrome){ this.thead.style.display ="inline-block"; this.tfoot.style.display ="inline-block"; this.tbody.style.display ="inline-block"; this.tbody.style.overflow ="auto"; var count = trs[0].getElementsByTagName('th').length || trs[0].getElementsByTagName('td').length; var colArray = new Array(count); /*Thead*/ trs = this.tableEl.getElementsByTagName('tr'); for(var i=0; i = colArray[i]){ colArray[i]= newWid; } } } /*Thead */ trs = this.thead.getElementsByTagName('tr'); for(var i=0; i Name Products Start date End Date Total Enrollments Students Enrolled Status Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active Deals x USMLE step 1 1 Jul 10 1 Jul 11 200 145 Active var t = new ScrollableTable(document.getElementById('dataTable'), 12); /* table height set here */The code above if i paste as it is in html file and run.. it works in all the browser.. Im phasing problem when i add DTD in html file
the error which Im getting is Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/ 4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8) Timestamp: Mon, 25 Oct 2010 10:38:59 UTC
Message: Not implemented
Line: 17 Char: 5 Code: 0 URI: file:///C:/Users/arun.nayak/WebApplication1/web/KAPLAN/tablescroll.js
Can any one help me with this...