Re: hideif/showif causes error if wrapped around searches
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52887
interpreted = N
texte = 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 PMTo: WebDNA-Talk@talk.smithmicro.comSubject: hideif/showif causes error if wrapped around searchesI know I'll never find this answer in the archives and I don't recall iteven 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/showifand /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 twopages with different searches on each. So a form post, with the search anda hidden field of hidesearch=T. The page is the home page, so when it isfirst hit I want the search performed automatically and sorted one way, usercan click a button to sort it the other way, hiding the original search andusing 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 toWeb 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:
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 PMTo: WebDNA-Talk@talk.smithmicro.comSubject: hideif/showif causes error if wrapped around searchesI know I'll never find this answer in the archives and I don't recall iteven 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/showifand /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 twopages with different searches on each. So a form post, with the search anda hidden field of hidesearch=T. The page is the home page, so when it isfirst hit I want the search performed automatically and sorted one way, usercan click a button to sort it the other way, hiding the original search andusing 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 toWeb 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/
Chris List Recipient
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:
[WebDNA] Real Time Synchronization with QuickBooks (2010)
Initiating NewCart (1997)
Tiny Store (1998)
Results table formatting (2003)
SSL/Document Contains NO Data (1998)
ThisAutoNumber (2003)
Associative lookup style? + bit more (1997)
Webcat 2.0.1b1 bug with IE 3.01/4.0p1 (1997)
Calculating multiple shipping... (1997)
[Fwd: F3 database munching] (1997)
WCS Newbie question (1997)
Modifying order output (1997)
Problems with [Applescript] (1997)
Math (1997)
checkout.tpl (1999)
docs for WebCatalog2 (1997)
Extracting a filename (2004)
Date sorting (1997)
[ShowIf] a either fields are blank (1998)
many-to-one problem (1998)