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-ProudmanBlue 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:
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-ProudmanBlue 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:
Running a store on BOTH http and https (1998)
apostrophe in search item (1997)
2nd WebCatalog2 Feature Request (1996)
[WebDNA] How to get a screen size (2009)
Thanks Grant (1997)
search vs lookup (1998)
webcat2b12 CGI -- Date comparisons (1997)
webdelivery.html and webna (1997)
Assign Variable Value (1998)
WebCatalog2 Feature Feedback (1996)
oops private message leaked into talk list (1997)
Help name our technology! I found it (1997)
WebCatalog for NT (1999)
Location of Browser Info.txt file (1997)
WebMechant (2000)
Search for 20 finds 2000, 200 Why? (1997)
[WebDNA] after latest OSX upgrade, WebDNA not running? (2011)
WC2b15 File Corruption (1997)
hidden (phantom) file downloads (2000)
Using Applescript to process WebCatalog functions (1998)