What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

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]

 Result page: [HIDEIF [NO]=1][/HIDEIF] [SHOWIF [NO]=1][/SHOWIF] << | [HIDEIF [NO]<10][/HIDEIF] [SHOWIF [NO]<10][/SHOWIF] < | [HIDEIF [NO]=1][/HIDEIF] [SHOWIF [NO]=1][/SHOWIF] 1 | [HIDEIF [NO]=11][/HIDEIF] [SHOWIF [NO]=11][/SHOWIF] 2 | [HIDEIF [NUMFOUND]<21][HIDEIF [NO]=21][/HIDEIF] [SHOWIF [NO]=21][/SHOWIF] 3 | [/HIDEIF] [HIDEIF [NUMFOUND]<31][HIDEIF [NO]=31][/HIDEIF] [SHOWIF [NO]=31][/SHOWIF] 4 | [/HIDEIF] [HIDEIF [NUMFOUND]<41][HIDEIF [NO]=41][/HIDEIF] [SHOWIF [NO]=41][/SHOWIF] 5 | [/HIDEIF] [HIDEIF [NUMFOUND]>100][HIDEIF [NUMFOUND]<51][HIDEIF [NO]=51][/HIDEIF] [SHOWIF [NO]=51][/SHOWIF] 6 | [/HIDEIF] [HIDEIF [NUMFOUND]<61][HIDEIF [NO]=61][/HIDEIF] [SHOWIF [NO]=61][/SHOWIF] 7 | [/HIDEIF] [HIDEIF [NUMFOUND]<71][HIDEIF [NO]=71][/HIDEIF] [SHOWIF [NO]=71][/SHOWIF] 8 | [/HIDEIF] [HIDEIF [NUMFOUND]<81][HIDEIF [NO]=81][/HIDEIF] [SHOWIF [NO]=81][/SHOWIF] 9 | [/HIDEIF] [HIDEIF [NUMFOUND]<91][HIDEIF [NO]=91][/HIDEIF] [SHOWIF [NO]=91][/SHOWIF] 10 | [/HIDEIF] [/HIDEIF] [SHOWIF [NUMFOUND]>100][SHOWIF [NO]<81][HIDEIF [NO]=51][/HIDEIF] [SHOWIF [NO]=51][/SHOWIF] 6 | [HIDEIF [NO]=61][/HIDEIF] [SHOWIF [NO]=61][/SHOWIF] 7 | [HIDEIF [NO]=71][/HIDEIF] [SHOWIF [NO]=71][/SHOWIF] 8 | 9 | 10 | [/SHOWIF] [HIDEIF [NO]<81]... | [SHOWIF [NUMFOUND]<[MATH][NO]+10[/MATH]][MATH]Ceil([NO]/10)-3[/MATH] | [/SHOWIF] [SHOWIF [NUMFOUND]<[MATH][NO]+20[/MATH]][MATH]Ceil([NO]/10)-2[/MATH] | [/SHOWIF] [MATH]Ceil([NO]/10)-1[/MATH] | [MATH]Ceil([NO]/10)[/MATH] | [HIDEIF [NUMFOUND]<[MATH][NO]+10[/MATH]][MATH]Ceil([NO]/10)+1[/MATH] |[/HIDEIF] [HIDEIF [NUMFOUND]<[MATH][NO]+20[/MATH]][MATH]Ceil([NO]/10)+2[/MATH] | [/HIDEIF] [/HIDEIF] [/SHOWIF] [HIDEIF [NUMFOUND]<[MATH][NO]+10[/MATH]]> | >> | [/HIDEIF] [SHOWIF [NUMFOUND]<[MATH][NO]+10[/MATH]]> | >> | [/SHOWIF]  
[/HIDEIF] Sincerely Frank Nordberg http://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:

    
  1. Re: ShowNext Page Style ( Donovan Brooke 2003)
  2. Re: ShowNext Page Style ( Gary Krockover 2003)
  3. Re: ShowNext Page Style ( Frank Nordberg 2003)
  4. Re: ShowNext Page Style ( Glenn Busbin 2003)
  5. Re: ShowNext Page Style ( Frank Nordberg 2003)
  6. Re: ShowNext Page Style ( Palle Bo Nielsen 2003)
  7. ShowNext Page Style ( "WebDna @" 2003)
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] Sincerely Frank Nordberg http://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:

[format xs] freeze (1997) how does [break] work? (1998) Help name our technology! I found it (1997) More than one db with the same namn (was: WC2f3) (1997) WebCatalog 4 Install Problems (2000) [WebDNA] results survey "the usage webdna" (2017) Pithy questions on webcommerce & siteedit (1997) Scientific notation to number, a solution? (2001) dates and hex formatting (1997) 2.0 Info (1997) 'does not contain' operator needed ... (1997) no global [username] or [password] displayed ... (1997) Plain tex spacing for html? (2003) WebCat with WebTen (1998) WebCatalog can't find database (1997) [WebDNA] WebDNA on HostGator? (2011) search for non-unique question (2001) Single Link browsing (1997) Email problem.. (2004) Using [Showif] tag. Mac (1997)