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:
WebCat2: Items xx to xx shown, etc. (1997)
Move WebDNA DB to MySQL (2005)
Subject: Authenticating users without dialog box (1997)
Auction code - simple (2001)
NT Manual (1997)
Bad Cookie / Internet Option / Internet Explorer (2004)
Great product and great job ! (1997)
Grouping search fields, etc. (1997)
Claris HomePage messes up the code (1997)
[subtotal] problems -- help? (1998)
Suffix Mapping (1997)
Unzip + ddos attack?? (2005)
WebCatalog2 for NT Beta Request (1997)
WEBCAT with SQL backend. Help please! (2000)
Replace context problem ... (1997)
Tech support (2000)
RE: Automatic Forwarding using WebCat (1997)
Limitations on fields? Server is crashing (1997)
Web Catalog and Net Cloak (1998)
more Dreamweaver Extensions feedback (2000)