Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/430.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Sharepoint 2010沙盒解决方案文件宿主-下载时显示结果_Javascript_Jquery_Sharepoint 2010_Custom Action - Fatal编程技术网

Javascript Sharepoint 2010沙盒解决方案文件宿主-下载时显示结果

Javascript Sharepoint 2010沙盒解决方案文件宿主-下载时显示结果,javascript,jquery,sharepoint-2010,custom-action,Javascript,Jquery,Sharepoint 2010,Custom Action,我将一些文件放在Sharepoint 2010沙盒解决方案的模块中。 我想显示一个html文件。为此,我在任务栏上添加了一个自定义操作按钮 我正在为此执行一些javascript: var child = window.open(); child.location = '{SiteUrl}/TaskBoardContent/LanesDashboard.html?SiteUrl={SiteUrl}&ListUrl={ListUrlDir}&isDlg=true';

我将一些文件放在Sharepoint 2010沙盒解决方案的模块中。 我想显示一个html文件。为此,我在任务栏上添加了一个自定义操作按钮

我正在为此执行一些javascript:

var child = window.open();
child.location = '{SiteUrl}/TaskBoardContent/LanesDashboard.html?SiteUrl={SiteUrl}&ListUrl={ListUrlDir}&isDlg=true';
child.focus();

不幸的是,会打开一个新选项卡,但IE9首先下载给定文件。我认为SP发送的服务器端头上会出现问题。对此有什么想法吗?

您应该能够在webapplication scope上配置它。我不认为只有一个文件/站点可以覆盖这种行为。或者,您可以尝试在模块中添加简单的aspx页面,而不需要任何代码

查看此链接: