Access is denied
- by Lasse Gaardsholt
Hi,
I got this code for my sharepoint, but I get a Access is Denied, can anyone help me out here ?
<!-- Load and display list - iframe version -->
<!-- Questions and comments: [email protected] -->
<DIV id="ListPlaceholder"><IMG src="/_layouts/images/GEARS_AN.GIF"></DIV>
<!-- Paste the URL of the source list below: -->
<iframe id="SourceList" style="display:none;" src="xXxXxX" onload="DisplayThisList()"></iframe>
<script type="text/javascript">
function DisplayThisList()
{
var placeholder = document.getElementById("ListPlaceholder");
var displaylist = null;
var sourcelist = document.getElementById("SourceList");
try {
if(sourcelist.contentWindow)
// Internet Explorer
{
displaylist = sourcelist.contentWindow.document.getElementById("WebPartWPQ1") ;
}
}
catch(err)
{
alert(err.message);
}
displaylist.removeChild(displaylist.getElementsByTagName("table")[0]);
placeholder.innerHTML = displaylist.innerHTML;
}
</script>