Re: hideif/showif causes error if wrapped around searches
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52888
interpreted = N
texte = This does not solve having to maintain multiple search context and will haverepetative code.That is why in my example I used a formvariables loop to feed it searchcriteria and a showif/hideif style to show the sort features. By adding thesortdir and sorttype to th shownext links you will not lose your sort.Alternately you could use the variable approach to search[text]string=search criteria[/text][search [string]]This would allow you to pass any value you want to the search includingDatabase. This in conjuntion with either a cookie or the cart can allow youto remember searchs and what page they were on etc.----- Original Message ----- From: "Chris List Recipient"
To: "WebDNA Talk" Sent: Monday, September 15, 2003 9:41 AMSubject: Re: hideif/showif causes error if wrapped around searches> Gary,>> I vote using an INCLUDE...>> [showif [hidesearch]=T]> [include something_else_filename]> [/showif]> [hideif [hidesearch]=T] (and it does)> [search db=...]> [founditems]> [include something_else_filename]> [/founditems]> [/search]> [/hideif]>> -Chris>> -----Original Message-----> From: Gary Krockover [mailto:gary@garykrockover.com]> Sent: Friday, September 12, 2003 9:20 PM> To: WebDNA-Talk@talk.smithmicro.com> Subject: hideif/showif causes error if wrapped around searches>>> 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)> [search db=...]> [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 searchand> 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 searchand> 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/>> -------------------------------------------------------------> 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/-------------------------------------------------------------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:
This does not solve having to maintain multiple search context and will haverepetative code.That is why in my example I used a formvariables loop to feed it searchcriteria and a showif/hideif style to show the sort features. By adding thesortdir and sorttype to th shownext links you will not lose your sort.Alternately you could use the variable approach to search[text]string=search criteria[/text][search [string]]This would allow you to pass any value you want to the search includingDatabase. This in conjuntion with either a cookie or the cart can allow youto remember searchs and what page they were on etc.----- Original Message ----- From: "Chris List Recipient" To: "WebDNA Talk" Sent: Monday, September 15, 2003 9:41 AMSubject: Re: hideif/showif causes error if wrapped around searches> Gary,>> I vote using an INCLUDE...>> [showif [hidesearch]=T]> [include something_else_filename]> [/showif]> [hideif [hidesearch]=T] (and it does)> [search db=...]> [founditems]> [include something_else_filename]> [/founditems]> [/search]> [/hideif]>> -Chris>> -----Original Message-----> From: Gary Krockover [mailto:gary@garykrockover.com]> Sent: Friday, September 12, 2003 9:20 PM> To: WebDNA-Talk@talk.smithmicro.com> Subject: hideif/showif causes error if wrapped around searches>>> 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)> [search db=...]> [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 searchand> 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 searchand> 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/>> -------------------------------------------------------------> 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/-------------------------------------------------------------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/
"WebDna @"
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:
Merchant account (1998)
Help! WebCat2 bug (1997)
pc (1997)
WebCatalog can't find database (1997)
Are you an WC expert? (1997)
WCS Newbie question (1997)
WebCommerce: Folder organization ? (1997)
WebCat2b15MacPlugin - [protect] (1997)
User / Pass in TCP connect (2007)
[WebDNA] SSL not working with WebDNA FCGI 8.5.1 (2020)
More news on 5.0 (2003)
Payment Calculator? (2000)
WebCat2 - [format thousands] (1997)
[WebDNA] Send Mail and SMTP Host (2015)
[OT] WebStar SSL (2004)
[WebDNA] Server Speed/optomization (2009)
Line items in table cells (1997)
(1997)
[INCLUDE] Limitations (1998)
WebCatalog vs WebDNA (2002)