Access is denied
Posted
by Lasse Gaardsholt
on Stack Overflow
See other posts from Stack Overflow
or by Lasse Gaardsholt
Published on 2010-06-10T11:00:19Z
Indexed on
2010/06/10
11:12 UTC
Read the original article
Hit count: 340
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>
© Stack Overflow or respective owner