Re: ShowNext Page Style
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53764
interpreted = N
texte = Glenn Busbin wrote:> > Remarkably impressive, Frank. Fast, too. Good job.Thanks, but you won't be as impressed when you've seen the code for it. I *made* it and I still can't figure out the mess. ;-)Steve Craig wrote: > Hi > > Just saw this on the list and wondered if you could also send me the code as > I am trying to do something similar.Just read on.A few warnings and comments first, though.*The core of this was made for WebDNA 3 - or possibly 2, that is before the [LOOP] tag was introduced. I didn't even use the [SHOWNEXT] command since at that time it was limited to a maximum of 1000 items. I'm sure it can be done much simpler with a more recent version of WebDNA, but I simply haven't got the time and energy to change it. It works the way it is, and that's good enough for me.*I keep the whole script as a separate .txt file and [INCLUDE] it on a number of different pages.*The script as I use it doesn't have a single line break. I've just added them in a desperate attempt to make it more readable here on the list*The variable [SEARCHSTRING] is set in the header of the dosument and is simply a text string with all the search criteria.Anyway, here we go:[HIDEIF [NUMFOUND]<11]
[/HIDEIF]SincerelyFrank Nordberghttp://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:
Glenn Busbin wrote:> > Remarkably impressive, Frank. Fast, too. Good job.Thanks, but you won't be as impressed when you've seen the code for it. I *made* it and I still can't figure out the mess. ;-)Steve Craig wrote: > Hi > > Just saw this on the list and wondered if you could also send me the code as > I am trying to do something similar.Just read on.A few warnings and comments first, though.*The core of this was made for WebDNA 3 - or possibly 2, that is before the [loop] tag was introduced. I didn't even use the [shownext] command since at that time it was limited to a maximum of 1000 items. I'm sure it can be done much simpler with a more recent version of WebDNA, but I simply haven't got the time and energy to change it. It works the way it is, and that's good enough for me.*I keep the whole script as a separate .txt file and [include] it on a number of different pages.*The script as I use it doesn't have a single line break. I've just added them in a desperate attempt to make it more readable here on the list*The variable [SEARCHSTRING] is set in the header of the dosument and is simply a text string with all the search criteria.Anyway, here we go:[HIDEIF [NUMFOUND]<11]
Result page: [HIDEIF [NO]=1][thisurl]?no=1[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=1][/SHOWIF]<< |[HIDEIF [NO]<10][thisurl]?no=[math][NO]-10[/MATH][SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]<10][/SHOWIF]< |[HIDEIF [NO]=1][thisurl]?no=1[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=1][/SHOWIF]1 |[HIDEIF [NO]=11][thisurl]?no=11[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=11][/SHOWIF]2 |[HIDEIF [NUMFOUND]<21][HIDEIF [NO]=21][thisurl]?no=21[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=21][/SHOWIF]3 |[/HIDEIF] [HIDEIF [NUMFOUND]<31][HIDEIF [NO]=31][thisurl]?no=31[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=31][/SHOWIF]4 |[/HIDEIF] [HIDEIF [NUMFOUND]<41][HIDEIF [NO]=41][thisurl]?no=41[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=41][/SHOWIF]5 |[/HIDEIF] [HIDEIF [NUMFOUND]>100][HIDEIF [NUMFOUND]<51][HIDEIF [NO]=51][thisurl]?no=51[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=51][/SHOWIF]6 |[/HIDEIF] [HIDEIF [NUMFOUND]<61][HIDEIF [NO]=61][thisurl]?no=61[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=61][/SHOWIF]7 |[/HIDEIF] [HIDEIF [NUMFOUND]<71][HIDEIF [NO]=71][thisurl]?no=71[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=71][/SHOWIF]8 |[/HIDEIF] [HIDEIF [NUMFOUND]<81][HIDEIF [NO]=81][thisurl]?no=81[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=81][/SHOWIF]9 |[/HIDEIF] [HIDEIF [NUMFOUND]<91][HIDEIF [NO]=91][thisurl]?no=91[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=91][/SHOWIF]10 |[/HIDEIF] [/HIDEIF][SHOWIF [NUMFOUND]>100][SHOWIF [NO]<81][HIDEIF [NO]=51][thisurl]?no=51[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=51][/SHOWIF]6 |[HIDEIF [NO]=61][thisurl]?no=61[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=61][/SHOWIF]7 |[HIDEIF [NO]=71][thisurl]?no=71[SEARCHSTRING]>[/HIDEIF][SHOWIF [NO]=71][/SHOWIF]8 |[thisurl]?no=81[SEARCHSTRING]>9 |[thisurl]?no=91[SEARCHSTRING]>10 |[/SHOWIF][HIDEIF [NO]<81]... |[SHOWIF [NUMFOUND]<[math][NO]+10[/MATH]][thisurl]?no=[math][NO]-30[/MATH][SEARCHSTRING]>[math]Ceil([NO]/10)-3[/MATH] |[/SHOWIF] [SHOWIF [NUMFOUND]<[math][NO]+20[/MATH]][thisurl]?no=[math][NO]-20[/MATH][SEARCHSTRING]>[math]Ceil([NO]/10)-2[/MATH] |[/SHOWIF][thisurl]?no=[math][NO]-10[/MATH][SEARCHSTRING]>[math]Ceil([NO]/10)-1[/MATH] | [math]Ceil([NO]/10)[/MATH] |[HIDEIF [NUMFOUND]<[math][NO]+10[/MATH]][thisurl]?no=[math][NO]+10[/MATH][SEARCHSTRING]>[math]Ceil([NO]/10)+1[/MATH] |[/HIDEIF] [HIDEIF [NUMFOUND]<[math][NO]+20[/MATH]][thisurl]?no=[math][NO]+20[/MATH][SEARCHSTRING]>[math]Ceil([NO]/10)+2[/MATH] |[/HIDEIF][/HIDEIF][/SHOWIF][HIDEIF [NUMFOUND]<[math][NO]+10[/MATH]][thisurl]?no=[math][NO]+10[/MATH][SEARCHSTRING]>> |[thisurl]?no=[math](Floor(([NUMFOUND]/10)-.1)*10)+1[/MATH][SEARCHSTRING]>>> |[/HIDEIF][SHOWIF [NUMFOUND]<[math][NO]+10[/MATH]]> |>> |[/SHOWIF] |
[/HIDEIF]SincerelyFrank Nordberghttp://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:
Grepping to remove text & code (2004)
restart needed???? (1997)
Emailer setup (1997)
Problems reading files created by WC (1997)
Live hits (2003)
Items in cart (2000)
Summing fields (1997)
[WebDNA] Triggers.db wiped completely blank (2011)
Re1000001: Setting up shop (1997)
Webmerchant (1999)
Possible Bug in 2.0b15.acgi (1997)
Logging purchases (1997)
Not really WebCat (1997)
WebCat2 beta 11 - new prefs ... (1997)
WebCat2: Formulas.db question (1997)
WebCatalog can't find database (1997)
snicker, snicker (1997)
Re:2nd WebCatalog2 Feature Request (1996)
WebCat2 beta 11 - new prefs ... (1997)
Suggestions (1998)