我得到了這個代碼爲我的sharepoint,但我得到一個訪問被拒絕,任何人都可以幫我在這裏?訪問被拒絕
<!-- 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>
您能更具體地瞭解錯誤嗎?格式化代碼將有很大幫助! – Stefan 2010-06-10 11:04:59
當我在SharePoint中遇到訪問被拒絕的錯誤時,我發現Fiddler在排除錯誤方面是非常寶貴的。鑑於正在加載的CSS資源的數量,它可以快速幫助識別導致錯誤的http請求。 http://www.fiddler2.com/fiddler2/ – 2010-06-10 11:18:29