在 PeopleSoft iScript 中实现超时 Javascript
当用户即将注销时,常规 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我对导航集合页面(这是一个 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().