功能未定义问题 [英] Function not defined problem

查看:106
本文介绍了功能未定义问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...


我是Java编程的新手。我已经看到了如此挑剔的Java是如何做到这一点

和空间灵敏度灵敏度。但是,我慢慢地把它挂起来了。

我遇到了这个奇怪的问题,我无法弄明白。首先

,这里是脚本的链接:

http://www.ve3gop.com/aprs/


资源管理器似乎打开它很好,但Firefox非常挑剔。我刚刚安装了Firebug,每次我在Firefox中加载

页面时,都会返回以下错误:


UpdateData未定义

Repeatericon.iconAnchor = new GPoint(6,20);


我检查并重新检查了代码,这对
$ b没有任何意义$ b me。


有人可以帮忙吗?


谢谢

Alex

Hi all...

I''m new to Java programming. I''ve seen how finicky java is as far case
and space sensitivity sensitivity is concerned. However, I''m slowly
getting hang of it.
I came accross this weird problem that I just can''t figure out. First
of all, here is a link to the script:

http://www.ve3gop.com/aprs/

Explorer seems to open it fine, however the Firefox is pretty fussy
about it. I have just installed Firebug and everytime I load up the
page in Firefox, it returns with the following error:

UpdateData is not defined
Repeatericon.iconAnchor = new GPoint(6, 20);

I checked and rechecked the code and this doesn''t make any sense to
me.

Can anyone help?

thanks
Alex

推荐答案

6月15日上午9:50,Navaidstech< awie ... @ hotmail.comwrote:
On Jun 15, 9:50 am, Navaidstech <awie...@hotmail.comwrote:

大家好......


我是Java编程的新手。我已经看到了如此挑剔的Java是如何做到这一点

和空间灵敏度灵敏度。但是,我慢慢地把它挂起来了。
Hi all...

I''m new to Java programming. I''ve seen how finicky java is as far case
and space sensitivity sensitivity is concerned. However, I''m slowly
getting hang of it.



Javascript ain''t Java。相信这个,呃?

Javascript ain''t Java. Trust this, eh?


我遇到了这个奇怪的问题,我无法弄明白。首先

,这里是脚本的链接:

http://www.ve3gop.com/aprs/


资源管理器似乎打开它很好,但Firefox非常挑剔。我刚刚安装了Firebug,每次我在Firefox中加载

页面时,都会返回以下错误:


UpdateData未定义

Repeatericon.iconAnchor = new GPoint(6,20);


我检查并重新检查了代码,这对
$ b没有任何意义$ b我。
I came accross this weird problem that I just can''t figure out. First
of all, here is a link to the script:

http://www.ve3gop.com/aprs/

Explorer seems to open it fine, however the Firefox is pretty fussy
about it. I have just installed Firebug and everytime I load up the
page in Firefox, it returns with the following error:

UpdateData is not defined
Repeatericon.iconAnchor = new GPoint(6, 20);

I checked and rechecked the code and this doesn''t make any sense to
me.



这是一个时间问题,你在定义之前就调用了UpdateData

。移动电话。


---

Geoff

It''s a timing issue, you''re calling UpdateData
immediately before its definition. Move the call.

---
Geoff


Javascript ain'不是Java。相信这个,呃?


现在怎么样??? !!!在过去的几天里我看到了一些东西,

会让我拉扯我的头发,但我没有看到这一个来。大声笑。

Javascript ain''t Java. Trust this, eh?

What now???!!! I''ve seen a few things over the past few days that
would make me pull my hair, but I didn''t see this one coming. LOL.


>
>

未定义UpdateData

Repeatericon.iconAnchor = new GPoint(6,20);
UpdateData is not defined
Repeatericon.iconAnchor = new GPoint(6, 20);


我检查并重新检查了代码,这对我来说没有任何意义。
I checked and rechecked the code and this doesn''t make any sense to
me.



这是一个时间问题,你在定义之前就调用了UpdateData

。移动电话。


It''s a timing issue, you''re calling UpdateData
immediately before its definition. Move the call.



你的意思是将整个Repeater图标定义和

UpdateData调用一起移动到程序中的其他位置,这样它就不会关闭

到实际功能?


谢谢

ALex

You mean move the entire Repeater icon definition along with the
UpdateData call to somewhere else in the program so it''s not too close
to the actual function?

thanks
ALex


6月15日下午3:21,Navaidstech< awie ... @ hotmail.comwrote:
On Jun 15, 3:21 pm, Navaidstech <awie...@hotmail.comwrote:

Javascript ain''t Java。相信这个,嗯?
Javascript ain''t Java. Trust this, eh?



现在怎么样??? !!!在过去的几天里我看到了一些东西,

会让我拉扯我的头发,但我没有看到这一个来。 LOL。


What now???!!! I''ve seen a few things over the past few days that
would make me pull my hair, but I didn''t see this one coming. LOL.


未定义UpdateData

Repeatericon.iconAnchor = new GPoint(6,20);
UpdateData is not defined
Repeatericon.iconAnchor = new GPoint(6, 20);


我检查并重新检查了代码,这对
我。
I checked and rechecked the code and this doesn''t make any sense to
me.


这是一个时间问题,你在定义之前就调用了UpdateData

。移动电话。
It''s a timing issue, you''re calling UpdateData
immediately before its definition. Move the call.



你的意思是将整个Repeater图标定义和

UpdateData调用一起移动到程序中的其他地方,这样它就不会关闭

到实际功能?


You mean move the entire Repeater icon definition along with the
UpdateData call to somewhere else in the program so it''s not too close
to the actual function?



你可以,我通常把功能定义

放在头部并立即离开身体

脚本。但是基本的问题是解析器在读取和创建函数之前看到了UpdateData调用,并试图执行它,



这是您脚本的快速复制:


< * snip *>


UpdateData(RepeaterLocation);


函数UpdateData(FollowMarker){


< * snip *>

快速修复只是改变它to:


函数UpdateData(FollowMarker){

....

}


UpdateData(RepeaterLocation);


----

Geoff

You could, I generally put function definitions
in the head and leave the body for the immediate
script. But the basic problem is the parser seeing
the UpdateData call, and trying to execute it,
before it has read and created the function.

This is quick copy from your script:

<*snip*>

UpdateData(RepeaterLocation);

function UpdateData(FollowMarker) {

<*snip*>
Quick fix is just changing it to:

function UpdateData(FollowMarker) {
....
}

UpdateData(RepeaterLocation);

----
Geoff


这篇关于功能未定义问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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