简体   繁体   English

sharepoint Web应用程序和jQuery组合

[英]sharepoint web app and jquery combination

Within SharePoint... 在SharePoint中...

I can create web parts which are ASP.NET web apps, which allows me to get information about the current user (groups they are in, username, etc.). 我可以创建Web部件,它们是ASP.NET Web应用程序,它使我能够获取有关当前用户(他们所在的组,用户名等)的信息。

I can create web parts which allow me to manipulate fields on SharePoint forms. 我可以创建Web部件,以允许我操作SharePoint表单上的字段。

But I have not found a way to be able to combine the two things. 但是我还没有找到一种将这两件事结合起来的方法。

I can't access the content of one web part from the other kind (WebApp Page Viewer & Jquery Content Editor Web Part being the two kinds). 我无法访问另一种Web部件的内容(WebApp Page Viewer和Jquery Content Editor Web部件是两种)。

What I would like to be able to do is create a web service and then consume it with a jquery ajax call, but I keep getting a js "Access Denied" message. 我想做的是创建一个Web服务,然后通过jquery ajax调用使用它,但是我一直收到js“ Access Denied”消息。

Any help? 有什么帮助吗? Any ideas, anyone? 有什么想法吗?

Try moving your .js , xslt ...type files into a location inside SharePoint, eg temporarily put them in the style library. 尝试将.js,xslt ... type文件移动到SharePoint内的某个位置,例如,将它们临时放在样式库中。 Reference to them in the location inside SharePoint, and see if that works... 在SharePoint内的位置引用它们,然后查看是否可行...

The problem may that you're trying to load a resource off the file system from a web part which some cases gives an 'access denied' error. 问题可能是您正试图从Web部件上的文件系统中加载资源,在某些情况下会出现“拒绝访问”错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM