Re: [switch][case]

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57759
interpreted = N
texte = Basically I'm trying to build a controller file that will include every html file from a different site unless I override the page with a new command. This is the actual code I've built so far: [switch value=[url][getchars start=2][p][/getchars][/url]] [case value=index.html]  TEST [/case] [listfiles path=../new/] [showif [isfile]=t] [case value=[filename]] [include file=../new/[filename]] [/case] [/showif] [/listfiles] [default] [redirect controller.html?p=/index.html] [/default] [/switch] On May 11, 2004, at 4:52 PM, Dave Hurley wrote: > If you only want to display "One", what is the loop for? It seems > unnecessary. -- Jesse Williams-Proudman Blue Box Development :: Custom Web Solutions +1.206.778.8777 :: jesse@blueboxdev.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: [switch][case] ( Jesse Proudman 2004)
  2. Re: [switch][case] ( Brian Fries 2004)
  3. Re: [switch][case] ( "Nitai @ ComputerOil" 2004)
  4. Re: [switch][case] ( Jesse Proudman 2004)
  5. Re: [switch][case] ( Dave Hurley 2004)
  6. [switch][case] ( Jesse Proudman 2004)
Basically I'm trying to build a controller file that will include every html file from a different site unless I override the page with a new command. This is the actual code I've built so far: [switch value=[url][getchars start=2][p][/getchars][/url]] [case value=index.html]  TEST [/case] [listfiles path=../new/] [showif [isfile]=t] [case value=[filename]] [include file=../new/[filename]] [/case] [/showif] [/listfiles] [default] [redirect controller.html?p=/index.html] [/default] [/switch] On May 11, 2004, at 4:52 PM, Dave Hurley wrote: > If you only want to display "One", what is the loop for? It seems > unnecessary. -- Jesse Williams-Proudman Blue Box Development :: Custom Web Solutions +1.206.778.8777 :: jesse@blueboxdev.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/ Jesse Proudman

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:

RE: SSL and WebCatalog (1997) [WebDNA] WebDNA future (2010) Server Freeze (1998) Frames and WebCat (1997) Queertrons? (1997) replacing founditems ... (2002) webcat- multiple selection in input field (1997) [WebDNA] An actual attempt to get WebDNA and MAMP Pro to work - assistance (2018) document contains no data (1999) SQL Changes in 3.0.7? (2000) WebCat2b15MacPlugin - [protect] (1997) Referrer (2000) Instructions for Digest (1997) PCS Frames (1997) Nesting FoundItem Context (1997) default value from Lookup (was Grant, please help me) (1997) Trigger to empty shopping cart folder (2005) Resume Catalog ? (1997) strange problem listfiles and movefile (2000) Problems getting parameters passed into email. (1997)