Re: [Solved? - with code] catching WebDNA error messages
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 49408
interpreted = N
texte = Donovan,Thanks! It works great without the [FormVariables] tag:[Hideif [page]=] ...[/Hideif][Showif [page]=] [Redirect url=index.html][/Showif]-lucasOn Thursday, April 10, 2003, at 11:19 AM, Donovan wrote:> 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.db>> Name 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/>-------------------------------------------------------------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:
Donovan,Thanks! It works great without the [formvariables] tag:[Hideif [page]=] ...[/Hideif][Showif [page]=] [Redirect url=index.html][/Showif]-lucasOn Thursday, April 10, 2003, at 11:19 AM, Donovan wrote:> 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.db>> Name 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/>-------------------------------------------------------------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/
Lucas Rockwell
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:
Sorting error (1997)
Webcat interfering with Webstar? (1998)
Extended [ConvertChars] (1997)
ShowIf, If, XML Syntax.... (2004)
Protect tag for large groups? (1999)
Refresh cart# (1999)
RAM variables (1997)
AD Error Msg (1997)
Configuration Q (1998)
Weird Math and SV (1997)
Search (1997)
Math (1997)
Problems with [Applescript] (1997)
Webcatter Wanted (2000)
[index] (1997)
Setting up shop (1997)
[shownext max=?] armed (1997)
[date] formatting bug inside [orderfile]? (1998)
Bug or syntax error on my part? (1997)
4.5.1 (2003)