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'mnot 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:
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'mnot 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:
Newbie Tax Question (1997)
WebDNA Examples (Was Suggestions) (1998)
cookie based login process (2004)
FEW QUESTIONS (1997)
Sorry WebCatalog server not running. (2002)
tcpconnect/tcpsend problem ... (2004)
[convertChars] and in a textarea on a form (1998)
Cookies (1998)
Never Mind - Was - Credit Card Processing (2000)
No shipping systems available? (1998)
Date problems (1997)
A question on sub-categories (1997)
[WebDNA] WSC Investors Repository (2008)
Populating a db from a form textarea (2005)
[WebDNA] Query re: autonumber (2010)
RE: protect tag on NT (1997)
I give up!! (1997)
New WebCatalog Version !!! (1997)
WebDNA 5.0 Questions (2003)
Register First (2000)