没有表单的 jquery 对话框

发布于 2024-09-06 14:23:11 字数 969 浏览 0 评论 0原文

我有两个问题。

  1. 我正在 Lotus 中开发 Web 应用程序,Lotus 喜欢控制情况并在它认为合适的地方插入代码。
  2. 我正在使用 Jquery UI 打开模式对话框窗口。如果我只是打开并关闭对话框,然后尝试提交父表单,我会得到 __click 不是对象。当我仔细查看代码时,Lotus 将整个页面包装在标签中。然后 jquery 中包含表单代码来提供对话框。所以 html 表单不喜欢相互存在?!?

问题。

我可以在不使用表单标签的情况下构建 jquery UI 模式对话框吗? UI 库创建对话框所需的标签是否有附件?我把标签去掉了,但是有什么副作用吗?

感谢您的帮助,顺便说一句,它只在 IE 中中断。当然。

添加者: 莲花

CN=Kris Mitchell/O=xxxx

Jquery 表单

 <div id="formContainer" style="display:none;">
<div id="dialog-form" title="Copy Other Managers">
    <form>
    <p>text</p>
    <fieldset>
        <form>
        <div id="ccIngManagerDiv">
        </div>
    </fieldset>
    </form>
</div>

I have two problems.

  1. I am developing web application in Lotus, and Lotus likes to take control of the situation and insert code where it sees fit.
  2. I am using Jquery UI to open a modal dialog window. If I simply open and close the dialog, then try to submit the parent form, I get a __click is not an object. When I took a closer look at the code, Lotus wraps the entire page in tags. Then jquery has the form code in it to serve up the dialog. So html forms don't like to live inside of each other?!?

Question.

Can I build a jquery UI modal dialog without using the form tags? Is there an attachment to the tag that the UI lib needs to create the dialog? I've taken the tags out, but what are the side effects?

Thanks for the help, btw it only breaks in IE. Of course.

Added by Lotus
<form method="post" action="/IS/GIFormDev.nsf/giForm-Step3?OpenForm&ideaNumber=000036-2010" name="_DominoForm">
<input type="hidden" name="__Click" value="0">CN=Kris Mitchell/O=xxxx

Jquery Form

 <div id="formContainer" style="display:none;">
<div id="dialog-form" title="Copy Other Managers">
    <form>
    <p>text</p>
    <fieldset>
        <form>
        <div id="ccIngManagerDiv">
        </div>
    </fieldset>
    </form>
</div>

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

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

发布评论

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

评论(1

吾性傲以野 2024-09-13 14:23:11

您有几个选择(在没有看到更多代码的情况下很难提供更多详细信息)。但是您可以将 jQuery 对话框 div 放置在 Notes 表单的最后,并在其前面添加一个结束标记。您也可以在 jQuery 对话框 div 中根本不使用表单标签 - 只需设置一个包含您想要在 jQuery 对话框中显示的内容的 div 即可。包含一个带有 JS 事件处理程序的按钮,该按钮写入主表单上的字段,并提交主表单(如果表单上没有任何富文本,那么您可以只使用 Javascript 提交主表单 - 否则,您需要小心使用 Domino 生成的 __click 函数)。

You have a few options (hard to give more details without seeing more code). But you can place your jQuery dialog div at the very end of the Notes form, and precede it with a closing tag. You could also not use a form tag at all in the jQuery dialog div - just set up a div with what you want displayed in the jQuery dialog. Include a button with a JS event handler that writes into fields on the main form, and submits the main form (if you don't have any rich text on the form, then you can just use Javascript to submit the main form - otherwise, you need to be careful to use the Domino generated __click function).

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