Re: [Solved? - with code] catching WebDNA error messages

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49406
interpreted = N
texte = Lucas Rockwell wrote:> Hi all, > > Thanks again to Pedro for helping out with this one. > > If anyone is interested in the code for doing this, here is what I > came up with: > > [Hideif [FormVariables]page=[/FormVariables]]Right here you are looping through all the formvariables with a result something like this.[Hideif page=page=page=page=] etc.. depending on how many variables are being passed. This is an invalid use of the hideif command (unless I'm not seeing something correctly).The rest of the code looks O.K.This should work also... inside the errormessages.dbName Message ----------------- Change this: ------------------ TemplateNotFound Error: template '[param1]' not found----- To: ---- TemplateNotFound [showif [param1]^one][redirect url=http://domain.one.com/index.html][/showif][showif [param1]^two][redirect url=http://domain.two.com/index.html][/showif](etc.. if you have more than one domain on a WebDNA machine or sandbox)But even though Pedro's code is required on any page that uses your techniques and might take a bit more processing time, I like it better because something from the core WebDNA Function is not being edited.Donovan> > > -lucas > -- * * |\ /| |/========================================\| ||---------* DONOVAN D. BROOKE *----------|| ||Administrator of IT / Assc. Art Director|| || EPSEN HILLMER GRAPHICS || || 2000 California St. || || Omaha, NE 68132 || ||----------------------------------------|| || http://www.hgproforms.com/ || || http://www.ehg.net/ || |\========================================/| |/ \| * *------------------------------------------------------------- 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: [Solved? - with code] catching WebDNA error messages (Lucas Rockwell 2003)
  2. Re: [Solved? - with code] catching WebDNA error messages (Donovan 2003)
Lucas Rockwell wrote:> Hi all, > > Thanks again to Pedro for helping out with this one. > > If anyone is interested in the code for doing this, here is what I > came up with: > > [Hideif [formvariables]page=[/FormVariables]]Right here you are looping through all the formvariables with a result something like this.[Hideif page=page=page=page=] etc.. depending on how many variables are being passed. This is an invalid use of the hideif command (unless I'm not seeing something correctly).The rest of the code looks O.K.This should work also... inside the errormessages.dbName Message ----------------- Change this: ------------------ TemplateNotFound Error: template '[param1]' not found----- To: ---- TemplateNotFound [showif [param1]^one][redirect url=http://domain.one.com/index.html][/showif][showif [param1]^two][redirect url=http://domain.two.com/index.html][/showif](etc.. if you have more than one domain on a WebDNA machine or sandbox)But even though Pedro's code is required on any page that uses your techniques and might take a bit more processing time, I like it better because something from the core WebDNA Function is not being edited.Donovan> > > -lucas > -- * * |\ /| |/========================================\| ||---------* DONOVAN D. BROOKE *----------|| ||Administrator of IT / Assc. Art Director|| || EPSEN HILLMER GRAPHICS || || 2000 California St. || || Omaha, NE 68132 || ||----------------------------------------|| || http://www.hgproforms.com/ || || http://www.ehg.net/ || |\========================================/| |/ \| * *------------------------------------------------------------- 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/ Donovan

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:

New Problem (1997) ConvertCharacters (2000) WebCatalog for guestbook ? (1997) What file? (1997) Re:2nd WebCatalog2 Feature Request (1996) SIMS setup (1998) WebCat2 Append problem (B14Macacgi) (1997) how many tags? (2001) OSX (2002) Satisfy Me ! (2000) Nested [tags] (2001) Help! WebCat2 bug (1997) passing the variable (1999) Globals Permissions (2003) [WebDNA] Installing 6.0 onto Server 2008 (2011) search for non-unique question (2001) anyone moved to v6? (2004) Help! WebCat2 bug (1997) expired beta (1997) Template transformed itself into a database? (1998)