Javascript 将excel文件链接到iFrame

Javascript 将excel文件链接到iFrame,javascript,jquery,excel,sharepoint,iframe,Javascript,Jquery,Excel,Sharepoint,Iframe,正在尝试使用iFrame从SharePoint加载链接,但我似乎无法在那里加载它 <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.0.min.js"></script> <script type="text/javascript"> function loadIframe(url) { document.getElementByName('iframe').src=url;

正在尝试使用iFrame从SharePoint加载链接,但我似乎无法在那里加载它

<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
function loadIframe(url) {
    document.getElementByName('iframe').src=url;
}
</script>
<script type="text/javascript">

$(document).ready(function(){
var myList = $(".root.ms-core-listMenu-root.static");

var dealsoldcurrentmonth = '<li class="static"><a tabindex="0" class="static menu-item ms-core-listMenu-item ms-displayInline ms-navedit-linkNode" href="" id="dealsoldcurrentmonth"><span class="additional-background ms-navedit-flyoutArrow"><span class="menu-item-text">Deals Sold - Current Month</span></span></a></li>'
;myList.prepend(dealsoldcurrentmonth);
$("#dealsoldcurrentmonth").onclick(function() {loadIframe('http://c1w00168.itcs.hp.com/worldwide/dealuniverseww/_layouts/15/xlviewer.aspx?id=/worldwide/dealuniverseww/Shared%20Documents/Deal%20Universe%20WW%20-%20Deals%20Sold%20(Current%20Month).xlsx')});
$("#DeltaPlaceHolderPageTitleInTitleArea").hide();
});
</script>

函数loadIframe(url){
document.getElementByName('iframe').src=url;
}
$(文档).ready(函数(){
var myList=$(“.root.ms core listMenu root.static”);
var dealsoldcurrentmonth='
  • ' ;myList.prepend(dealsoldcurrentmonth); $(“#dealsoldcurrentmonth”).onclick(function(){loadIframe('http://c1w00168.itcs.hp.com/worldwide/dealuniverseww/_layouts/15/xlviewer.aspx?id=/worldwide/dealuniverseww/Shared%20Documents/Deal%20Universe%20WW%20-%20Deals%20Sold%20(当前为%20个月).xlsx')}; $(“#DeltaPlaceHolderPageTitleInTitleArea”).hide(); });
    那么会发生什么,而不是它工作呢?帧中的当前数据不会改变。重定向链接不起作用@蒂姆·威廉姆斯