function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nick.ax106Nick.ax106 

AJAX Toolkit list-view-table template - IE htmlfile unknown runtime error

I created an inline S-Control using the listview template it works great in firefox but errors in IE at the
document.getElementById("list-view-table").innerHTML = sb.toString(); line.

I have done some reading and it looks like IE doesn't implement this according to the standard.

Does anyone have a workaround for this?

Thanks,

Nick


sfdcfoxsfdcfox
Nick,

Without knowing more about the code, I've no idea how to help you out. Could you post the HTML fragment for the list view table you're updating?

~ sfdcfox ~
Nick.ax106Nick.ax106
Hi,

Code:
<body>

<div class="tableContainer">

<table dojoType="SortableTable" id="list-view-table"
headClass="fixedHeader" tbodyClass="scrollContent"
enableMultipleSelect="true" enableAlternateRows="true"
rowAlternateClass="alternateRow" cellpadding="0" cellspacing="0" border="0">
</table>
</div>

</body>

This was made with the Apexchange Ajax toolkit 1.02Which worked great, I whipped this up in about 45 minutes!
I didn't modify the line it is erroring on or the html above.

Thanks,

Nick

 



cheenathcheenath
It seems IE doesnt like setting htmlf to table-element.innerHTML.

Try setting the html to a div instead:

<div id="list-view-table"></div>


var str = "<table>" + sb.toString() + "</table>";
document.getElementById("list-view-table").innerHTML =  str;

HTHs,



 
Nick.ax106Nick.ax106
Great Thanks! 

Worked perfectly.

Nick