[defined]ish
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13505
interpreted = N
texte = Hi folks...Just joined the list, so excuse the question if it's been dealt with,but I didn't find a clear answer on in the archives.There were some related messages by Kenneth, but I'm looking for clarification.In a Pacific Coast mailing I received tonight, there's a sample Q&Aalong the same lines...it dealt with how to offer a reduced price tovisitors who entered by clicking on an ad banner from a specific site.The response was to pass along a parameter refferer (I'll try not tocomplain about spelling!) and, to quote from the response Now checkfor the variable on the index.tpl page.I ran into a similar situation while trying to develop some templatesfor a client...some of their databases contain a name field, and somean item field, both serving similar functions (and significance). SoI wanted to make them some templates that basically said, in plainEnglishif there's a [name] field, display [name]if there's an [item] field, display [item]To me, this is analogous to check for the variable... However, itwould seem to require a WebDNA tag along the lines of [defined[name]], and nothing similar seems to exist. The consensus from themessages in the archives seemed to be if you aren't passing thatparameter from every possible referring page, why are you checking forit?, and everyone agreed WebDNA'd pages shouldn't be looking forvariables if there's a possibility that the variable wasn't passed toit.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? Where would therefferer variable be, or how would I deal with it being undefined?spud. ------------------------------------------------------------------------- a.h.s. boy ---------------------- manifesto overlord, dada typographics spud@nothingness.org ------- http://www.nothingness.org/Now featuring Social Anarchism and the Situationist International archives J'suis l'enfant de l'etat, et je me bats contre ca
Associated Messages, from the most recent to the oldest:
Hi folks...Just joined the list, so excuse the question if it's been dealt with,but I didn't find a clear answer on in the archives.There were some related messages by Kenneth, but I'm looking for clarification.In a Pacific Coast mailing I received tonight, there's a sample Q&Aalong the same lines...it dealt with how to offer a reduced price tovisitors who entered by clicking on an ad banner from a specific site.The response was to pass along a parameter refferer (I'll try not tocomplain about spelling!) and, to quote from the response Now checkfor the variable on the index.tpl page.I ran into a similar situation while trying to develop some templatesfor a client...some of their databases contain a name field, and somean item field, both serving similar functions (and significance). SoI wanted to make them some templates that basically said, in plainEnglishif there's a [name] field, display [name]if there's an [item] field, display [item]To me, this is analogous to check for the variable... However, itwould seem to require a WebDNA tag along the lines of [defined[name]], and nothing similar seems to exist. The consensus from themessages in the archives seemed to be if you aren't passing thatparameter from every possible referring page, why are you checking forit?, and everyone agreed WebDNA'd pages shouldn't be looking forvariables if there's a possibility that the variable wasn't passed toit.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? Where would therefferer variable be, or how would I deal with it being undefined?spud. ------------------------------------------------------------------------- a.h.s. boy ---------------------- manifesto overlord, dada typographics spud@nothingness.org ------- http://www.nothingness.org/Now featuring Social Anarchism and the Situationist International archives J'suis l'enfant de l'etat, et je me bats contre ca
a.h.s. boy
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:
combining strings (1997)
Replace context problem ... and answers (1997)
Getting URL's entered manually (1997)
[WebDNA] Retrieving a PDF from an email (2008)
Custom Shipping Charges (1997)
What file? (1997)
Limiting user access to .tmpl files (1997)
SQL statements (2002)
UPS Calculator (2003)
Counting Inventory (2003)
Announcement-WebCatalog 2.0 Released (1997)
japanese characters (1997)
formula.db, adding option prices (1997)
[WebDNA] Authentication (2009)
WC2.0 Memory Requirements (1997)
Aaron kant add (or whatever it was) (2000)
NewCart+Search with one click ? (1997)
OT: RAID Options (2004)
F3 crashing server (1997)
Does summarizing found records require sorting on that samefield? (1999)