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:

Variable prices and Formulas.db (1997) Search results output problems.. (2000) Ken Grome (2006) Car Database (2002) Plugin vs. CGI (1998) TaxTotal Problem (1997) Quit revisited (1997) Paradata/Moneris Gateway (2005) [SHOWIF] (1997) WebCatalog [FoundItems] Problem - LONG - (1997) Overridding E-Mailer (1998) [TaxableTotal] - not working with AOL and IE (1997) RE: [input] questions (1997) Safari browser and WebDNA set-cookies (2003) Extended [ConvertChars] (1997) Question re: Format command (2000) Emailer (1997) RE: EXTERNAL EMAIL: [WebDNA] find missing file in [listfiles] (2019) [WebDNA] v7 problem? (2012) form data submission gets truncated (1997)