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. If there's a possibility that a particular variable *might* have been passed or *should* have been passed, then you probably want to look for that variable unless you're just passing it on to the next page in the sequence.The message archives were probably referring to the [cart] value which is used for special situations, not for what you're trying to do - but it may be relevant to your needs anyways.The only place you *must* pass variables is to the places where they are needed. You just have to remember that any link or form on the page can be used to move around in a site, so you have to make sure those links or forms include the variables you may need on the pages those 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 not have Macintouch in it (or whatever else you're looking for in the referrer) so there would be no [referrer] and the test in your showif context 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 when the correct referrer is used ... and to NOT do those things when a different referrer is used.By the way, referrer is the correct spelling of this tag (not refferer, so make sure you spell it correctly in your WebDNA or it won't work ... :)Sincerely, Ken Grome WebDNA Solutions http://www.hui.net/dna/webdna.html Associated Messages, from the most recent to the oldest:

    
  1. Re: [defined]ish (a.h.s. boy 1997)
  2. Re: [defined]ish (Grant Hulbert 1997)
  3. Re: [defined]ish (Christer Olsson 1997)
  4. Re: [defined]ish (a.h.s. boy 1997)
  5. Re: [defined]ish (Kenneth Grome 1997)
  6. Re: [defined]ish (Christer Olsson 1997)
  7. [defined]ish (a.h.s. boy 1997)
>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. If there's a possibility that a particular variable *might* have been passed or *should* have been passed, then you probably want to look for that variable unless you're just passing it on to the next page in the sequence.The message archives were probably referring to the [cart] value which is used for special situations, not for what you're trying to do - but it may be relevant to your needs anyways.The only place you *must* pass variables is to the places where they are needed. You just have to remember that any link or form on the page can be used to move around in a site, so you have to make sure those links or forms include the variables you may need on the pages those 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 not have Macintouch in it (or whatever else you're looking for in the referrer) so there would be no [referrer] and the test in your showif context 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 when the correct referrer is used ... and to NOT do those things when a different referrer is used.By the way, referrer is the correct spelling of this tag (not refferer, so make sure you spell it correctly in your WebDNA or it won't work ... :)Sincerely, Ken Grome WebDNA Solutions http://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:

Webcatalog 4.0 - When will we be able to beta test it? (2000) Where is the bug fix info for 4.0.1? (2000) WC1.6 to WC2 date formatting (1997) Dummy Credit Card Number for debug? (1997) Trouble with carts (2000) Error Lob.db records error message not name (1997) GrandTotal not right (1997) Mozilla/4. and Browser Info.txt (1997) [listfiles] problems (1997) [OT] Who's got a cool link (2002) Images (2000) Search/sort in URL Was: GuestBook example (1997) [WebDNA] Send Mail and Outlook Express (2008) value in forms (2000) [WebDNA] png support in webDNA (2011) [/application] error? (1997) Problems with [Search] param - Mac Plugin b15 (1997) WebCat2 - storing unformatted date data? (1997) Summing fields (1997) Version f1 status (1997)