Re: [WebDNA] showif with empty variable

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112170
interpreted = N
texte = --001a113d660aaf54190511339cbb Content-Type: text/plain; charset=UTF-8 [showif [url][selector][/url]=[url][raw][selector][/raw][/url]] Be sure to [url] all comparisons by default in case [selector] contains nasties like ! or contains xss scripting or something, etc. [showif [url][selector][/url]=[url]home[/url]] [include home_page.inc] [/showif] [showif [url][selector][/url]=[url]local[/url]] [include local_page.inc] [/showif] Technically, the second set of [url]s in this case ([url]home[/url] & [url]local[/url]) are not needed, but still good habit. -Dan Strong http://danstrong.com http://sw.amphou.se On Fri, Mar 13, 2015 at 3:59 PM, Steve Braun wrote: > Hi All, > I am having an 'age-old' problem with webDNA. > I want to use a showif tag with an empty variable. > I've read some of the archives, but they don't seem to apply. > > This works: > [showif [selector]=home] [include home_page.inc] [/showif] > [showif [selector]=local] [include local_page.inc] [/showif] > > How do I make this work? > [showif [selector]=] [include blank_page.inc] [/showif] > > Thanks for any assistance. > > Stephen F Braun > sbraun1@twcny.rr.com > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --001a113d660aaf54190511339cbb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
[showif [url][selector][/url]=3D[url][raw][selector][/raw][/url]<= span style=3D"color:rgb(0,0,0);font-size:12.8000001907349px">]

=
Be sure to [url] all comparisons by default in case [selector] co= ntains nasties like ! or contains xss scripting or something, etc.

[showif=C2=A0[url][selector][/url]=3D[url]home[/url]]=C2=A0=C2=A0=C2=A0 [include home_page.inc]= =C2=A0=C2=A0 [/showif] =C2=A0 =C2=A0
[showif=C2=A0[url][selector][/url]=3D[url]local[/url]]=C2= =A0=C2=A0=C2=A0 [include local_page.inc]=C2=A0=C2=A0 [/showif]
=

Technically, the second set of [url]s in this case ([url]home[/url]=C2=A0&=C2=A0= [url]local[/u= rl]) a= re not needed, but still good habit.


-Dan Strong
http://danstrong.com

On Fri, Mar 13, 2015 at 3:59 PM, Steve Braun= <sbraun1@twcny.rr.com> wrote:
Hi All,
I am having an = 9;age-old' problem with webDNA.
I want to use a showif tag wit= h an empty variable.
I've read some of the archives, but = they don't seem to apply.

This works:
[showif [sel= ector]=3Dhome]=C2=A0=C2=A0=C2=A0 [include home_page.inc]=C2=A0=C2=A0 [/show= if]=C2=A0=C2=A0=C2=A0
[showif [selector]=3Dlocal]=C2=A0=C2=A0=C2=A0 [in= clude local_page.inc]=C2=A0=C2=A0 [/showif]=C2=A0=C2=A0=C2=A0

How d= o I make this work?
[showif [selector]=3D]=C2=A0=C2=A0=C2=A0 [include bl= ank_page.inc]=C2=A0=C2=A0 [/showif]=C2=A0=C2=A0=C2=A0

Thanks = for any assistance.

<= div>Stephen F Braun
sbraun1@twcny.rr.com
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--001a113d660aaf54190511339cbb-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] showif with empty variable (Brian Burton 2015)
  2. Re: [WebDNA] showif with empty variable (Donovan Brooke 2015)
  3. Re: [WebDNA] showif with empty variable (Brian Burton 2015)
  4. Re: [WebDNA] showif with empty variable (Donovan Brooke 2015)
  5. Re: [WebDNA] showif with empty variable (Dan Strong 2015)
  6. Re: [WebDNA] showif with empty variable (Terry Wilson 2015)
  7. Re: [WebDNA] showif with empty variable (Kenneth Grome 2015)
  8. Re: [WebDNA] showif with empty variable (Steve Braun 2015)
  9. Re: [WebDNA] showif with empty variable (Steve Braun 2015)
  10. Re: [WebDNA] showif with empty variable (Kenneth Grome 2015)
  11. Re: [WebDNA] showif with empty variable (Donovan Brooke 2015)
  12. Re: [WebDNA] showif with empty variable (Brian Burton 2015)
  13. Re: [WebDNA] showif with empty variable (Terry Wilson 2015)
  14. Re: [WebDNA] showif with empty variable (Dan Strong 2015)
  15. [WebDNA] showif with empty variable (Steve Braun 2015)
--001a113d660aaf54190511339cbb Content-Type: text/plain; charset=UTF-8 [showif [url][selector][/url]=[url][raw][selector][/raw][/url]] Be sure to [url] all comparisons by default in case [selector] contains nasties like ! or contains xss scripting or something, etc. [showif [url][selector][/url]=[url]home[/url]] [include home_page.inc] [/showif] [showif [url][selector][/url]=[url]local[/url]] [include local_page.inc] [/showif] Technically, the second set of [url]s in this case ([url]home[/url] & [url]local[/url]) are not needed, but still good habit. -Dan Strong http://danstrong.com http://sw.amphou.se On Fri, Mar 13, 2015 at 3:59 PM, Steve Braun wrote: > Hi All, > I am having an 'age-old' problem with webDNA. > I want to use a showif tag with an empty variable. > I've read some of the archives, but they don't seem to apply. > > This works: > [showif [selector]=home] [include home_page.inc] [/showif] > [showif [selector]=local] [include local_page.inc] [/showif] > > How do I make this work? > [showif [selector]=] [include blank_page.inc] [/showif] > > Thanks for any assistance. > > Stephen F Braun > sbraun1@twcny.rr.com > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --001a113d660aaf54190511339cbb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
[showif [url][selector][/url]=3D[url][raw][selector][/raw][/url]<= span style=3D"color:rgb(0,0,0);font-size:12.8000001907349px">]

=
Be sure to [url] all comparisons by default in case [selector] co= ntains nasties like ! or contains xss scripting or something, etc.

[showif=C2=A0[url][selector][/url]=3D[url]home[/url]]=C2=A0=C2=A0=C2=A0 [include home_page.inc]= =C2=A0=C2=A0 [/showif] =C2=A0 =C2=A0
[showif=C2=A0[url][selector][/url]=3D[url]local[/url]]=C2= =A0=C2=A0=C2=A0 [include local_page.inc]=C2=A0=C2=A0 [/showif]
=

Technically, the second set of [url]s in this case ([url]home[/url]=C2=A0&=C2=A0= [url]local[/u= rl]) a= re not needed, but still good habit.


-Dan Strong
http://danstrong.com

On Fri, Mar 13, 2015 at 3:59 PM, Steve Braun= <sbraun1@twcny.rr.com> wrote:
Hi All,
I am having an = 9;age-old' problem with webDNA.
I want to use a showif tag wit= h an empty variable.
I've read some of the archives, but = they don't seem to apply.

This works:
[showif [sel= ector]=3Dhome]=C2=A0=C2=A0=C2=A0 [include home_page.inc]=C2=A0=C2=A0 [/show= if]=C2=A0=C2=A0=C2=A0
[showif [selector]=3Dlocal]=C2=A0=C2=A0=C2=A0 [in= clude local_page.inc]=C2=A0=C2=A0 [/showif]=C2=A0=C2=A0=C2=A0

How d= o I make this work?
[showif [selector]=3D]=C2=A0=C2=A0=C2=A0 [include bl= ank_page.inc]=C2=A0=C2=A0 [/showif]=C2=A0=C2=A0=C2=A0

Thanks = for any assistance.

<= div>Stephen F Braun
sbraun1@twcny.rr.com
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--001a113d660aaf54190511339cbb-- Dan Strong

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:

Add to Cart & List of Products (1997) Navigator 4.01 (1997) Duplicate Cart Problem in Netscape (2000) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Forcing a NEWCART (1997) searchable list archive (1997) I'm having trouble using [url][interpret][math] together in lookup (1997) WebMerchant Problem (1999) ShowNext for method=POST (1997) [WebDNA] Image resizing on the fly (2012) Test (2003) WebDNA Solutions ... sorry! (1997) Template - Inventory (2000) Re[3]: 2nd WebCatalog2 Feature Request (1996) expired beta (1997) MacAuthorize hub, no modal password dialog? (1997) SetMIMEHeader Behaviour (2000) Tcp connect (2002) RE: Languages (1997) Is [thisurl] http or https? (1998)