IE7/8 不会加载包含选择框的 ajax 内容

发布于 2024-10-03 05:22:11 字数 386 浏览 1 评论 0原文

我有一个应用程序,通过 jQuery 驱动的 ajax 调用加载一个表单,其中包含两个选择框。问题是 IE7 或 8 都无法加载新内容 - 最新版本的 Safari、FF、Opera 和 Chrome 都可以。

如果从选择框中删除选项标签,则内容会在 IE 中加载 - 即 IE 将仅加载存在的选择标签。

我检查了 CSS 问题、HTML 问题和 js 问题,没有发现任何问题。

该页面的精简版本如下:http://wineinf.nzwine.com/dumpthis.asp

如有任何指点,我们将不胜感激。

谢谢/托马斯

I have an application that loads, via a jQuery-driven ajax call, a form containing, amongst other things, two select boxes. The problem is that neither IE7 or 8 load the new content - latest versions of Safari,FF,Opera and Chrome are all OK.

The content loads in IE if the option tags are removed from the select boxes - i.e. IE will load with only the select tags present.

I have checked for CSS issues, HTML issues, and js issues and I can't find anything wrong.

A stripped down version of the page is here: http://wineinf.nzwine.com/dumpthis.asp

Any pointers would be gratefully accepted.

Thanks/Thomas

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

来世叙缘 2024-10-10 05:22:11

和往常一样,问题是我的。导致问题的原因是关闭 div 标签超出了要求。对于浪费的宽带流量表示歉意。

As usual, the problem was mine. A closing div tag surplus to requirements was causing the problem. Apologies for wasted broadband traffic.

神魇的王 2024-10-10 05:22:11

无需道歉;你刚刚帮我解决了同样的问题。

在这里补充一下知识:

1)

2) IE9 不会表现出此行为,除非它处于较旧的文档模式

No aplogies necessary; you just helped me solve the same problem.

To add to the knowledge here:

1) <script> tags seem to trigger the same behavior, even if there's no code in them

2) IE9 doesn't exhibit this behavior, unless it's in an older document mode

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文