Thickbox 不会在 IE8 中提交
我在页面上有一个厚盒,使用内联方法,其中包含一个表单。 我无法在 IE8 中提交它。 当我单击提交按钮时,它应该发送一封电子邮件并自行关闭,但没有任何反应 - Thickbox 保留在页面上,我没有收到任何电子邮件。 在 Firefox 甚至 IE7 中一切都运行良好。
<p><a href="#TB_inline?height=300&width=400&inlineId=AddModeratorsBox&modal=true" class="thickbox" style="text-decoration:none">Add moderators</span></a></p>
<div id="AddModeratorsBox" class="hidden">
<p>Add moderators:</p>
<form name="invitemoderators" action="http://www.mydomain.com/sendEmail.php" method="post">
<p class="subtleText">Email addresses</p>
<textarea cols="30" rows="5" name="emails" class="textareabox"></textarea>
<input type="submit" value="Invite Moderators" class="button" />
</form>
</div>
我确认这是页面上唯一的表单。 另外,对于该操作,我尝试使用相对和完整的 URL,但都没有成功。 有谁知道可能导致此问题的其他 IE8 怪癖吗?
谢谢。
I have a Thickbox on a page, using the inline method, that contains a form. I can't get it to submit in IE8. When I click the submit button, it's supposed to send an email and close itself, but nothing happens - the Thickbox remains on the page and I receive no email. It all works fine in Firefox and even IE7.
<p><a href="#TB_inline?height=300&width=400&inlineId=AddModeratorsBox&modal=true" class="thickbox" style="text-decoration:none">Add moderators</span></a></p>
<div id="AddModeratorsBox" class="hidden">
<p>Add moderators:</p>
<form name="invitemoderators" action="http://www.mydomain.com/sendEmail.php" method="post">
<p class="subtleText">Email addresses</p>
<textarea cols="30" rows="5" name="emails" class="textareabox"></textarea>
<input type="submit" value="Invite Moderators" class="button" />
</form>
</div>
I verified that this is the only form on the page. Also, for the action, I tried with relative and full URL, with no luck either way. Does anyone know of any other IE8 quirks that could be causing this?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
表单的代码看起来不错,因此我怀疑您的厚盒 JavaScript 有问题。 您可以发布表单提交后关闭厚盒的代码吗?
也就是说,上面的 HTML 是“预先”渲染在页面上的,还是您在 JavaScript 中动态构建的?
The code for the form looks fine thus I suspect some issue with the thickbox JavaScript you have. Can you post the code that closes the thickbox after the form submission?
That said, is the HTML above "pre" rendered on the page or are you building it up on the fly in JavaScript?