HTML - 通过POST将参数传递给模态对话框 [英] HTML - Passing parameters via POST to a Modal dialog

查看:328
本文介绍了HTML - 通过POST将参数传递给模态对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的代码如下所示:

  var result = window.showModalDialog(somepage.jsp?argument1 = abc, 
dialogArguments,
otherArgs);
if(result ...

我想传递 argument1 在 POST中因为它包含敏感信息。



是否可以打开模式对话框并将它传递给 POST中的一个参数?How?

解决方案

window.showModalDialog没有办法天生就使用POST,但是可以通过提交表单来解决它。



http://social.msdn.microsoft.com/Forums/ en-us / iewebdevelopment / thread / 126fcea8-c28b-49ce-ad49-65884ffabeb6

另外,还有许多其他方法可以做类似的事情。 / p>

Our code looks like this:

var result = window.showModalDialog("somepage.jsp?argument1=abc", 
                                     dialogArguments, 
                                     otherArgs);
if (result ...

I want to pass argument1 in POST since it contains sensitive information.

Is it possible to open a modal dialog and pass to it a parameter in POST? How?

解决方案

There is no way for window.showModalDialog to use POST innately. You can, however, work around it by having it submit a form.

http://social.msdn.microsoft.com/Forums/en-us/iewebdevelopment/thread/126fcea8-c28b-49ce-ad49-65884ffabeb6

Alternatively, there are many other methods of doing a similar thing.

这篇关于HTML - 通过POST将参数传递给模态对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆