Support Requests item #449706, was opened at 2001-08-09 22:28
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=203152&aid=449706&group_id=3152
Category: Scripting: Other
Group: aolserver3_0
Status: Open
Resolution: None
Priority: 5
Submitted By: Paul Oehler (poehler)
Nick
> - Original Message -
> From: "Matias Diez" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 09, 2001 2:40 PM
> Subject: [AOLSERVER] Integer Validation
>
> Hi ,
> Does anybody have an example of ADP page to validate if
> one variable is numeric ?
if you are us
Support Requests item #449658, was opened at 2001-08-09 16:29
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=203152&aid=449658&group_id=3152
Category: Scripting: Tcl/ADP
Group: aolserver3_4
Status: Open
Resolution: None
Priority: 5
Submitted By: Tyge Cawthon (tyge)
What's going on here is more subtle. 0123 means 123 base 8, so [incr 0123]
returns 84, which is correct. ALWAYS strip leading zeroes from numbers
you get from users, because if they put in something like 0789 and you
try to do:
if {$pin == 1234}
your script will blow up because $pin isn't a
One thing about this is that you might want to include some code to trim any
leading zeros. If the application asks for, say a PIN code, and the user
inputs 0234, this function will return false because TCL will not add 1 to
0234, but it will add it to 234.
Also, if you're looking for strict INTE
.. something like
<%
if {[catch {set res [expr $someVar + 1]}]} {
#someVar is not a number
} else {
# it is a number
}
%>
-Nick
- Original Message -
From: "Matias Diez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 09, 2001 2:40 PM
Subject: [AOLSERVE
http://aolserver.com/docs/tcl/tcl8.3/TclCmd/contents.htm
[string is digit -strict $var] or [regexp {^[0-9]+$}
1234 match]
-derek
--- Matias Diez <[EMAIL PROTECTED]> wrote:
> Hi ,
> Does anybody have an example of ADP page to
> validate if
> one variable is numeric ?
>
> Thanks,
> Matías Diez
>
> Does anybody have an example of ADP page to validate if
> one variable is numeric ?
I use the following procedure for that. It's not perfect but it works for
me. I included my test procedure for any number, integer, and if a number
is 0.
Note that IsNumber and IsInteger consider an empty str
Hi ,
Does anybody have an example of ADP page to validate if
one variable is numeric ?
Thanks,
Matías Diez
Webmaster
AOL Argentina S.R.L.
The AOLserver weekly chat takes place today and every Thursday. Common
topics include AOLserver, Tcl, SQL, ACS, and general web-related
questions.
The place: AIM chatroom "AOLserver" on exchange 4
The time: 20:00 UTC
During the summer, that time is
4 PM US/Eastern
3 PM US/Central
2
At 11:53 AM 8/9/2001 -0400, you wrote:
As a matter of fact I have been waiting with baited breath for your
release.. :) And so has Daniel Stasinski.. :) your efforts are definately
appreciated...
> > I could have used a merchant account and used url based
> > connections to handle the charging
> I could have used a merchant account and used url based
> connections to handle the charging.. but until someone writes something so
> I can make a ssl based outbound connection from my webserver I don't want
> to do that since everything is sent out in clear and I don't want to risk
> sniffers.
- Original Message -
From: "Yon Derek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 08, 2001 9:35 PM
Subject: Re: [AOLSERVER] perms
> > Certainly... what I am working on is as close to live
> > updating as possible of users for a subscription based
> > website..
On Wed, Aug 08, 2001 at 11:09:02AM -0400, Ali Elhajj wrote:
> Hello,
>what do I need to do in order to have install a servlet engine on
> AOLServer. Are some aolserver versions more amenable to servlets? And
> finally, are there problems/pitfalls one needs to keep in mind when working
> with
I would also be very interested in reading about this process. Why not
write an ASJ or other article on it?
/s.
> I'm interested in the on-line billing options. Would you care to share
> who's doing the credit card charing and your experiences so far? I would
> appreciate any real-life info.
>
>
There are many places in AOLserver (anything that calls Ns_ConnReadLine
amongst others), that call down into the connection read procedure
requesting one byte. (Ns_ConnReadLine does this to make sure it reads only
to the end of line and can pass the rest of the data to the next proc...)
In AOLse
16 matches
Mail list logo