Re: shownext example
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38950
interpreted = N
texte = Brian B. Burton wrote:> > On 9/26/01 9:28 PM, Robert Kudrle
wrote:> > > I'm specifically looking for a [shownext] example that displays items with> > single digits like Google or other sites as apposed to the default sets of> > numbers, (1-5, 6-10, 11-15 etc.). Looking to save myself some time.> >> > Does anyone know if an example of this kind exists in either the Talk Archive> > or in the sample DNA on Smith Micro's site?> > [shownext] can't do this. [shownext] really is a horrible tag. Sorry, but> it's the truth. It's far too simplistic, and it depends on using commands to> pass way too much info between pages.Sorry, I have to disagree. [shownext] is incredibly powerful magic,if you use it correctly (which sadly means ignoring the example in thedocs). If you are concerned about using commands, then do [shownext method=post] which will use forms instead. All of the information required to managerepetitive queries for pages of records is what makes up [SearchString],including all of the blank fields you might have included in the searchoriginally. And most particularly, DO NOT INCLUDE command=search INTHE LINK! The docs are WRONG! [searchstring] includes EVERYTHING youneed to do the correct search, including the command itself.I think (not tested) this will print the numbers from 1-5 corresponding to the first 5 pages of records (on the first page) and 2-6 on thesecond page, etc. If you want to have absolutely only 1-5, you will need to be more clever than I can be on the fly.[text]SearchMax=[max][/text][!] grab the number of records/page [/!] [ShowNext position=begin&max=5] [math show=F]PageNo=ceil([start]/[SearchMax])[/math] [PageNo] [/ShowNext]John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Brian B. Burton wrote:> > On 9/26/01 9:28 PM, Robert Kudrle wrote:> > > I'm specifically looking for a [shownext] example that displays items with> > single digits like Google or other sites as apposed to the default sets of> > numbers, (1-5, 6-10, 11-15 etc.). Looking to save myself some time.> >> > Does anyone know if an example of this kind exists in either the Talk Archive> > or in the sample DNA on Smith Micro's site?> > [shownext] can't do this. [shownext] really is a horrible tag. Sorry, but> it's the truth. It's far too simplistic, and it depends on using commands to> pass way too much info between pages.Sorry, I have to disagree. [shownext] is incredibly powerful magic,if you use it correctly (which sadly means ignoring the example in thedocs). If you are concerned about using commands, then do [shownext method=post] which will use forms instead. All of the information required to managerepetitive queries for pages of records is what makes up [SearchString],including all of the blank fields you might have included in the searchoriginally. And most particularly, DO NOT INCLUDE command=search INTHE LINK! The docs are WRONG! [searchstring] includes EVERYTHING youneed to do the correct search, including the command itself.I think (not tested) this will print the numbers from 1-5 corresponding to the first 5 pages of records (on the first page) and 2-6 on thesecond page, etc. If you want to have absolutely only 1-5, you will need to be more clever than I can be on the fly.[text]SearchMax=[max][/text][!] grab the number of records/page [/!] [ShowNext position=begin&max=5] [math show=F]PageNo=ceil([start]/[SearchMax])[/math] [PageNo] [/ShowNext]John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------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://search.smithmicro.com/
John Peacock
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:
Introduction/Tutorial/QuickStart (1997)
set header in DB (no cart) (2003)
OT-ssh help (2004)
Question on lineitems (2002)
PCS Emailer's role ? (1997)
Reversing [ipaddress] normalization (1998)
Using Plug-In while running 1.6.1 (1997)
European Convention (2004)
WebCat/CyberStudio Compatibility (1998)
WebDNA 5.1 is now available! (2003)
Accented chars and emailer (1998)
[index] (1997)
Can I do these? (1997)
Who's going to MacWorld? (1999)
WebCat2 - [format thousands] (1997)
No. of items in shopping cart (2000)
RE: Full text search (1999)
searchable list archive (1997)
Pithy questions on webcommerce & siteedit (1997)
math on date? (1997)