在 PeopleSoft iScript 中实现超时 Javascript

发布于 2024-09-26 21:52:42 字数 184 浏览 0 评论 0原文

当用户即将注销时,常规 PeopleSoft 组件会自动生成超时弹出窗口。然而 iScript 则不然。

我打算对 PeopleSoft 自动为组件生成的 javascript 进行逆向工程,以便利用现有代码。

在我这样做之前,我想我应该检查一下是否有其他人这样做过,以及是否有任何陷阱、提示或技巧。或者也许有更好的方法?

Regular PeopleSoft components automatically generate a timeout popup window when a user is about to be logged out. iScripts, however, do not.

I was about to reverse-engineer the javascript that PeopleSoft automatically generates for components in order to leverage existing code.

Before I do, I thought I'd check if anyone else has done this, and if there are any gotchas, tips or tricks. Or maybe there's a better way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幻想少年梦 2024-10-03 21:52:42

我对导航集合页面(这是一个 iScript)的工作原理进行了逆向设计,因为它也可以处理超时。解决方案相对简单。

首先,将 %Request.ExpireMeta(PeopleCode 函数)的结果包含在您生成的 HTML 部分中。

其次,将交付的 javascript PT_SAVEWARNINGSCRIPT 包含在您生成的 HTML 中。

最后,让 iScript 调用 javascript 函数 setupTimeout()。

I reverse engineered how the Navigation Collections page (which is an iScript) works since it also handles timeouts. The solution is relatively simple.

First, include the results of %Request.ExpireMeta (PeopleCode function) in the portion of the HTML you generate.

Secondly, include the delivered javascript PT_SAVEWARNINGSCRIPT in the HTML you generate.

Finally, have your iScript call the javascript function setupTimeout().

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文