jQuery的/ Ajax内容未出现/加载在资源管理器 [英] jQuery/Ajax content not appearing/loading in Explorer

查看:84
本文介绍了jQuery的/ Ajax内容未出现/加载在资源管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用几乎所有的jQuery / JavaScript的一个模板。主要是我正在学习的jQuery / JavaScript的。我的网站是 http://chainery.comoj.com 。该网站运作良好的FF和Safari但很可惜,IE不会加载的第一页。阿贾克斯指示灯显示出来,就是这样。在第一页上加载的数据从一个XML文件,并显示它。我以为我已经远离了的东西,这是粗略的IE浏览器,但我错过了一些东西。该产品的页面是加载所有的内容正确,但在文本的左边应该是一个形象。我希望这是同样的问题。我知道我是在很短的信息在这里,我愿意张贴无论是需要的,但我只是不知道从哪里开始。

非常感谢你,                       托德

解决方案

在template_xml.js,你死就行170。

  $(标题)文本($(本).find(页面名称)文本()。)。
 

这jQuery的错误在这里讨论。<​​/ P>

他们的解决方案是:

  

正确的跨浏览器的方式来改变文档的标题就是通过document.title时属性。

和他们已经标注错误为wontfix。 希望这有助于。

BWI,为别人搜索,您看到的错误是:

  

到方法或属性访问意外的​​电话。行:113代码:193   code:0 URI的code:/ jQuery的-1.4.3.min.js

对于那些好奇我怎么跟踪下来:

  • 在IE浏览器,点击F12,打开调试器。

  • 点击脚本选项卡

  • 点击开始调试(重新加载页面)

  • 在右侧窗格中,单击调用堆栈
  • 在开始下降的条目,直到我再看到低水平的jQuery code,并开始看到用户的code。
  • ($(本).find(页面名称)文本()):
  • $(标题)文本; (其中同意什么我读的时候我做了一个快速谷歌为我上面提到的错误。)

I have been working on a template using almost all jquery/javascript. Mostly I am learning jquery/javascript. My site is at http://chainery.comoj.com. The site works well in FF and Safari but alas, IE doesn't load the first page. The ajax indicator shows up and that is it. On the first page it loads data from an xml file and displays it. I thought I had stayed away from stuff that was sketchy in IE but I missed something. The 'product' pages do load all of the content correctly but on the left side of the text should be an image. I am hoping this is the same problem. I know I am short on info here and am willing to post whatever is needed, but I just don't know where to begin.

Thank you very much, Todd

解决方案

In template_xml.js, you're dying on line 170.

$("title").text($(this).find("pageName").text());

This jquery bug is discussed here.

Their solution is:

The correct cross-browser way to change the document title is through the document.title property.

And they've marked the bug as "wontfix". Hope this helps.

BWI, for anyone else searching, the error that you see is:

Unexpected call to method or property access. Line: 113 Symbol: 193 Code: 0 URI-code: / jquery-1.4.3.min.js

For those curious how I tracked it down:

  • In IE, hit F12 to bring up debugger.

  • Click on Script Tab

  • Click "Start Debugging" (page reloads)

  • In right pane, click "Call Stack"
  • Start going down the entries, until I stop seeing low level jQuery code, and start seeing the user's code.
  • Entry is: $("title").text($(this).find("pageName").text()); (which agrees with what I read when I did a quick google for the error that I mentioned above.)

这篇关于jQuery的/ Ajax内容未出现/加载在资源管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆