Nesting [RAW]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 15982
interpreted = N
texte = I am trying to have a [Writefile] command that writes out another file with [Writefile]The problem is nesting [RAW] tags. Is there any way to do this? I tried a few different things, sampled below. First I tried just nesting them. raw [Writefile file=raw2.html&Secure=F] [RAW] raw [RAW]Test[cart][INCLUDE endraw.inc] [/RAW] [/WriteFile] Raw2.html The resulting page that is written looks like this: raw [RAW]Test[cart] Error: Error: expected [/WRITEFILE], but found [/RAW] [/WriteFile] Raw2.html ] instead So, I tried putting the [/RAW] in an include file, endraw.inc, like this: raw [Writefile file=raw2.html&Secure=F] [RAW] raw [RAW]Test[cart][INCLUDE endraw.inc] [/RAW] [/WriteFile] Raw2.html That writes out this page, which is served as a blank page by Webstar. The page served doesn't even have the HTML tags on it. raw [RAW]Test[cart][INCLUDE endraw.inc] So, next I try this: raw [Writefile file=raw2.html&Secure=F] [RAW] raw [RAW]Test[cart][/RAW][INCLUDE endraw.inc][RAW] [/RAW] [/WriteFile] Raw2.html That gives this: raw [RAW]Test[cart]Error: Error: expected [/APPLICATION], but found [/RAW] ] instead If anyone has any ideas, please let me know!Thanks. -- Trevor Crist Digital Frontier Stowe, Vermont http://www.digitalfrontier.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Nesting [RAW] (Grant Hulbert 1998)
  2. Re: Nesting [RAW] (Sandra L. Pitner 1998)
  3. Nesting [RAW] (Trevor Crist 1998)
I am trying to have a [writefile] command that writes out another file with [writefile]The problem is nesting [raw] tags. Is there any way to do this? I tried a few different things, sampled below. First I tried just nesting them. raw [Writefile file=raw2.html&Secure=F] [raw] raw [raw]Test[cart][INCLUDE endraw.inc] [/RAW] [/WriteFile] Raw2.html The resulting page that is written looks like this: raw [raw]Test[cart] Error: Error: expected [/WRITEFILE], but found [/RAW] [/WriteFile] Raw2.html ] instead So, I tried putting the [/RAW] in an include file, endraw.inc, like this: raw [Writefile file=raw2.html&Secure=F] [raw] raw [raw]Test[cart][INCLUDE endraw.inc] [/RAW] [/WriteFile] Raw2.html That writes out this page, which is served as a blank page by Webstar. The page served doesn't even have the HTML tags on it. raw [raw]Test[cart][INCLUDE endraw.inc] So, next I try this: raw [Writefile file=raw2.html&Secure=F] [raw] raw [raw]Test[cart][/RAW][INCLUDE endraw.inc][raw] [/RAW] [/WriteFile] Raw2.html That gives this: raw [raw]Test[cart]Error: Error: expected [/APPLICATION], but found [/RAW] ] instead If anyone has any ideas, please let me know!Thanks. -- Trevor Crist Digital Frontier Stowe, Vermont http://www.digitalfrontier.com Trevor Crist

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:

WebCat2 Append problem (B14Macacgi) (1997) can WC render sites out? (1997) Newbie needs advice to learn to use WebDNA (2003) shipping costs (1997) WebCat2 - [format thousands] (1997) searching illegal HTML (2002) Help with database strategy (1998) What am I missing (1997) WebDNA Partner edition .. (2002) Deleting Multiple Database Records based on Checkbox (1998) [shell] (2002) Problems passing [SKU] with $Replace in 2.0 (1997) [WebDNA] [OT] hello (2012) errors 550, and 108 (1998) Sku numbers (1997) Weird problems with [SHOWIF]s (1997) when is date system date or order date? (1997) Sendmail truncation in Eudora Clients (1998) RE: Web*SSL and WebCatalog (1997) WebCat & WebTen (1997)