Re: [SHOWIF]s and empty arguments
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13201
interpreted = N
texte = At 1:34 PM -0800 8/26/97, Kenneth Grome is rumored to have typed:> If for any reason there is no value assigned to the [name] variable -> which is exactly what you're doing here - WebCat uses the raw tag> value of [name] (without the quotes) for the comparison. And since> the raw value [name] is not equal to nothing, the stuff inside the> [showif] context does not get displayed.Ah! Now I see. Sometimes, I just need stuff spelled out for me.> By the way, why do you even need the [showif] context there in the> first place? Where do you expect to get a value for [name] if you're> not passing it in the URL from the previous page? If there's never a> possibility of [name] getting a value from somewhere, you don't even> need the [showif] ... :)Actually, I have about a dozen uses for it right now. For one thing, itwould let me customize my pages so that people can't tamper with the URLsby leaving out entire arguments or submitting illegal ones. I couldaccount for every possible case pretty easily.Michael
Associated Messages, from the most recent to the oldest:
At 1:34 PM -0800 8/26/97, Kenneth Grome is rumored to have typed:> If for any reason there is no value assigned to the [name] variable -> which is exactly what you're doing here - WebCat uses the raw tag> value of [name] (without the quotes) for the comparison. And since> the raw value [name] is not equal to nothing, the stuff inside the>
[showif] context does not get displayed.Ah! Now I see. Sometimes, I just need stuff spelled out for me.> By the way, why do you even need the
[showif] context there in the> first place? Where do you expect to get a value for [name] if you're> not passing it in the URL from the previous page? If there's never a> possibility of [name] getting a value from somewhere, you don't even> need the
[showif] ... :)Actually, I have about a dozen uses for it right now. For one thing, itwould let me customize my pages so that people can't tamper with the URLsby leaving out entire arguments or submitting illegal ones. I couldaccount for every possible case pretty easily.Michael
Michael Winston
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:
Faxing orders in place of email (1997)
Re:Problem displaying search result (1997)
PROBLEM (1997)
PSC recommends what date format yr 2000??? (1997)
UPDATEDONE question ... (1998)
Quit revisited (1997)
Dynamic PDFs? (2002)
$append (1998)
apostrophe in search item (1997)
America Online Issues (1998)
[WebDNA] CMS in WEBDNA (2009)
[WriteFile] problems (1997)
[ot] Online Sales Tax (2005)
Problem displaying search result (1997)
Calculating Shipping charges for multiple items andqtys > 1 (1997)
Nested tags count question (1997)
New Cart No. on same page (2003)
[OT] Airport Problem (2003)
Nested tags count question (1997)
WebCatalog2 Feature Feedback (1996)