强制showModalDialog使用post方法

force showModalDialog use post method

本文关键字:方法 post 使用 showModalDialog 强制      更新时间:2023-09-26

是否可以强制"showModalDialog"使用"post"方法?我可以看到,在许多情况下,它使用"Get"方法。

它可以在客户端或服务器端配置吗?(我使用的是InternetExplorer/WebSphere7.0)

为了澄清,我正试图从服务器上获得一个弹出的html页面。有时使用"GET",有时使用"POST"

在模式对话框中,放置一个带有method="POST"form和一个提交按钮。当用户单击提交时,它将使用post

如果您想使用ajax,只需在ajax调用中定义即可:

纯javascript

xmlhttp.open("POST","demo_post.asp",true);

Jquery

$.ajax({
  type: "POST",
  url: "some.php",
 ...