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:

Rounding problem (1998) [WebDNA] Ubuntu 18.04.2 ??? (2019) [WebDNA] Host List (2010) Limit to Field Length in DB (1998) [WebDNA] An actual attempt to get WebDNA and MAMP Pro to work - (2018) User/pass with tcpconnect (2000) Date search - yes or no (1997) Tiny Store (1998) OT: SpiderBotLock! (2003) searching with groups (1997) WebCatalog Technical Reference (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Serial Number Issue (2000) Multiple Pulldowns (1997) Multiple Sendmail Tags on One Page (2008) Online reference (1997) Server complaining about reaching connection limit (2003) [format] problems (2000) RE: [WebDNA] [OT] the "Work in progress" thread. (2009) Permissions with 3.06 Linux (2000)