Re: The [shownext] limitations

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45799
interpreted = N
texte = Claude Gelinas wrote: > This thread is getting very interesting and I think we're going to > break new grounds so bear with me. > > Right now, this is what the form code looks like to generate the > checkbox choices for the departments: > > [search db=Departments.db&neDepartmentIDdata=0&NameEnsort=1&NameEnsdir=as] > [founditems] > > > > > >
name=woDepartmentdatarq>[NameEn]
> [/founditems] > [/search] If you really have 190 departements, you just can't transfer that search string safely as an URL. The only solution I can see, is to replace the shonext link with a shownext *form* where you put all the values into hidden fields in a form and add a button instead of the text link.If, on the other hand there are just 19 departements, you could do something like:[search db=Departments.db&neDepartmentIDdata=0&NameEnsort=1&NameEnsdir=as] [founditems]
[NameEn]
[/founditems] [/search]and then add something like:woDepartmentdatarq[showif [DE10]=T]DE10+[/showif][showif [DE20]=T]DE20+[/showif][showif [DE30]=T]DE30+[/showif]... ...[showif [DE180]=T]DE180+[/showif][showif [DE190]=T]DE190[/showif]to the search criteria on the search results page. That'd solve the problem Brian pointed ot too.Btw, I'm sure somebody has a simpler syntax to achieve the same, but I'm in a bit hurry right now, and besides, my WebCatalog is too old to support [loop] so I don't really know how that tag works.Frank Nordberg http://www.musicaviva.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: The [shownext] limitations (John Peacock 2002)
  2. Re: The [shownext] limitations (Frank Nordberg 2002)
  3. Re: The [shownext] limitations (Dan Strong 2002)
  4. Re: The [shownext] limitations (Donovan 2002)
  5. Re: The [shownext] limitations (Dan Strong 2002)
  6. Re: The [shownext] limitations (Donovan 2002)
  7. Re: The [shownext] limitations (Brian Burton 2002)
  8. Re: The [shownext] limitations (Brian Fries 2002)
  9. Re: The [shownext] limitations (Claude Gelinas 2002)
  10. Re: The [shownext] limitations (Brian Fries 2002)
  11. Re: The [shownext] limitations (John Peacock 2002)
  12. Re: The [shownext] limitations (Claude Gelinas 2002)
  13. Re: The [shownext] limitations (Brian Burton 2002)
  14. Re: The [shownext] limitations (Glenn Busbin 2002)
  15. Re: The [shownext] limitations (Frank Nordberg 2002)
  16. The [shownext] limitations (Claude Gelinas 2002)
Claude Gelinas wrote: > This thread is getting very interesting and I think we're going to > break new grounds so bear with me. > > Right now, this is what the form code looks like to generate the > checkbox choices for the departments: > > [search db=Departments.db&neDepartmentIDdata=0&NameEnsort=1&NameEnsdir=as] > [founditems] > > > > > >
name=woDepartmentdatarq>[NameEn]
> [/founditems] > [/search] If you really have 190 departements, you just can't transfer that search string safely as an URL. The only solution I can see, is to replace the shonext link with a shownext *form* where you put all the values into hidden fields in a form and add a button instead of the text link.If, on the other hand there are just 19 departements, you could do something like:[search db=Departments.db&neDepartmentIDdata=0&NameEnsort=1&NameEnsdir=as] [founditems]
[NameEn]
[/founditems] [/search]and then add something like:woDepartmentdatarq[showif [DE10]=T]DE10+[/showif][showif [DE20]=T]DE20+[/showif][showif [DE30]=T]DE30+[/showif]... ...[showif [DE180]=T]DE180+[/showif][showif [DE190]=T]DE190[/showif]to the search criteria on the search results page. That'd solve the problem Brian pointed ot too.Btw, I'm sure somebody has a simpler syntax to achieve the same, but I'm in a bit hurry right now, and besides, my WebCatalog is too old to support [loop] so I don't really know how that tag works.Frank Nordberg http://www.musicaviva.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/ Frank Nordberg

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:

Date format problems (1997) Blocking off access (2005) PIXO support (1997) # fields limited? (1997) Encrypted links ... (2000) Showing unopened cart (1997) [WebDNA] CMS in WEBDNA (2009) normal users.db calls ... (1998) [date format] w/in sendmail (1997) building / customizing stores (2000) generator prob (2001) Instructions for Digest (1997) [sendmail] questions... (1997) [convertchars] limits (1998) RE: NewCart+Search with one click ? (1997) question: webmerchant connection (1997) Latest compatible Apache (2006) WebCat2b12 - nesting [tags] (1997) customizing the color of user's pages (1997) Not reading code (1997)