🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: fj.lang.javascript
3 messages
3 total messages Started by Hideto Shimada Wed, 08 Oct 1997 00:00
[Q]$BH=Dj(B
#172
Author: Hideto Shimada
Date: Wed, 08 Oct 1997 00:00
30 lines
1088 bytes
$BEhED$H?=$7$^$9!#(B

$B0JA0$b0lEY;G$C$?$N$G$9$,?t;z$+$"$k$+$J$$$+$G%a%C%;!<%8$rJQ$($?$$(B
$B$N$G$9$,$&$^$/F0$-$^$;$s!#(B
$B0J2<$K%9%/%j%W%H$r:\$;$^$9$N$G$I$J$?$+65$($F2<$5$$!#(B

<script language=javascript>
function check(arg){
	if ( isNaN (parseInt (arg)) && isNaN (parseFloat (arg)) ){
		alert("message1");
	}
	else{
		alert("message2");
	}
}
</script>


--html--

<form method="post" name="form1" onSubmit="return check(this)" action="/cgi-bin/test.cgi">
<input type=text name=namber size=10>
$BF|$^$($N>pJs$r(B
<input type=submit value="$B%5%V%_%C%H(B">
<input type=reset value="$B%j%;%C%H(B">
</form>
====
Hideto Shimada               
hideto@shimada-precision.co.jp
Re: [Q]判定
#173
Author: kudo3104
Date: Thu, 09 Oct 1997 00:00
20 lines
1161 bytes
In article <61fcdc$4317@green.obicnet.ne.jp>,
hideto@shimada-precision.co.jp (Hideto Shimada) wrote:

> function check(arg){
>         if ( isNaN (parseInt (arg)) && isNaN (parseFloat (arg)) ){
$B!JN,!K(B
> <form method="post" name="form1" onSubmit="return check(this)"
action="/cgi-bin/test.cgi">
> <input type=text name=namber size=10>

parseInt()$B$K$OJ8;zNs$rEO$9I,MW$,$"$j$^$9!#(Bcheck(this)$B$H$$$&(B
$B8F$SJ}$@$H(Bthis$B!$$9$J$o$A(Bform$B$=$N$b$N$,EO$5$l$k$N$G%@%a$G$9!#(B

$B>e5-$N(Bform$B$J$i(Bcheck(this.namber.value)$B$H$$$&8F$SJ}$K$9$Y$-$G$9!#(B

# namber$B$C$F(Bnumber$B$N$3$H!)(B
___________________________________
Satoshi Kudoh  <kudo3104@ics.co.jp>
      ICS Co., Ltd.  D.S.P. Frame-G
Re: [Q]$BH=Dj(B
#174
Author: Hideto Shimada
Date: Thu, 09 Oct 1997 00:00
19 lines
1040 bytes
In article <kudo3104-0910970851360001@island.ics.co.jp>
kudo3104@ics.co.jp writes:

>> parseInt()$B$K$OJ8;zNs$rEO$9I,MW$,$"$j$^$9!#(Bcheck(this)$B$H$$$&(B
>> $B8F$SJ}$@$H(Bthis$B!$$9$J$o$A(Bform$B$=$N$b$N$,EO$5$l$k$N$G%@%a$G$9!#(B
>> 
>> $B>e5-$N(Bform$B$J$i(Bcheck(this.namber.value)$B$H$$$&8F$SJ}$K$9$Y$-$G$9!#(B

kudou$B$5$s$"$j$,$H$&$4$6$$$^$9!"855-;v$NEhED$G$9!#(B
$BAGAa$$%U%)%m!<46<UCW$7$^$9!#(B

>> # namber$B$C$F(Bnumber$B$N$3$H!)(B

$B$O$$!"$9$_$^$;$s!"!#(B

====
Hideto Shimada               
hideto@shimada-precision.co.jp
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads