Re: Case statement

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 53152
interpreted = N
texte = Further tests [text]myDomain=[Middle StartAfter=.&EndBefore=][DOMAIN][/middle][/text] [Switch value=[myDomain]] [Case value=com] [FuncNameA domain=[domain]] [/Case] [Case value=net] [FuncNameB domain=[domain]] [/Case] [Case value=org] [FuncNameC domain=[domain]] [/Case] [Default] Whatever I want in here [/Default] [/Switch] [function name=FuncNameA]

Some Text Here [domain]

[/function] If I hit this page with "page.tpl?domain=asylumweb.com" to my way of thinking I should get

Some Text Here asylumweb.com

What I get is [NicWhoisA domain=asylumweb.com] which is the correct case line but WebDNA does not seem to be parsing the [function] just the [domain]. Any help much appreciated. ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1224 642960 Fax +44 1224 642962 ======================================== http://www.asylumweb.com Email: steve@asylumweb.com ======================================== > From: John Peacock > Reply-To: (WebDNA Talk) > Date: Fri, 26 Sep 2003 12:09:00 -0400 > To: (WebDNA Talk) > Subject: Re: Case statement > > Steve Craig wrote: >> [text show=T]myDomain=[Middle >> StartAfter=.&EndBefore=][DOMAIN][/middle][/text] >> >> [Switch value=[myDomain]] >> [Case value=com] >> [FuncNameA domain=[domain]] >> [/Case] >> [Case value=net] >> [FuncNameB domain=[domain]] >> [/Case] >> [Case value=org] >> [FuncNameC domain=[domain]] >> [/Case] >> [Default] >> Whatever I want in here >> [/Default] >> [/Switch] >> > > You can test the [switch] by hardcoding [mydomain] to something and make sure > that works, first. Then you need to make sure that your [function] > declarations > are active in the page (take that call out of the [switch] statement. > Finally, > if all that works, there is a bug with [function] and [switch]... > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4501 Forbes Boulevard > Suite H > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5748 > > > ------------------------------------------------------------- > 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 > > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Case statement ( Steve Craig 2003)
  2. Re: Case statement ( Grant Hulbert 2003)
  3. Re: Case statement ( Donovan 2003)
  4. Re: Case statement ( Steve Craig 2003)
  5. Re: Case statement ( Steve Craig 2003)
  6. Re: Case statement ( John Peacock 2003)
  7. Re: Case statement ( Donovan 2003)
  8. Re: Case statement ( Donovan 2003)
  9. Re: Case statement ( Steve Craig 2003)
  10. Re: Case statement ( "Andrew Simpson" 2003)
  11. Case statement ( Steve Craig 2003)
  12. issues with nested case statements? (Andrew Simpson 2001)
Further tests [text]myDomain=[Middle StartAfter=.&EndBefore=][DOMAIN][/middle][/text] [Switch value=[myDomain]] [Case value=com] [FuncNameA domain=[domain]] [/Case] [Case value=net] [FuncNameB domain=[domain]] [/Case] [Case value=org] [FuncNameC domain=[domain]] [/Case] [Default] Whatever I want in here [/Default] [/Switch] [function name=FuncNameA]

Some Text Here [domain]

[/function] If I hit this page with "page.tpl?domain=asylumweb.com" to my way of thinking I should get

Some Text Here asylumweb.com

What I get is [NicWhoisA domain=asylumweb.com] which is the correct case line but WebDNA does not seem to be parsing the [function] just the [domain]. Any help much appreciated. ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1224 642960 Fax +44 1224 642962 ======================================== http://www.asylumweb.com Email: steve@asylumweb.com ======================================== > From: John Peacock > Reply-To: (WebDNA Talk) > Date: Fri, 26 Sep 2003 12:09:00 -0400 > To: (WebDNA Talk) > Subject: Re: Case statement > > Steve Craig wrote: >> [text show=T]myDomain=[Middle >> StartAfter=.&EndBefore=][DOMAIN][/middle][/text] >> >> [Switch value=[myDomain]] >> [Case value=com] >> [FuncNameA domain=[domain]] >> [/Case] >> [Case value=net] >> [FuncNameB domain=[domain]] >> [/Case] >> [Case value=org] >> [FuncNameC domain=[domain]] >> [/Case] >> [Default] >> Whatever I want in here >> [/Default] >> [/Switch] >> > > You can test the [switch] by hardcoding [mydomain] to something and make sure > that works, first. Then you need to make sure that your [function] > declarations > are active in the page (take that call out of the [switch] statement. > Finally, > if all that works, there is a bug with [function] and [switch]... > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4501 Forbes Boulevard > Suite H > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5748 > > > ------------------------------------------------------------- > 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 > > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Steve Craig

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:

U&P IIS concept (1998) Server IP address (2004) & in Lookups (1997) PCS Customer submissions ? (1997) WebDNA install - linux (permissions rehash?) (2002) WebCat2b15MacPlugin - showing [math] (1997) Bug? (1997) off-topic - printinglib 68K (1997) Multi-processor Mac info ... (1997) Country & Ship-to address & other fields ? (1997) webcat NT (1998) WebDNA vs PHP (2003) WebCatalog and WebMerchant reviewed by InfoWorld (1997) converting tabs (1997) Range compare... (2000) Cart # Starting at 1000 (2000) Searching for all records (1998) ERASING DATABASE (1997) [shownext] and sort (1998) Search returns all, not 20 (1997)