Re: hideif/showif causes error if wrapped around searches
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52834
interpreted = N
texte = If I understand you correctly, I do this all the time by putting showifs and hideifs right in the search context to cover all kinds of incoming conditions, including table sorting as you suggest.[search db=...[showif [sort]=oneway]sorting codes[/showif][showif [sort]=anotherway]other sorting codes[/showif]......]You can't chop up a search context like you are trying to do.Terry Wilson>--------------------------------------------------------_641761916_->Message-ID: <003501c379ae$4f9ee670$6501a8c0@win2kadvserv>>From: "Gary Krockover"
>Subject: hideif/showif causes error if wrapped around searches>Date: Fri, 12 Sep 2003 23:20:05 -0500>Content-Type: text/plain>Content-Transfer-Encoding: 7bit>>I know I'll never find this answer in the archives and I don't recall it>even coming up before but I'm sure others have noticed this behavior.>>If you wrap a hideif or a showif around a [search] and it's closing>[/search], you'll get an error about the nesting of the tags hideif/showif>and /search. Por que?>>Example:>>[hideif [hidesearch]=T] (and it does)>[founditems]>[/hideif]>Something else>[hideif [hidesearch]=T]>[/founditems]>[/search]>[/hideif]>>What am I trying to do? Add a sort for a page without having to make two>pages with different searches on each. So a form post, with the search and>a hidden field of hidesearch=T. The page is the home page, so when it is>first hit I want the search performed automatically and sorted one way, user>can click a button to sort it the other way, hiding the original search and>using the one in the form.>>What's the preferred method here?>>Thanks,>GK-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
If I understand you correctly, I do this all the time by putting showifs and hideifs right in the search context to cover all kinds of incoming conditions, including table sorting as you suggest.[search db=...[showif [sort]=oneway]sorting codes[/showif][showif [sort]=anotherway]other sorting codes[/showif]......]You can't chop up a search context like you are trying to do.Terry Wilson>--------------------------------------------------------_641761916_->Message-ID: <003501c379ae$4f9ee670$6501a8c0@win2kadvserv>>From: "Gary Krockover" >Subject: hideif/showif causes error if wrapped around searches>Date: Fri, 12 Sep 2003 23:20:05 -0500>Content-Type: text/plain>Content-Transfer-Encoding: 7bit>>I know I'll never find this answer in the archives and I don't recall it>even coming up before but I'm sure others have noticed this behavior.>>If you wrap a hideif or a showif around a [search] and it's closing>[/search], you'll get an error about the nesting of the tags hideif/showif>and /search. Por que?>>Example:>>[hideif [hidesearch]=T] (and it does)>[founditems]>[/hideif]>Something else>[hideif [hidesearch]=T]>[/founditems]>[/search]>[/hideif]>>What am I trying to do? Add a sort for a page without having to make two>pages with different searches on each. So a form post, with the search and>a hidden field of hidesearch=T. The page is the home page, so when it is>first hit I want the search performed automatically and sorted one way, user>can click a button to sort it the other way, hiding the original search and>using the one in the form.>>What's the preferred method here?>>Thanks,>GK-------------------------------------------------------------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://webdna.smithmicro.com/
Terry Wilson
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:
Mail Server Needed. (1998)
printing twice? and fix (1997)
Summary layout (1997)
Re:Need help... (1997)
[SHOWIF AND/OR] (1997)
Setting up the server (1997)
date tag not interpreted (2000)
The beginning (1997)
Can you identify the [body]? (1999)
Webdna Email and Plesk Control Panel (2005)
[Repost] Triggers, again (2000)
DataBaseHelper Flawed (1997)
encryption (2003)
Been to the SmithMicro site lately??? (2008)
[ShowIf] and empty fields (1997)
Replace/Commit not Replacing/Commiting (2000)
server2003 isolation mode (2004)
bug in [SendMail] (1997)
Weird Syntax (2002)
Removing [showif] makes a big difference in speed (1997)