IE11中的jquery问题 [英] problem with jquery in IE11

查看:292
本文介绍了IE11中的jquery问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在html表单web部分中有jquery 从另一个站点打开文档库视图。下一个代码在Chrome中工作但在IE 11中没有。为什么?

i have jquery in html form web part  that open document library view from another site. the next code is working in Chrome but in IE 11 not. why?

<script type="text/javascript" src="http://mydomain.com/SiteAssets/jquery-1.9.1.min.js"></script>

<!-- Load and display list - jQuery version -->
<!-- Questions and comments: 

Christophe@PathToSharePoint.com -->
<DIV id="ListPlaceholder1"><IMG src="/_layouts/images/GEARS_AN.GIF"></DIV>

<script type="text/javascript">
// Paste the URL of the source list below:
var SelectedView = "http://mydomain.com/sektor2/2019/2019/Forms/Revizorski_izvestaj.aspx";
$("#ListPlaceholder1").load(SelectedView+" #WebPartWPQ2 .ms-listviewtable",function() {
$("#ListPlaceholder1").removeAttr("id");
$("#ListPlaceholder1").removeAttr("onclick");
//$("#ListPlaceholder *").removeAttr("onfocus");
//$("#ListPlaceholder *").removeAttr("onmouseover");
});
</script>






推荐答案

在IE中测试,在另一个网站页面中加载文档库视图下面的代码片段:

Tested inside IE to load document library view in another site page with code snippet below:

<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<DIV id="ListPlaceholder1"></DIV>
<script type="text/javascript">
var SelectedView = "http://sp10/Shared%20Documents/Forms/AllItems.aspx";


(&#"listPlaceholder1")。load(SelectedView +") ;#WebPartWPQ2 .ms-listviewtable",function(){
("#ListPlaceholder1").load(SelectedView+"#WebPartWPQ2 .ms-listviewtable" ,function() {


(&#"ListPlaceholder1")。removeAttr(" id");
("#ListPlaceholder1").removeAttr("id");


这篇关于IE11中的jquery问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆