MSIE缺少JS文件错误。救命 !! [英] Missing JS file errors with MSIE . Help !!

查看:100
本文介绍了MSIE缺少JS文件错误。救命 !!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



大家好,


我想在我的html报告中加入我的小脚本。

我做了包含它的外部JS文件。

如果你还记得,你帮助我通过使用ajax检测asp页面是否为


如果不存在则优雅地保持沉默。


现在的问题是当JS不存在时(它可以)MSIE

给出了很多错误,一个人必须杀死它。


首先说ROW 1字符无效,行1695对象

预期等等.. 。

Firefox不会出现任何错误。


如何避免错误?


这是一个页面样本:只是第一行:


<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN"

" http://www.w3.org/TR/html4/loose.dtd">

< html>

< head>

......这里的一些款式......

< / style>


< script language =" javascript" src =" MenuScript.js">< / script>


< / head>

< body>


Hi Guys,

I am trying to include my little script in my html report.
I have done an external JS file which contains it.
If you remember, you have helped me to detect if the asp page was
present by using ajax.
If not present is gracefully stay silent.

The problem is now that when the JS is not present (and it can be) MSIE
gives a lot of errors and one has to kill it.

It starts by saying ROW 1 Character is not valid, Row 1695 Object
Expected and so on...
Firefox does not give any error.

How can I avoid the errors?

Here is a sample of the page: just the first lines:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
.... some styles here ...
</style>

<script language="javascript" src="MenuScript.js"></script>

</head>
<body>

推荐答案

pa ***** ******@libero.it 写道:

嗨大家好,


我正在尝试把我的小脚本包含在我的html报告中。

我做了一个包含它的外部JS文件。

如果你还记得,你帮助我检测了asp是否页面是

使用ajax。

如果不存在则优雅地保持沉默。


现在的问题是JS不存在(它可以)MSIE

会产生很多错误而且必须要杀掉它。


首先说ROW 1字符无效,行1695对象

预期等等......

Firefox不会出现任何错误。
Hi Guys,

I am trying to include my little script in my html report.
I have done an external JS file which contains it.
If you remember, you have helped me to detect if the asp page was
present by using ajax.
If not present is gracefully stay silent.

The problem is now that when the JS is not present (and it can be) MSIE
gives a lot of errors and one has to kill it.

It starts by saying ROW 1 Character is not valid, Row 1695 Object
Expected and so on...
Firefox does not give any error.



FF的JavaScript控制台中出现了什么(如果有的话) ?

What, if anything, appears in FF''s JavaScript console?


我如何避免错误?
How can I avoid the errors?



通过不引用那些不是''的东西那边?你没有提供足够的信息来获得一个体面的答案。

By not referring go to stuff that isn''t there? You haven''t provided
enough information for a decent answer.


这是一个页面示例:只是第一行:
Here is a sample of the page: just the first lines:



< snip>

<snip>


>

< script language = QUOT; JavaScript的" src =" MenuScript.js">< / script>
>
<script language="javascript" src="MenuScript.js"></script>



不要使用已弃用的''language''属性,请使用''type' '。


-

Ian Collins。

Don''t use the deprecated ''language'' attribute, use ''type''.

--
Ian Collins.


MSIE给出了很多错误必须杀了它。


< URL:http://www.killbillsbrowser.com>


彼得

MSIE gives a lot of errors and one has to kill it.

<URL: http://www.killbillsbrowser.com>

Peter


pe ********** @ gmail .com 在2006年9月26日凌晨2:46发表以下内容:
pe**********@gmail.com said the following on 9/26/2006 2:46 AM:

> MSIE给了很多错误,一个人必须杀死它。
>MSIE gives a lot of errors and one has to kill it.



< URL:http://www.killbillsbrowser.com>


<URL: http://www.killbillsbrowser.com>



有人需要让该页面的网站管理员知道IE7现在已经有了bbb浏览这个页面。它指的是Firefox的好处。声明:

声明:


< quote>

标签式浏览等功能使阅读网页更容易

< / quote>


如何让顶部的标签更容易阅读?

-

Randy

机会有利于准备好的心灵

comp.lang.javascript常见问题 - http://jibbering.com/faq &新闻组每周

Javascript最佳实践 - http://www.JavascriptToolbox .com / bestpractices /

Somebody needs to let the webmaster of that page know that IE7 now has
"tabbed browsing" that it refers to as a benefit of Firefox. And that
the claim:

<quote>
Features like tabbed browsing make reading webpages easier
</quote>

How does having a tab at the top making reading easier?
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/


这篇关于MSIE缺少JS文件错误。救命 !!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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