Re[2]: Weird [blank] interpretation

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 25595
interpreted = N
texte = Ah, but do you understand _why_ that fixes it? Look at the [HideIf] after the the variables have been interpolated: [hideif [shiptoaddress1]=] becomes [hideif Don't open Until Christmas!=]which is interpreted as [hideif Don't open Until Christmas != ] which is clearly false.Always [URL] _both_ sides of your HideIf/ShowIf comparisons; you can't go wrong.HTHJohn Peacock____________________Reply Separator____________________ Subject: Re: Weird [blank] interpretation Author: (WebCatalog Talk) Date: 12/17/99 10:32 AMCharles--That did it! Thanks for the help.Best, MauriceAt 10:26 AM 12/17/99, Charles Kline wrote: >wrap them in [url]'s the ! in the record is screwing things up. > > >[url] [shiptoaddress1][/url] > >will fix this problem. > >- Charles > > >Here's something very odd. I've got code that checks to see if the > >shiptoaddress in one of our dbs is blank. If it is, it prints out > >the billing address and hides the shipping address. > > > >The problem is that on one entry, WebCatalog is interpreting the > >shipto as blank, even when it has data in it. > > > >The code: > > > >[hideif [shiptoaddress1]=] > >[shiptoname]
> >[ShipToAddress1]
> >[hideif [shiptoaddress2]=][shiptoaddress2]
[/hideif] > > > >[ShipToCity], [shiptostate] [shiptozip] [shiptocountry]
> >[/hideif] > > > >[showif [shiptoaddress1]=] > >[name]
> >[Address1]
> >[hideif [address2]=][address2]
[/hideif] > >[City], [state] [zip] [country]
> >[/showif] > > > > > >The one customer for whom this is happening has a shiptoaddress1 that > >contains this text: Don't open Until Christmas! > > > >In other words, if I put a [shiptoaddress1] outside of the hideif, > >the text string displays on the page. If I look in the db, I see the > >text string just as I do when it displays--no extra funky characters, > >no spaces, no weird stuff. Anyone have any ideas what gives? > > > >Thanks, > > > >Maurice Rickard | GreenMarketplace.com: > >Director of Creative & Production | Natural Products for you > >http://www.greenmarketplace.com/ | and your planet. > > >-- >_______________________________________________________________ >Charles Kline ckline@macsultants.com >WebMaster - eCommerce Specialist > >MacSultants >Professional Solutions for Computer Systems > >Phone# 856-273-3255 >Fax# 856-273-3721Maurice Rickard | GreenMarketplace.com: Director of Creative & Production | Natural Products for you http://www.greenmarketplace.com/ | and your planet.------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Associated Messages, from the most recent to the oldest:

    
  1. Re[2]: Weird [blank] interpretation (jpeacock@univpress.com 1999)
Ah, but do you understand _why_ that fixes it? Look at the [hideif] after the the variables have been interpolated: [hideif [shiptoaddress1]=] becomes [hideif Don't open Until Christmas!=]which is interpreted as [hideif Don't open Until Christmas != ] which is clearly false.Always [url] _both_ sides of your HideIf/ShowIf comparisons; you can't go wrong.HTHJohn Peacock____________________Reply Separator____________________ Subject: Re: Weird [blank] interpretation Author: (WebCatalog Talk) Date: 12/17/99 10:32 AMCharles--That did it! Thanks for the help.Best, MauriceAt 10:26 AM 12/17/99, Charles Kline wrote: >wrap them in [url]'s the ! in the record is screwing things up. > > >[url] [shiptoaddress1][/url] > >will fix this problem. > >- Charles > > >Here's something very odd. I've got code that checks to see if the > >shiptoaddress in one of our dbs is blank. If it is, it prints out > >the billing address and hides the shipping address. > > > >The problem is that on one entry, WebCatalog is interpreting the > >shipto as blank, even when it has data in it. > > > >The code: > > > >[hideif [shiptoaddress1]=] > >[shiptoname]
> >[ShipToAddress1]
> >[hideif [shiptoaddress2]=][shiptoaddress2]
[/hideif] > > > >[ShipToCity], [shiptostate] [shiptozip] [shiptocountry]
> >[/hideif] > > > >[showif [shiptoaddress1]=] > >[name]
> >[Address1]
> >[hideif [address2]=][address2]
[/hideif] > >[City], [state] [zip] [country]
> >[/showif] > > > > > >The one customer for whom this is happening has a shiptoaddress1 that > >contains this text: Don't open Until Christmas! > > > >In other words, if I put a [shiptoaddress1] outside of the hideif, > >the text string displays on the page. If I look in the db, I see the > >text string just as I do when it displays--no extra funky characters, > >no spaces, no weird stuff. Anyone have any ideas what gives? > > > >Thanks, > > > >Maurice Rickard | GreenMarketplace.com: > >Director of Creative & Production | Natural Products for you > >http://www.greenmarketplace.com/ | and your planet. > > >-- >_______________________________________________________________ >Charles Kline ckline@macsultants.com >WebMaster - eCommerce Specialist > >MacSultants >Professional Solutions for Computer Systems > >Phone# 856-273-3255 >Fax# 856-273-3721Maurice Rickard | GreenMarketplace.com: Director of Creative & Production | Natural Products for you http://www.greenmarketplace.com/ | and your planet.------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 jpeacock@univpress.com

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:

Developer Links Exchange (2003) select multiple (1997) Seeking Better Display of results... (1997) Enhancement Request for WebCatalog-NT (1996) Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997) Showif for mulitple variations (1997) What abobut variables named max ??? (2000) Online reference (1997) Initiating NewCart (1997) [WebDNA] Hmmm ... (2008) WebCat2final1 crashes (1997) 2.0Beta Command Ref (can't find this instruction) (1997) New random discoveries? (2005) ShowNext for method=POST (1997) [OT] ImageMagick error (2004) Re:Need help... (1997) F3 crashing server (1997) Post Test (2008) item sorting (1997) WebMerchant and PCAuthorize (1998)