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:

Suddenly can't see files... (2000) Some Questions (1997) CGI Request Time Out (1997) Searching multiple Databases (1997) Server Freeze (1998) Smart caching problems with 2.1b3? (1997) Forms Search Questions (1997) Process SSI and WebCatalog.acgi (1998) Document Contains No Data! (1997) How to append text after the sign & (1997) Emailer Problem (2000) NT vs Mac (1997) WC2b15 File Corruption (1997) Major Security Hole (1998) Cookie still not working (1999) converting characters in form (1997) Username for Admin Group (1997) emailer (1997) GMT question (2004) Spontaneous Errors (2004)