'undefined'为null或不是对象javascript [英] 'undefined' is null or not an object javascript

查看:195
本文介绍了'undefined'为null或不是对象javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我在填写必填字段时遇到以上javascript错误,并且

提交以下表格:

http://www.wildwoodbushcraft.com/vou .. .price_code = SWC


此错误仅发生在IE浏览器而非firefox中,我看不到任何内容

错误的功能形式。


我一直在用这头发撕掉我的头发并且非常感谢

感谢任何帮助。

全部最好的

Redge

PS请回复此群组而不是电子邮件 - 谢谢。

Hello
I have the above javascript error on filling in mandatory fields and
submitting the form below:

http://www.wildwoodbushcraft.com/vou...price_code=SWC

This error only occurs in IE not firefox and I can''t see anything
wrong with the functioning of the form.

I have been tearing my hair out on this one and would be very
gratefulf for any help.
All the best
Redge
P.S. Please reply to this group rather than by email - thanks.

推荐答案

re **** @ hotmail.com 写道:

我在填写必填字段时出现上述javascript错误并且

提交以下表格:

http://www.wildwoodbushcraft.com/vou...price_code=SWC


此错误仅发生在IE中不是firefox
I have the above javascript error on filling in mandatory fields and
submitting the form below:

http://www.wildwoodbushcraft.com/vou...price_code=SWC

This error only occurs in IE not firefox



Firefox(2.0.0.8)中发生错误。选择工具菜单,错误控制台

项目(或您使用的任何调试工具 - http://getfirebug.com/

强烈推荐。)

An error occurs in Firefox (2.0.0.8). Select the Tools menu, Error Console
item (or whatever debugging tool you employ -- to http://getfirebug.com/ is
strongly recommended.)


PS请回复此群组而不是电子邮件 - 谢谢。
P.S. Please reply to this group rather than by email - thanks.



相反的情况是异常的,并且在Usenet中通常是不希望的,所以

实际上并不需要在OP中要求它。 (尽管如此,

必须是From头中的一个地址,这意味着它指定一个接收电子邮件的容器

;请参阅RFC1036和RFC2822。)

PointedEars

-

现实主义:HTML 4.01严格

福音:XHTML 1.0 Strict

madness :XHTML 1.1 as application / xhtml + xml

- Bjoern Hoehrmann

The opposite would be abnormal and generally unwished for in Usenet, so
there is not really a need for asking for it in an OP. (Nevertheless, there
must be an address in the From header, meaning it designates a container
that receives e-mail; see RFC1036 and RFC2822.)
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann


道歉 - 我发布的时候忘了上传一个文件

错误响应与描述不符 - 现在是 - 请再试一次

,看看你是否可以帮助我 - 非常感谢。


问候

Redge。

Apologies - I forgot to upload one file at the time I posted so the
error response was not as described - it is now - please try it again
and see if you can help me out - many thanks.

Regards
Redge.


re **** @ hotmail.com 写道:

抱歉 - 我忘了在我发布的时候上传一个文件,所以

错误回应没有描述 - 现在是 - 请再试一次

看看你是否可以帮助我o非常感谢。
Apologies - I forgot to upload one file at the time I posted so the
error response was not as described - it is now - please try it again
and see if you can help me out - many thanks.



相同错误(未缓存):


urchinTracker未定义
http://www.wildwoodbushcraft.com/vou...price_code= SWC

行:248

代码:urchinTracker();


因为`urchinTracker''似乎是一个方法,这将是解释

为什么IE显示无用的undefined is null or not object错误

消息:'undefined''无法调用。


ISTM是你在'body'元素末尾使用Google Analytics(和

也可能是您的服务无效标记 - < http://validator.w3.org/>)

导致问题。顺便提一下,谷歌的客户端脚本代码是

,这里是[ae] pt人写的。

PointedEars

-

Prototype.js是由不懂javascript的人写的

谁不懂javascript。不知道javascript的人不是设计使用javascript的系统的最佳建议来源。

- Richard Cornford,cljs,< f8 ** *****************@news.demon.co.uk>

Same error (uncached):

urchinTracker is not defined
http://www.wildwoodbushcraft.com/vou...price_code=SWC
Line: 248
Code: urchinTracker();

Since `urchinTracker'' appears to be a method, that would be the explanation
why IE shows the unhelpful "undefined is null or not an object" error
message: `undefined'' cannot be called.

ISTM it is your using Google Analytics at the end of the `body'' element (and
possibly also your serving invalid markup -- <http://validator.w3.org/>)
that causes the problem. Incidentally, Google''s client-side script code is
recognized here to have been written by in[ae]pt people.
PointedEars
--
Prototype.js was written by people who don''t know javascript for people
who don''t know javascript. People who don''t know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>


这篇关于'undefined'为null或不是对象javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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