Re: shownext example
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38953
interpreted = N
texte = I think I added the cart=[cart] after [searchstring]... it didn't pass it.However, maybe I didn't need to???John Peacock wrote:Sorry, I have to disagree. [shownext] is incredibly powerful magic,> if you use it correctly (which sadly means ignoring the example in the> docs). If you are concerned about using commands, then do>> [shownext method=post]>> which will use forms instead. All of the information required to manage> repetitive queries for pages of records is what makes up [SearchString],> including all of the blank fields you might have included in the search> originally. And most particularly, DO NOT INCLUDE command=search IN> THE LINK! The docs are WRONG! [searchstring] includes EVERYTHING you> need 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 the> second 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 Peacock> Director of Information Research and Technology> Rowman & Littlefield Publishing Group> 4720 Boston Way> Lanham, MD 20706> 301-459-3366 x.5010> fax 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:
I think I added the cart=[cart] after [searchstring]... it didn't pass it.However, maybe I didn't need to???John Peacock wrote:Sorry, I have to disagree. [shownext] is incredibly powerful magic,> if you use it correctly (which sadly means ignoring the example in the> docs). If you are concerned about using commands, then do>> [shownext method=post]>> which will use forms instead. All of the information required to manage> repetitive queries for pages of records is what makes up [SearchString],> including all of the blank fields you might have included in the search> originally. And most particularly, DO NOT INCLUDE command=search IN> THE LINK! The docs are WRONG! [searchstring] includes EVERYTHING you> need 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 the> second 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 Peacock> Director of Information Research and Technology> Rowman & Littlefield Publishing Group> 4720 Boston Way> Lanham, MD 20706> 301-459-3366 x.5010> fax 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/
Donovan Brooke
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] [OT] Mac Audit Software? (2009)
Clickable maps and WebCatalog? (1996)
[WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (2009)
[WebDNA] table comma field delimiter bug? (2012)
GuestBook example (1997)
Country & Ship-to address & other fields ? (1997)
Merging databases (1997)
HELP..Changing Price after adding to cart. (1999)
Trying to loop for letters (1999)
Support ?? (1997)
[Sum] function? (1997)
[random] only for 1-100??? (1997)
WebCat2b13MacPlugIn - more [date] problems (1997)
Unusual characters in the db ... (2002)
Major Security Hole IIS NT (1998)
Separate SSL Server (1997)
WebCat2 beta 11 - new prefs ... (1997)
'page impression' techniques for banner ads (1999)
Paths, relative paths, webstar server setup and security (Mac) (1997)
this works sometimes and sometimes not (1997)