Re: [showif] with !

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 36032
interpreted = N
texte = On 8/10/00 12:55 pm, Kim Ingram so noted...>I know it's been a few days, but for those of you following this >thread....the [title_req] is coming from a form, but the problem isn't >coming 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...and >I don't think WebCatalog knows what to do with it. I've tried the >following: > >[showif [url][title_req][/url]!][text]complete=F[/text][/showif]Odd, this one works for me. For any non-empty value of [title_req] (including ending with !), [complete] = F. For an empty value in [title_req], [complete] equals the raw [complete]. Is that not the behavior you're trying to accomplish?>[showif [title_req]![raw][title_req][/raw]][text]complete=F[/text][/showif]Since you're not [url]ling [title_req] in this case, there's the potential problems here if [title_req] contains any of the [showif] comparisons. Rule this one out : )>[showif >[url][title_req][/url]![raw][title_req][/raw]][text]complete=F[/text][/showi >f]For this one, [complete] will *always* be F -- regardless of the contents or existence of [title_req] the comparison will always be true. It looks like all of these are trying to do the opposite of what you're looking for -- for [complete] to equal F if [title_req] is empty. Why not just...[showif [url][title_req][/url]=][text]complete=F[/text][/showif]Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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:

    
  1. Re: [showif] with ! (John Peacock 2000)
  2. Re: [showif] with ! (John Butler 2000)
  3. Re: [showif] with ! (Kim Ingram 2000)
  4. Re: [showif] with ! (Rob Marquardt 2000)
  5. Re: [showif] with ! (John Peacock 2000)
  6. Re: [showif] with ! (Kim Ingram 2000)
  7. Re: [showif] with ! (Aaron Lynch 2000)
  8. Re: [showif] with ! (John Butler 2000)
  9. Re: [showif] with ! (John Davies 2000)
  10. Re: [showif] with ! (Kim Ingram 2000)
  11. Re: [showif] with ! (Gary Krockover 2000)
  12. Re: [showif] with ! (Kim Ingram 2000)
  13. Re: [showif] with ! (Kim Ingram 2000)
  14. Re: [showif] with ! (Anup Setty 2000)
  15. Re: [showif] with ! (Charles Kline 2000)
  16. [showif] with ! (Kim Ingram 2000)
On 8/10/00 12:55 pm, Kim Ingram so noted...>I know it's been a few days, but for those of you following this >thread....the [title_req] is coming from a form, but the problem isn't >coming 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...and >I don't think WebCatalog knows what to do with it. I've tried the >following: > >[showif [url][title_req][/url]!][text]complete=F[/text][/showif]Odd, this one works for me. For any non-empty value of [title_req] (including ending with !), [complete] = F. For an empty value in [title_req], [complete] equals the raw [complete]. Is that not the behavior you're trying to accomplish?>[showif [title_req]![raw][title_req][/raw]][text]complete=F[/text][/showif]Since you're not [url]ling [title_req] in this case, there's the potential problems here if [title_req] contains any of the [showif] comparisons. Rule this one out : )>[showif >[url][title_req][/url]![raw][title_req][/raw]][text]complete=F[/text][/showi >f]For this one, [complete] will *always* be F -- regardless of the contents or existence of [title_req] the comparison will always be true. It looks like all of these are trying to do the opposite of what you're looking for -- for [complete] to equal F if [title_req] is empty. Why not just...[showif [url][title_req][/url]=][text]complete=F[/text][/showif]Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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/ Rob Marquardt

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:

WebCatalog not running after upgrade (2000) still having shipCost.db Problem (1997) customizing the color of user's pages (1997) slow site (2003) [WebDNA] [OT] Looking for work (2011) Re:Copyright ? (1997) Problems problems problems (1997) [BULK] RE: [WebDNA] RE: Error. WebDNA (version 5.1g or later) is not running. (2012) Exporting from Excel (1998) Hiding files/images. (2000) Error Type 3 (1999) Public beta 4 of WebCatalog 4.0 is now available (2000) WebCat2 - [include] tags (1997) WebCatb15 Mac CGI -- [purchase] (1997) WebCat2 - Getting to the browser's username/password data (1997) PCS Frames (1997) emailer error -108 (1997) Document Contains No Data! (1997) WebMerchant Question (2000) japanese characters (1997)