Re: 911: testing if the field is empty
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 33628
interpreted = N
texte = So, in your case it would be....[if ([format 10d]0[image_width][/format]>100)|([image_width]=)][then]100[/then][else][image_width][/else][/if]Or[if ([format 10d]0[image_width][/format]>100)|([format10d]0[image_width][/format]=0)][then]100[/then][else][image_width][/else][/if]-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]OnBehalf Of Scott AndersonSent: Friday, June 23, 2000 4:36 PMTo: WebCatalog TalkSubject: Re: 911: testing if the field is emptyThe problem here is that if [image_width] is empty the equation parser wouldhave a problem parsing:(>100)But here is one way to get around that problem:[if ([format 10d]0[image_width][/format]>100)][then]100[/then][else][image_width][/else][/if]The trick here is that the format will force a 0 value if [image_width] isempty.-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]OnBehalf Of Max UtterSent: Friday, June 23, 2000 3:24 PMTo: WebCatalog TalkSubject: 911: testing if the field is emptyI am now 1 day into WebControl and very frustrated. I can not seem to findany where in the docs where they tell what those datarq, as, eq, wo, etc..things around the fields in [search] are, can anyone tell me where to findout.Also, I am trying to check when a field is empty.This works:[showif [image_width]> ]It has a width number[/showif]However, I need an [if][then][else] that will eval to true (then) if[image_width] is empty. This is so that I can do something like:[if ([image_width]>100)|([image_width] is empty) [then]100[/then] [else][image_width][/else][/if]Please help. I have sent SmithMicro three emails and they have notanswered. I must get this project moving and these details are reallyhurting.Thank You,Max--Max UtterPresident & CEO, menstoys.com1113 Spruce Street, suite 103Boulder, CO 80302max@menstoys.comoffice: 303 381-2502fax: 303 381-2504cell: 303 588-3813http://www.menstoys.com/store/home.asp> From: John Butler
> Reply-To: (WebCatalog Talk)> Date: Fri, 23 Jun 2000 16:09:32> To: (WebCatalog Talk)> Subject: Re: possible to oscillate between a [redirect] and [authenticate]> every other login attempt?>> Thanks Anup,>> I tried that like this->> ___________>> [showif [url][password][/url]![url][Decrypt seed=theTree][lookup> db=dbs/some.db&lookinField=Handle&value=[URL][username][/URL][!]> [/!]&returnField=Pass¬Found=NotFoundAmigo][/Decrypt][/url]]>> [showif [URL][retryCounter][/URL]=%5BretryCounter%5D]> [math show=F]retryCounter=2[/math]> [/showif]>> [showif [URL][retryCounter][/URL]\2]> [REDIRECT PassHelp.tmpl?no_cache=[date> %Y%m%d%m%S]&retryCounter=[retryCounter]]> [/showif]>> [hideif [URL][retryCounter][/URL]\2]> [authenticate (Use back button for help)]> [/hideif]>> [/showif]> ______________>> ..but notice that when coming in with an odd number for [retryCounter] the> [autheticate] kicks in and the user cannot get back to the [redirect]. Iwant> the> [redirect] to kick back in after some more futile attempts, but how?>> -John>> Anup Setty wrote:>>> You can have a counter,>>>> [showif [counter]^counter]>> [text]counter=0[/text]>> [/showif]>>>> and on each attempt, increment the counter and pass with your>> form action or URL as a variable.>>>> each time the user comes back;>>>> [showif [counter]>3] -- whatever the number you want use as limitation>> [redirect .....]>> [/showif]>>>> hope this works>>>> anup>>>> ----- Original Message ----->> From: John Butler >> To: WebCatalog Talk >> Sent: Friday, June 23, 2000 2:53 PM>> Subject: possible to oscillate between a [redirect] and [authenticate]every>> other login attempt?>>>>> I want it so that if an admin type tries logging in with a bad password,>> then he is>>> redirected to another (help) page... where he has the option (among>> others) to click a>>> link to go back to the original login page and try again. So the>> protection code at>>> the top of that original login page must not redirect if he is trying>> again. This I>>> can do with the below code, but what I haven't figured out is how tocause>> the redirect>>> to kick back in and send him back to the help page after [x] more of his>> bad attempts>>> to get the password right. Maybe this is impossible. Any ideas?>>>>>> (as the below code is now, once he uses the link to go back and tryagain>> ...a>>> href=login.tmpl?retry=yes... he gets stuck on the [authenticate]. He>> can use the>>> back button, but can I automate it?)>>> ________>>>>>> [showif [url][password][/url]![url][Decrypt seed=thetree][lookup>>> db=wzdb/some.db&lookinField=Handle&value=[URL][username][/URL][!]>>> [/!]&returnField=Pass¬Found=NotFoundAmigo][/Decrypt][/url]]>>>>>> [hideif [URL][retry][/URL]=yes]>>> [REDIRECT PassHelp.tmpl?no_cache=[date %Y%m%d%m%S]]>>> [/hideif]>>>>>> [authenticate (Use back button for help)]>>>>>> [/showif]>>>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://search.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
So, in your case it would be....[if ([format 10d]0[image_width][/format]>100)|([image_width]=)][then]100[/then][else][image_width][/else][/if]Or[if ([format 10d]0[image_width][/format]>100)|([format10d]0[image_width][/format]=0)][then]100[/then][else][image_width][/else][/if]-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]OnBehalf Of Scott AndersonSent: Friday, June 23, 2000 4:36 PMTo: WebCatalog TalkSubject: Re: 911: testing if the field is emptyThe problem here is that if [image_width] is empty the equation parser wouldhave a problem parsing:(>100)But here is one way to get around that problem:[if ([format 10d]0[image_width][/format]>100)][then]100[/then][else][image_width][/else][/if]The trick here is that the format will force a 0 value if [image_width] isempty.-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]OnBehalf Of Max UtterSent: Friday, June 23, 2000 3:24 PMTo: WebCatalog TalkSubject: 911: testing if the field is emptyI am now 1 day into WebControl and very frustrated. I can not seem to findany where in the docs where they tell what those datarq, as, eq, wo, etc..things around the fields in [search] are, can anyone tell me where to findout.Also, I am trying to check when a field is empty.This works:[showif [image_width]> ]It has a width number[/showif]However, I need an [if][then][else] that will eval to true (then) if[image_width] is empty. This is so that I can do something like:[if ([image_width]>100)|([image_width] is empty) [then]100[/then] [else][image_width][/else][/if]Please help. I have sent SmithMicro three emails and they have notanswered. I must get this project moving and these details are reallyhurting.Thank You,Max--Max UtterPresident & CEO, menstoys.com1113 Spruce Street, suite 103Boulder, CO 80302max@menstoys.comoffice: 303 381-2502fax: 303 381-2504cell: 303 588-3813http://www.menstoys.com/store/home.asp> From: John Butler > Reply-To: (WebCatalog Talk)> Date: Fri, 23 Jun 2000 16:09:32> To: (WebCatalog Talk)> Subject: Re: possible to oscillate between a [redirect] and [authenticate]> every other login attempt?>> Thanks Anup,>> I tried that like this->> ___________>> [showif [url][password][/url]![url][Decrypt seed=theTree][lookup> db=dbs/some.db&lookinField=Handle&value=[url][username][/URL][!]> [/!]&returnField=Pass¬Found=NotFoundAmigo][/Decrypt][/url]]>> [showif [url][retryCounter][/URL]=%5BretryCounter%5D]> [math show=F]retryCounter=2[/math]> [/showif]>> [showif [url][retryCounter][/URL]\2]> [REDIRECT PassHelp.tmpl?no_cache=[date> %Y%m%d%m%S]&retryCounter=[retryCounter]]> [/showif]>> [hideif [url][retryCounter][/URL]\2]> [authenticate (Use back button for help)]> [/hideif]>> [/showif]> ______________>> ..but notice that when coming in with an odd number for [retryCounter] the> [autheticate] kicks in and the user cannot get back to the [redirect]. Iwant> the> [redirect] to kick back in after some more futile attempts, but how?>> -John>> Anup Setty wrote:>>> You can have a counter,>>>> [showif [counter]^counter]>> [text]counter=0[/text]>> [/showif]>>>> and on each attempt, increment the counter and pass with your>> form action or URL as a variable.>>>> each time the user comes back;>>>> [showif [counter]>3] -- whatever the number you want use as limitation>> [redirect .....]>> [/showif]>>>> hope this works>>>> anup>>>> ----- Original Message ----->> From: John Butler >> To: WebCatalog Talk >> Sent: Friday, June 23, 2000 2:53 PM>> Subject: possible to oscillate between a [redirect] and [authenticate]every>> other login attempt?>>>>> I want it so that if an admin type tries logging in with a bad password,>> then he is>>> redirected to another (help) page... where he has the option (among>> others) to click a>>> link to go back to the original login page and try again. So the>> protection code at>>> the top of that original login page must not redirect if he is trying>> again. This I>>> can do with the below code, but what I haven't figured out is how tocause>> the redirect>>> to kick back in and send him back to the help page after [x] more of his>> bad attempts>>> to get the password right. Maybe this is impossible. Any ideas?>>>>>> (as the below code is now, once he uses the link to go back and tryagain>> ...a>>> href=login.tmpl?retry=yes... he gets stuck on the [authenticate]. He>> can use the>>> back button, but can I automate it?)>>> ________>>>>>> [showif [url][password][/url]![url][Decrypt seed=thetree][lookup>>> db=wzdb/some.db&lookinField=Handle&value=[url][username][/URL][!]>>> [/!]&returnField=Pass¬Found=NotFoundAmigo][/Decrypt][/url]]>>>>>> [hideif [url][retry][/URL]=yes]>>> [REDIRECT PassHelp.tmpl?no_cache=[date %Y%m%d%m%S]]>>> [/hideif]>>>>>> [authenticate (Use back button for help)]>>>>>> [/showif]>>>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://search.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Scott Anderson
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
WebCat2 Append problem (B14Macacgi) (1997)
Emailer (WebCat2) (1997)
Sku numbers (1997)
return missing item (was:WebCat Sales) (1997)
Loops and [index] (1998)
[WebDNA] users.db (2009)
Mac Lockup Problems (1998)
[OT] Kerio Mailserver (2003)
[LOOKUP] (1997)
WC2.0 Memory Requirements (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Reversed words (1997)
Help! WebCat2 bug (1997)
won't serve .tpl (2000)
cart limit (2002)
PCS Emailer's role ? (1997)
Showing unopened cart (1997)
[WebDNA] TCPconnect and Bitcoin rate (2019)
Opinion: [input] should be called [output] ... (1997)
More! on [ShowCart] and GET vs. POST (1997)