jQuery插件冲突 - 请协助
目的是显示一个表单,该表单将使用结果更新页面上的 div
The aim is to show a form which will update the div on the page with the result
- 加载此 [页面]
- 点击链接显示表格
- 提交表格
提交时,如果表单被隐藏,结果不会显示在 div 中.
When submitting, the result does not show in the div if the form had been hidden.
添加以下答案中建议的代码后,我显示表单,它被提交,但数据没有出现在 div 中我将 ajaxForm 作为目标
after adding the code suggested in the below answers, I show the form, it gets submitted, but the data is not appearing in the div I give the ajaxForm as target
[Here] 与在 div 中显示结果的形式相同
[Here] is the same form that does show the result in the div
谢谢
推荐答案
当你提交表单时,请求被发送到服务器,你得到一个 HTTP 错误:405 Method Not Allowed
.
When you submit the form, the request is sent to the server and you obtain a HTTP Error: 405 Method Not Allowed
.
看起来它来自您服务器的配置.http://www.checkupdown.com/status/E405.html
It looks like it comes from the configuration of your server. http://www.checkupdown.com/status/E405.html
由于您的代码适用于 facy.html 页面中的示例,我认为它并不是真正来自服务器.两个例子的区别在于表单的action.
as your code works for your example in the facy.html page I think it doesn't really comes from the server. The difference between the two examples are the action of the form.
- fancy.html:加载一个 PHP 文件
- fancy3.html:加载一个 HTML 文件
您是否尝试将您的 thank you 页面称为thanks.php"并相应地修改表单的 action.我想您的服务器可能不允许 HTML 页面上的 POST 请求.
Did you try to call your thank you page "thanks.php" and modify the action of your form accordingly. I suppose that your server might not allow POST request on an HTML page.
相关文章