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 thethe 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 youhttp://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:
|
- Re[2]: Weird [blank] interpretation (jpeacock@univpress.com 1999)
|
Ah, but do you understand _why_ that fixes it? Look at the [hideif] after thethe 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 youhttp://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:
Adding up line items. (2000)
Hierarchy of form/text/math variables (renamed thread) (2000)
NT Version on IIS 4.0 (1997)
[WebDNA] Conditional search (2009)
# of real domains on 1 web server (1997)
Running 2 two WebCatalog.acgi's (1996)
Help! WebCat2 bug (1997)
Obscure Question of the day (1997)
Cold Fusion Buster (1997)
SiteGuard Use Question (1997)
WC1.6 to WC2 date formatting (1997)
WebMerchant docs and testing (2000)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Attn: Bug in GeneralStore example b15 (1997)
Reserved word? (2005)
WCS Newbie question (1997)
[WebDNA] maybe silly suggestion? [founditems] (2015)
SMSI FTP - calander system (2002)
RE: format problem on NT? (1997)
WebCat2 - many [carts] on one template page? (1997)