Re: The [shownext] limitations
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45783
interpreted = N
texte = Thanks, Donovan. I'll dust off my old [shownext] contraptions and check that out :)-DanOn Wed, 27 Nov 2002 16:46:53 -0600 Donovan
wrote:>>>Dan Strong wrote:>>> Hmmm, maybe I was dropped on my head too much as a tot, but I have NEVER (not once) been able to>> get [shownext] to work correctly for me and I can't remember why anymore, but I abandoned it >>long>> ago and this is how I coded around it after deciding that I only needed 10 items per page:>> ------------------------------------------------>> [search db=my.db&blah=blah&max=10&startat=[start]]>> [math show=f]pages=ceil([numfound]/[max])[/math]>>>> [founditems]>> >> [/founditems]>> [/search]>>>> [HideIf [pages]=1]>> Page 1>> [/HideIf]>> [loop start=0&end=[pages]]>> [ShowIf [pages]>[math][index]+1[/math]]>> [math][index]+2[/math]>> [/ShowIf]>> [/loop]>> ------------------------------------------------>>----------------------------------------------------->[search db=my.db&blah=blah&max=10&startat=[start]]>[founditems]>>[/founditems]>[shownext position=begin&max=1]href=index.html?blah=blah&start=[start]>previous[/shownext]>[shownext position=end&max=1]More[/shownext]>[/search]>-------------------------------------------------------->>Donovan>>>>> Being that it's based on 10, my gut feeling is that it could be tweaked pretty easily to>> accommodate different [max]'s, but I've never done it and if you try it and it blows up your>> machine, well, I'm really sorry about that.>>>> Happy Thanksgiving to those who celebrate it, and Happy Thursday to those who don't :)>>I'm hungry. :-) (sorry for the turkeys)>>>>>>> -Dan>>>>--> ------------------------------------------------------------------------>> ------------------------------------------------------------------------>><><> Donovan Brooke <><>->ï> -------------------------------------------------------------------------------------------------------------------------------------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:
Thanks, Donovan. I'll dust off my old [shownext] contraptions and check that out :)-DanOn Wed, 27 Nov 2002 16:46:53 -0600 Donovan wrote:>>>Dan Strong wrote:>>> Hmmm, maybe I was dropped on my head too much as a tot, but I have NEVER (not once) been able to>> get [shownext] to work correctly for me and I can't remember why anymore, but I abandoned it >>long>> ago and this is how I coded around it after deciding that I only needed 10 items per page:>> ------------------------------------------------>> [search db=my.db&blah=blah&max=10&startat=[start]]>> [math show=f]pages=ceil([numfound]/[max])[/math]>>>> [founditems]>> >> [/founditems]>> [/search]>>>> [HideIf [pages]=1]>> Page 1>> [/HideIf]>> [loop start=0&end=[pages]]>> [ShowIf [pages]>[math][index]+1[/math]]>> [math][index]+1[/math]1>[math][index]+2[/math]>> [/ShowIf]>> [/loop]>> ------------------------------------------------>>----------------------------------------------------->[search db=my.db&blah=blah&max=10&startat=[start]]>[founditems]>>[/founditems]>[shownext position=begin&max=1]href=index.html?blah=blah&start=[start]>previous[/shownext]>[shownext position=end&max=1]More[/shownext]>[/search]>-------------------------------------------------------->>Donovan>>>>> Being that it's based on 10, my gut feeling is that it could be tweaked pretty easily to>> accommodate different [max]'s, but I've never done it and if you try it and it blows up your>> machine, well, I'm really sorry about that.>>>> Happy Thanksgiving to those who celebrate it, and Happy Thursday to those who don't :)>>I'm hungry. :-) (sorry for the turkeys)>>>>>>> -Dan>>>>--> ------------------------------------------------------------------------>> ------------------------------------------------------------------------>><><> Donovan Brooke <><>->ï> -------------------------------------------------------------------------------------------------------------------------------------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/
Dan Strong
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] Ubuntu 14.04 & WebDNA (2017)
Look out kiwis! (2003)
3rd party processor question (2003)
RE: question on [delete] (1998)
Plugin or CGI or both (1997)
if else problem (2003)
Tax and Shipping Examples (1997)
RE: Search (1997)
[SearchString] problem with [search] context (1997)
Multiple Pulldowns (1997)
Me know logical no need (2002)
Authenticate (1997)
RED QUESTION MARK (1999)
Requiring that certain fields be completed (1997)
problems with 2 tags shakur (1997)
absolute paths for databases? (1997)
Multiple FlushDatabases (2000)
Strange intermittent WebDNA problems Workaround (2008)
Help name our technology! (1997)
contextual shownext (1998)