Re: hideif/showif causes error if wrapped around searches

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52845
interpreted = N
texte = :) Yeah that is basically what I do. I had just hope (years ago) when I started coding in webcat that it allowed to hide the search, but learned quickly (and the hard way) that it did nto work that way. ----- Original Message ----- From: "Dan Strong" To: "WebDNA Talk" Sent: Saturday, September 13, 2003 8:40 AM Subject: Re: hideif/showif causes error if wrapped around searches > Whoops, opening [founditems] obviously goes lower... heheh heh, don't want to be duplicating the > header row everytime... but you know what I meant... :) > > -Dan > > > On Sat, 13 Sep 2003 08:35:36 -0700 > "Dan Strong" wrote: > >Dude, maybe not the most elegant, but this is what I do: > >--------------------------------------------------------------- > >[showif [sort]=] > > [text show=f]sort=YOUR_DEFAULT_SORT[/text] > >[/showif] > > > >[search....&blah.....&[sort]sort=1] > > [founditems] > > > > > > > > > >
CATEGORY2CATEGORY4 wrote: > >>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 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/ > > ------------------------------------------------------------ > http://www.StrongGraphicDesign.com > (208) 319-0137 | Toll-free p/f 877-561-1656 > ------------------------------------------------------------ > > ------------------------------------------------------------- > 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:

    
  1. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  2. Re: hideif/showif causes error if wrapped around searches ( Chris List Recipient 2003)
  3. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  4. Re: hideif/showif causes error if wrapped around searches ( Chris List Recipient 2003)
  5. Re: hideif/showif causes error if wrapped around searches ( "Scott Anderson" 2003)
  6. Re: hideif/showif causes error if wrapped around searches ( Terry Wilson 2003)
  7. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  8. Re: hideif/showif causes error if wrapped around searches ( Matthew A Perosi 2003)
  9. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  10. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  11. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  12. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  13. Re: hideif/showif causes error if wrapped around searches ( "Dan Strong" 2003)
  14. Re: hideif/showif causes error if wrapped around searches ( "Dan Strong" 2003)
  15. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  16. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  17. Re: hideif/showif causes error if wrapped around searches ( Terry Wilson 2003)
  18. hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
:) Yeah that is basically what I do. I had just hope (years ago) when I started coding in webcat that it allowed to hide the search, but learned quickly (and the hard way) that it did nto work that way. ----- Original Message ----- From: "Dan Strong" To: "WebDNA Talk" Sent: Saturday, September 13, 2003 8:40 AM Subject: Re: hideif/showif causes error if wrapped around searches > Whoops, opening
[founditems] obviously goes lower... heheh heh, don't want to be duplicating the > header row everytime... but you know what I meant... :) > > -Dan > > > On Sat, 13 Sep 2003 08:35:36 -0700 > "Dan Strong" wrote: > >Dude, maybe not the most elegant, but this is what I do: > >--------------------------------------------------------------- > >[showif [sort]=] > > [text show=f]sort=YOUR_DEFAULT_SORT[/text] > >[/showif] > > > >[search....&blah.....&[sort]sort=1] > > [founditems] > > > > > > > > > >
CATEGORY2CATEGORY4 wrote: > >>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 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/ > > ------------------------------------------------------------ > http://www.StrongGraphicDesign.com > (208) 319-0137 | Toll-free p/f 877-561-1656 > ------------------------------------------------------------ > > ------------------------------------------------------------- > 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:

Frames and WebCat (1997) Maybe off topic but how to charge (1997) Browser Problem?!? NN 4.0+ and Browser Info.txt? (1997) Linux Beta4 problems with multirecord returns (2000) read and write you own cookies with webcat (1997) answers - opinions? (1998) WebCatalog can't find database (1997) Pithy questions on webcommerce & siteedit (1997) [ShowNext] feature in 2.0 (1997) Databases.tpl (2000) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Shorthand for command args (1998) PIXO support (1997) Fun with dates (1997) WebCatalog stalls (1998) Multiple Ad databases? (1997) Cancel Subscription (1996) Please please help (2001) [WebDNA] Date and Time as numbers (2009) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)