Re: Single Link browsing
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14239
interpreted = N
texte = Grant Hulbert wrote:> > >Yes, am trying to show a single link that says Show next 10 items> >...and one that says Show previous 10 items would be nice too! :-)> > 2.0.1 added support for the max=N parameter for [ShowNext], so you don't have to do weird math things to fake it into showing only one link. Look in the [ShowNext] online docs for things like max=1, position=begin, etc. The example in the docs does what you want, except you should add max=1 to limit the number of links. It works more easily if you use $Search instead of an embedded [Search] context.> > Grant Hulbert, V.P. EngineeringGrant, doesn't max=1 limit the number of found items to 1? I would like (andI'm assuming the original author of this note also wants) a single 'previous'before the found items and a single 'next' after. Max would still be somethingappropriate, like 30. Searching many records would produce somethingsomewhere in the middle like:previous 40Item 220Item 221Item 222...Item 260next 40The max=1 thing has me baffled.Pat McCormick
Associated Messages, from the most recent to the oldest:
Grant Hulbert wrote:> > >Yes, am trying to show a single link that says Show next 10 items> >...and one that says Show previous 10 items would be nice too! :-)> > 2.0.1 added support for the max=N parameter for
[shownext], so you don't have to do weird math things to fake it into showing only one link. Look in the
[shownext] online docs for things like max=1, position=begin, etc. The example in the docs does what you want, except you should add max=1 to limit the number of links. It works more easily if you use $Search instead of an embedded
[search] context.> > Grant Hulbert, V.P. EngineeringGrant, doesn't max=1 limit the number of found items to 1? I would like (andI'm assuming the original author of this note also wants) a single 'previous'before the found items and a single 'next' after. Max would still be somethingappropriate, like 30. Searching many records would produce somethingsomewhere in the middle like:previous 40Item 220Item 221Item 222...Item 260next 40The max=1 thing has me baffled.Pat McCormick
Pat McCormick
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:
ERASING DATABASE (1997)
[OT] Security Certs (2000)
Associative lookup style? (1997)
Need correct syntax for writing to header2 (1999)
WebCatalog/Mac 2.1b2 - PIXO (1997)
WebCatalog can't find database (1997)
Internet Explorer and caching (2000)
SKU Question (1999)
Mail Server Needed. (1998)
4.0.x find (2000)
[WebDNA] Quick sort/results grouping Q (2008)
Sending mail (2001)
suffix mapping, use of cache, etc. (1997)
Yet another db manager (2004)
Web*3 virtual hosting Webcatalog problem (1998)
No luck with taxes (1997)
WebCat2: Formulas.db question (1997)
Multi-processor Mac info ... (1997)
Feature requests (2002)
WCS Newbie question (1997)