IE7/8 不会加载包含选择框的 ajax 内容
我有一个应用程序,通过 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
和往常一样,问题是我的。导致问题的原因是关闭 div 标签超出了要求。对于浪费的宽带流量表示歉意。
As usual, the problem was mine. A closing div tag surplus to requirements was causing the problem. Apologies for wasted broadband traffic.
无需道歉;你刚刚帮我解决了同样的问题。
在这里补充一下知识:
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