Re: Hideif not working?
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 39363
interpreted = N
texte = Alain Russell wrote:> > Turn the comparison around ..> > [hideif root.exe+favicon+scripts^[thisurl]]> > [hideif [thisurl]^root.exe+favicon+scripts]I think that you will find that both ways will fail. Here's why:[thisurl] will contain something like this: /favicon.ico /MSADC/root.exeor /scripts/root.exeand any one term can be search for using [hideif [thisurl]^favicon] [hideif [thisurl]^root.exe] [hideif [thisurl]^scripts]since those strings are proper subsets of the contents of [thisurl].However, the string root.exe+favicon+scripts will never be foundas it stands inside any [thisurl] that will be requested.You are looking for an OR operator, which does not, by itself, existwith the [hideif] context. However, like most things in life, you can use [grep] to do what you want:[text]mysearch=[grepsearch=(root.exe|favicon|scripts)&replace=_FOUND_][thisurl][/grep][/text][hideif [mysearch]^_FOUND_]...[/hideif]which will find all instances of either of the three search terms and replace them with _FOUND_, which can then be tested. For example, if [thisurl] = /scripts/root.exethen [mysearch] = /_FOUND_/_FOUND_HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Alain Russell wrote:> > Turn the comparison around ..> > [hideif root.exe+favicon+scripts^[thisurl]]> > [hideif [thisurl]^root.exe+favicon+scripts]I think that you will find that both ways will fail. Here's why:[thisurl] will contain something like this: /favicon.ico /MSADC/root.exeor /scripts/root.exeand any one term can be search for using [hideif [thisurl]^favicon] [hideif [thisurl]^root.exe] [hideif [thisurl]^scripts]since those strings are proper subsets of the contents of [thisurl].However, the string root.exe+favicon+scripts will never be foundas it stands inside any [thisurl] that will be requested.You are looking for an OR operator, which does not, by itself, existwith the [hideif] context. However, like most things in life, you can use [grep] to do what you want:[text]mysearch=[grepsearch=(root.exe|favicon|scripts)&replace=_FOUND_][thisurl][/grep][/text][hideif [mysearch]^_FOUND_]...[/hideif]which will find all instances of either of the three search terms and replace them with _FOUND_, which can then be tested. For example, if [thisurl] = /scripts/root.exethen [mysearch] = /_FOUND_/_FOUND_HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
John Peacock
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:
Alternative To WebDNA? (2006)
SiteGuard Use Question (1997)
Encrypted Templates Serving as Text (2000)
garbage on page (2000)
AUTONUMBER (2004)
A little syntax help (1997)
OT: Version Control (2007)
Re:Webmessage Hyperboard (1998)
Looking for a Manual (1997)
[SearchString] usage (1997)
OT: create a KDE Screen Saver for Linux (2003)
locking variables? (2000)
Grouping search fields, etc. (1997)
Error Lob.db records error message not name (1997)
convertchars and e-mail (1998)
There's a bug in the math context ... (1997)
[WebDNA] Grep out square brackets? (2010)
[referrer] tag (1997)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
Sorting search by date. (2000)