警报???? [英] Alert????

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

问题描述



你好,


我试图在javascript中找出警报的功能。我

的表格大约有5个字段。每个字段都检查输入的

信息是否有效。如果用户输入了无效的

信息,则会弹出一个警告框。我的问题是,如果我在

警告框中说好,整个页面都会刷新。是否有任何方式

仅该特定字段(输入无效信息)

是否刷新,其余字段是否如此?


提前致谢。

酒窝。


Hello,

I am trying to figure out the functionality of alert in javascript. I
have a form with about 5 fields. Each field has a check on whether the
information entered is valid. If the user enters an invalid
information, a alert box pops up. My problem is, if I say OK on the
alert box, the entire page is refreshed. Is there any way in which
only that particular field (in which invalid information is entered)
is refreshed and the remaining fields are as they were?

Thanks in advance.
Dimple.

推荐答案

2008年3月4日星期二10: 43:14 -0800,dimple.nshah写道:
On Tue, 04 Mar 2008 10:43:14 -0800, dimple.nshah wrote:

我试图在javascript中找出警报的功能。我

的表格大约有5个字段。每个字段都检查输入的

信息是否有效。如果用户输入了无效信息,则会弹出一个警告框。我的问题是,如果我在提醒框中说好,那么

整个页面都会刷新。是否有任何方式只刷新那个特定的

字段(输入无效信息)并且

剩余字段是否如此?
I am trying to figure out the functionality of alert in javascript. I
have a form with about 5 fields. Each field has a check on whether the
information entered is valid. If the user enters an invalid information,
a alert box pops up. My problem is, if I say OK on the alert box, the
entire page is refreshed. Is there any way in which only that particular
field (in which invalid information is entered) is refreshed and the
remaining fields are as they were?



如果没有代码,我只能猜测问题。


我的第一个猜测是没有从事件中返回false处理程序。


也就是说,警报往往是一种尴尬和烦人的处理条目的方式

错误,特别是如果逐个字段地完成。


Without code, I can only guess as to the issue.

My first guess is not returning false from an event handler.

That said, Alert tends to be an awkward and annoying way to handle entry
errors, ESPECIALLY if done on a field-by-field basis.


写于2008年4月的comp.lang.javascript
wrote on 04 mrt 2008 in comp.lang.javascript:

我试图在javascript中找出警报的功能。我

的表格大约有5个字段。每个字段都检查输入的

信息是否有效。如果用户输入了无效的

信息,则会弹出一个警告框。我的问题是,如果我在

警告框中说好,整个页面都会刷新。是否有任何方式

只有特定字段(输入无效信息)

是否刷新,其余字段是否如此?
I am trying to figure out the functionality of alert in javascript. I
have a form with about 5 fields. Each field has a check on whether the
information entered is valid. If the user enters an invalid
information, a alert box pops up. My problem is, if I say OK on the
alert box, the entire page is refreshed. Is there any way in which
only that particular field (in which invalid information is entered)
is refreshed and the remaining fields are as they were?



是和否。


是可能的,否则不会被称为刷新。

如果不显示你的代码,讨论就没有意义了。

请只显示必要部分。

-

Evertjan。

荷兰。

(请在我的电子邮件地址中将x'变为点数)

Yes and no.

Yes it is possible and No that would not be called refresh.
The discussion however is meaningless without you showing your code.
Please only show the essential part.
--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


在文章中< ; e4 ********************************** @ 60g2000hsy.g ooglegroups.com>, di ********** @ gmail.com 写道:
In article <e4**********************************@60g2000hsy.g ooglegroups.com>, di**********@gmail.com wrote:

>你的意思是我需要检查日期是否格式正确,在HTML内部
本身???
>You mean I need to check if the date is in proper format, inside HTML
itself???



否,在你的javascript中。


-

问候,

Doug Miller(在milmac dot com上的alphageek)


现在是时候把他们所有的该死的茶再次扔到港口了。

No, in your javascript.

--
Regards,
Doug Miller (alphageek at milmac dot com)

It''s time to throw all their damned tea in the harbor again.


这篇关于警报????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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