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:

Upgrade to 4.0 (2001) Global replace (2000) Still trying to email... (1998) Variable is resetting itself... (2000) A few questions. . . (1997) need some help with tcpsend (2000) pulldown menu differences (2005) Date and Time Math (1997) Frames and WebCat (1997) Re:What file? (1997) F3 crashing server (1997) purchase.log file (1997) RE: Migrating to NT (1997) Large databases in WebCat (1997) [WebDNA] Encrypting INCLUDE files (2018) Custom WebCat Prefs ... (1997) [carts] and databases (1997) My URL, Your URL (2002) Re[2]: 2nd WebCatalog2 Feature Request (1996) Kaaaaahhhhhhhnnnnnnn! (1997)