Re: [defined]ish
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13516
interpreted = N
texte = >The consensus from the>messages in the archives seemed to be if you aren't passing that>parameter from every possible referring page, why are you checking for>it?, and everyone agreed WebDNA'd pages shouldn't be looking for>variables if there's a possibility that the variable wasn't passed to>it.WebDNA'd pages only look for what you tell them to look for. Ifthere's a possibility that a particular variable *might* have beenpassed or *should* have been passed, then you probably want to lookfor that variable unless you're just passing it on to the next pagein the sequence.The message archives were probably referring to the [cart] valuewhich is used for special situations, not for what you're trying todo - but it may be relevant to your needs anyways.The only place you *must* pass variables is to the places where theyare needed. You just have to remember that any link or form on thepage can be used to move around in a site, so you have to make surethose links or forms include the variables you may need on the pagesthose links and forms lead to ...>Am I missing something here? The index.tmpl page would work fine,>offering the discount when the refferer variable was Macintouch,>but what if someone hit the index.tmpl page directly?When someone hits the page directly, the [referrer] tag would nothave Macintouch in it (or whatever else you're looking for in thereferrer) so there would be no [referrer] and the test in your showifcontext would fail, thus the showif stuff would NOT be executed.>Where would the refferer variable be, or how would I deal with>it being undefined?That's why you use [showif] contexts ... to do something special whenthe correct referrer is used ... and to NOT do those things when adifferent referrer is used.By the way, referrer is the correct spelling of this tag (notrefferer, so make sure you spell it correctly in your WebDNA or itwon't work ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Associated Messages, from the most recent to the oldest:
>The consensus from the>messages in the archives seemed to be if you aren't passing that>parameter from every possible referring page, why are you checking for>it?, and everyone agreed WebDNA'd pages shouldn't be looking for>variables if there's a possibility that the variable wasn't passed to>it.WebDNA'd pages only look for what you tell them to look for. Ifthere's a possibility that a particular variable *might* have beenpassed or *should* have been passed, then you probably want to lookfor that variable unless you're just passing it on to the next pagein the sequence.The message archives were probably referring to the
[cart] valuewhich is used for special situations, not for what you're trying todo - but it may be relevant to your needs anyways.The only place you *must* pass variables is to the places where theyare needed. You just have to remember that any link or form on thepage can be used to move around in a site, so you have to make surethose links or forms include the variables you may need on the pagesthose links and forms lead to ...>Am I missing something here? The index.tmpl page would work fine,>offering the discount when the refferer variable was Macintouch,>but what if someone hit the index.tmpl page directly?When someone hits the page directly, the
[referrer] tag would nothave Macintouch in it (or whatever else you're looking for in thereferrer) so there would be no
[referrer] and the test in your showifcontext would fail, thus the showif stuff would NOT be executed.>Where would the refferer variable be, or how would I deal with>it being undefined?That's why you use
[showif] contexts ... to do something special whenthe correct referrer is used ... and to NOT do those things when adifferent referrer is used.By the way, referrer is the correct spelling of this tag (notrefferer, so make sure you spell it correctly in your WebDNA or itwon't work ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Kenneth Grome
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:
[OT] Getting a domain listening on port 443 and port80? (2003)
Up and running ... at last !! (1997)
Stopping NT WebCat service (1998)
Initiating NewCart (1997)
CT Scan might have saved my life!! (2006)
WebDNA 5.0 freeBSD?!!? (2003)
Date search - yes or no (1997)
Date search - yes or no (1997)
WebCatalog2 Feature Feedback (1996)
apostrophe in search item (1997)
Textarea Breaks (2000)
WebCat2 Append problem (B14Macacgi) (1997)
TCPconnect - Windows to Apache (2007)
GuestBook example (1997)
Generating Searches on the fly? (1999)
shell problems again... (2003)
Protect vs Authenicate (1997)
[Price] (1997)
Date Calulation (1997)
using showpage and showcart commands (1996)