不同页面之间的通信。 [英] communicate between different pages.

查看:80
本文介绍了不同页面之间的通信。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用javascript为sharePoint 2013(Sharepoint托管)开发应用程序。我有2个页面叫做Mainpage和Secondrypages,还有一个app.js.

I m developing an app for sharePoint 2013 (Sharepoint hosted) using javascript. I have 2 pages called Mainpage and Secondrypages , also one app.js.

现在我想做的是在Mainpage和secondryPages上做一些工作。我可以根据需要在这些页面之间导航。但问题是我不知道如何在二次试验中完成我的工作。例如 - 使用Mainpage我可以将记录添加到Sharepoint列表,并在Mainpage上的html表中显示sharepoint
列表数据。现在我要做的是,一旦用户从表中选择一条记录,我想导航到其中一个二页,并在表格上显示有关所选记录的更多详细信息。我想编辑并使用secondypage为
特定选定记录添加一些额外的值。

Now I want to do is do some work on Mainpage and secondryPages. I can navigate between these pages as I want . But the issue is I dont know how can I do my work on secondrypages. eg- using Mainpage I can add records to Sharepoint list, and display sharepoint list data in a html table on the Mainpage. Now what I want to do is once user select a record from table i want to navigate to one of the secondrypages and display more details about selected record on the table. I want to edit and add some extra value to that particular selected record using secondypage.

所以有人可以告诉我如何从app.js访问其他第二类或我是否必须创建更多app.js以及如何在不同页面之间进行通信。请帮助我即时通讯Javascript。有人可以帮助您提供示例代码或
任何推荐的网站来学习。

so can someone please tell me how can I access other secondypages from my app.js or do I have to create more app.js and how can I communicate between different pages. Please help me im really new to Javascript. Can someone please help with sample codes or any recommended site to learn.

谢谢。

dn weerasinghe

d.n weerasinghe

推荐答案

您好,

您可以使用窗口.open javascript functiona并传递二次页面名称url驻留在同一个应用程序项目中。

You can use window.open javascript functiona and pass secondry page name url residing in same app project.


这篇关于不同页面之间的通信。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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