从应用程序所在的页面获取应用程序的价值 [英] Get value in the app from the page where the app is placed

查看:58
本文介绍了从应用程序所在的页面获取应用程序的价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个部署在IIS服务器上的sharepoint提供商托管应用程序。应用程序正常运行并添加到页面中。

We have a sharepoint provider hosted app that is deployed on a IIS server. The app is running fine and added to the page.

现在我们在页面上有一个div有一些值,我们想在应用程序中读取该值并在应用程序中显示。

Now we have a div on the page which has some value and we want to read that value in app and show in the app.

我们还尝试将值存储在localstorage中然后读取它但它也没有用。

We also tried to store the value in localstorage and then read it but it also didn't worked.

有人可以帮忙吗?

推荐答案

如果div页面位于Provider托管应用程序中,然后您可以使用Jquery获取值,然后存储到SharePoint列表中。

If the div page is in the Provider hosted app, then you can get the value using Jquery and then store into a SharePoint list.

关于使用Jquery获取div值,请参阅:

About get div value using Jquery, please refer:

使用jquery获取div内容的值

将数据写入提供商托管应用中的列表:

Write data to a list in Provider hosted app:

将SharePoint写入操作添加到p rovider托管的加载项

谢谢

最好的问候


这篇关于从应用程序所在的页面获取应用程序的价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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