[英]Viewing the updated HTML in ie6
I am working with ie6 (unfortunately) and i am having a javascript error. 我正在使用ie6(不幸的是),并且遇到了JavaScript错误。 Its wondrous error message gives me a line in the html source, but unfortunately the javascript that does run changes the code for the page(dramatically).
它的奇妙错误消息在html源代码中给了我一行,但是不幸的是,运行的javascript改变了页面的代码(严重地)。 So the error that its pointing me to is a closing div tag, not actual code.
因此,它指向我的错误是结束div标签,而不是实际的代码。
Is there a way to view the updated code for the page so I can at least know where my code is breaking? 有没有办法查看页面的更新代码,以便至少可以知道我的代码在哪里中断?
I should also point out what im developing in. 我还应该指出即时消息正在发展中。
I am developing a sharepoint 2007 solution for an winxp and ie6 user base. 我正在为winxp和ie6用户群开发一个sharepoint 2007解决方案。 I am working via remote desktop on a sandbox winserver 2008 r2 and can access the site from my terminal.
我正在通过沙盒winserver 2008 r2上的远程桌面进行工作,可以从终端访问该站点。 Now, unfortunately in my sandbox server i have ie 8 in which my code works.
现在,不幸的是,在我的沙箱服务器中,我的代码可以在IE 8中运行。 So im stuck on ideas.
所以我坚持想法。 If anyone knows how to view the updated source on the page, i would be very grateful.
如果有人知道如何在页面上查看更新的源,我将不胜感激。
Thanks. 谢谢。
Edit. 编辑。 I should also mention i dont have admin access on my terminal.
我还应该提到我在终端上没有管理员权限。 So i cant install visual studio.
所以我不能安装Visual Studio。 It would take a couple weeks for an issue ticket for temp admin access to install it, and this is sort of important.
临时管理员访问需要花费几周的时间来安装它,这很重要。
If you can't install anything and the error console information isn't meaningful, then about all you can do is start modifying your code until you can find which section is causing the error. 如果您什么都无法安装,并且错误控制台信息没有意义,那么您几乎可以做的就是开始修改代码,直到找到导致错误的部分为止。 The kinds of modifications you can do are as follows:
您可以进行的修改如下:
If you are using visual studio you can use it to debug js errors in ie. 如果您使用的是Visual Studio,则可以使用它来调试ie中的js错误。
Go to the Advanced Internet settings
in ie and make sure that the two 转到ie中的“
Advanced Internet settings
,并确保两个
Disable script debugging
settings are turned off (so that script debugging is enabled) Disable script debugging
设置已关闭(以便启用脚本调试)
and that the setting 而且那个设置
display a notification on every script error
is enabled. display a notification on every script error
启用时display a notification on every script error
。
If you don't have visual studio installed you can download and install microsofts script debugger (it's free just google it) and use that, tho it is not as easy to work with and won't give you as much useful information 如果您没有安装Visual Studio,则可以下载并安装Microsoft的脚本调试器(仅在Google上免费)并使用它,这样操作起来就不那么容易,并且不会为您提供太多有用的信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.