将 javascript 注入 Infopath 表单

发布于 2024-09-25 10:02:29 字数 145 浏览 0 评论 0原文

我们使用Infopath 2007 + Sharepoint 2007并且需要向infopath表单注入一些javascript。我知道 infopath 表单可以使用 XmlFormControl 托管在 aspx 页面上。但是这个解决方案不适合我们=(。有什么解决方法吗?

We use Infopath 2007 + Sharepoint 2007 and need to inject some javascript to infopath form. I know that infopath form can be hosted on the aspx page using XmlFormControl. But this solution doesn't suit us =(. Is there any workaround?

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

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

发布评论

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

评论(2

执着的年纪 2024-10-02 10:02:29

InfoPath Form Services 不允许您使用 JavaScript 发布 InfoPath 表单。如果您确实需要使用 JavaScript 来获得丰富的客户端体验,那么您可能会幸运地将表单加载到您提到的 XmlFormControl 中,然后将 js 库加载到其旁边的页面上,并绑定到 dom 元素。您不会以这种方式获得任何设计时支持,但它可能会起作用。

一般来说,您需要遵守 IPFS 的规则和托管代码。

InfoPath Form Services won't let you publish an InfoPath form with JavaScript. If you really need to use JavaScript for a rich client experience, you may have luck loading your form in a XmlFormControl as you mentioned, then loading your js library on the page along side it, and binding to dom elements. You won't get any design time support this way but it may work.

Generally speaking, you need to stick to rules and managed code with IPFS.

时光礼记 2024-10-02 10:02:29

也许您可以编写一个 InfoPath 加载项来注入 javascript 代码。

InfoJet 服务 - InfoPath Web 表单引擎
http://www.infojetsoft.com

Maybe you can write an InfoPath add-in to inject javascript codes.

InfoJet Service - InfoPath Web Forms Engine
http://www.infojetsoft.com

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