Re: [showif] with !
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 36029
interpreted = N
texte = > Figure out where the value of [title_req] is coming from.>> Is it a db field? or is it a formvar?>> When displaying the value of [somevar] on a page:>> if [somevar]'s value is coming from a formvar, then it will> display as [somevar]> IF that formvar has NOT been passed in (like with a checkbox that> was not checked), BUT>> if [somevar]'s value is coming from a formvar, then it will> display as (that's> nothing at all in between those quote marks) WHEN that formvar> has been passed in w/ a> value equal to the null string (i.e. it = zero characters), BUT>> if [somevar]'s value is coming from a db field, then it will> display as (that's> nothing at all in between those quote marks) WHEN that db field> has nothing in it.>>> so in your case I have to assume that> [showif [url][title_req][/url]!][text]complete=F[/text][/showif]> does not evaluate to show its contents because 'title_req' has> NOT been assigned the> null string value, which is what you are comparing to.I know it's been a few days, but for those of you following thisthread....the [title_req] is coming from a form, but the problem isn'tcoming from when it is left blank. Everything works fine when the[title_req] is left blank. The problem is coming from when[title_req]=Anything Ending with !, because that puts two !'s in a row...andI don't think WebCatalog knows what to do with it. I've tried thefollowing:[showif [url][title_req][/url]!][text]complete=F[/text][/showif][showif [title_req]![raw][title_req][/raw]][text]complete=F[/text][/showif][showif[url][title_req][/url]![raw][title_req][/raw]][text]complete=F[/text][/showif]With each of the above, examples, complete=F does show, and I don't wantit to. I want [title_req] to be anything but blank...not anything but blankor ending with ! Does this make sense at all?Anyway, for those of you who need to know, John Davies' solution workedexcellent in this case.[showif[countchars][title_req][/countchars]=0][text]complete=F[/text][/showif]This is the only code so far that will allow [title_req] to be anything butblank.-------------------------------------------------------------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:
> Figure out where the value of [title_req] is coming from.>> Is it a db field? or is it a formvar?>> When displaying the value of [somevar] on a page:>> if [somevar]'s value is coming from a formvar, then it will> display as [somevar]> IF that formvar has NOT been passed in (like with a checkbox that> was not checked), BUT>> if [somevar]'s value is coming from a formvar, then it will> display as (that's> nothing at all in between those quote marks) WHEN that formvar> has been passed in w/ a> value equal to the null string (i.e. it = zero characters), BUT>> if [somevar]'s value is coming from a db field, then it will> display as (that's> nothing at all in between those quote marks) WHEN that db field> has nothing in it.>>> so in your case I have to assume that> [showif [url][title_req][/url]!][text]complete=F[/text][/showif]> does not evaluate to show its contents because 'title_req' has> NOT been assigned the> null string value, which is what you are comparing to.I know it's been a few days, but for those of you following thisthread....the [title_req] is coming from a form, but the problem isn'tcoming from when it is left blank. Everything works fine when the[title_req] is left blank. The problem is coming from when[title_req]=Anything Ending with !, because that puts two !'s in a row...andI don't think WebCatalog knows what to do with it. I've tried thefollowing:[showif [url][title_req][/url]!][text]complete=F[/text][/showif][showif [title_req]![raw][title_req][/raw]][text]complete=F[/text][/showif][showif[url][title_req][/url]![raw][title_req][/raw]][text]complete=F[/text][/showif]With each of the above, examples, complete=F does show, and I don't wantit to. I want [title_req] to be anything but blank...not anything but blankor ending with ! Does this make sense at all?Anyway, for those of you who need to know, John Davies' solution workedexcellent in this case.[showif[countchars][title_req][/countchars]=0][text]complete=F[/text][/showif]This is the only code so far that will allow [title_req] to be anything butblank.-------------------------------------------------------------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/
Kim Ingram
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:
Stopping bad HTML propagation ? (1997)
I forgot (1998)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
WebCat2 - Getting to the browser's username/password data (1997)
Forms Search Questions (1997)
[WebDNA] max=0 returns all records (2010)
Shopping cart now bad (1997)
[WebDNA] Friday February 13, 2009 (2009)
Forms IMG tag[OT] (2001)
Fed Ex Rate Charts (2003)
[WebDNA] agree? --> [url] broken inside [redirect], on a square-bracket-style include, included from a XML-style page (2009)
[WebDNA] WebDNA 7 (2011)
Deleting Orders (1997)
Cookies and domains (2006)
Document Contains No Data! (1997)
[format 40s]text[/format] doesn't work (1997)
history file (2002)
Error Type 3 (1999)
[showif]/[hideif] question (1997)
Sort Issues (2000)