YUI 对话框 - 使用“表单”时相当于 postdata 的是什么? (不是(“异步”)
我正在使用 YAHOO.widget.Dialog 创建一个对话框。通过单击链接来触发对话框,链接使用的函数指定最终添加到 postdata 选项的参数,如下所示:
var myDialog = new YAHOO.widget.Dialog("myDialog", {
fixedcenter: true,
// postmethod: "form",
postdata: propString
});
这工作得很好,但现在我需要做同样的事情,但使用“form”代替“异步” - 并且没有用于表单提交的后期数据。
这样做的正确方法是什么?
(YUI 2.7.0)
I'm creating a dialog with YAHOO.widget.Dialog. The dialog is fired off by clicking on a link, and the function the link uses specifies parameters that finally get added to a postdata option like so:
var myDialog = new YAHOO.widget.Dialog("myDialog", {
fixedcenter: true,
// postmethod: "form",
postdata: propString
});
This works just fine, but now I need to do the same thing but using "form" instead of "async" - and there's no postdata for form submissions.
What's the right way to do this?
(YUI 2.7.0)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个例子:
希望有帮助
Here is an example:
Hope it is helpful