Re: The [shownext] limitations

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45781
interpreted = N
texte = 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] ------------------------------------------------ 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 :)-Dan ------------------------------------------------------------ http://www.StrongGraphicDesign.com (208) 319-0137 | Toll-free p/f 877-561-1656 ------------------------------------------------------------ On Wed, 27 Nov 2002 16:17:38 -0600 Donovan wrote: >Brian, >the shownext context does not have to contain the search command. > >I think what John was saying is that you can basically save >a lot of time using shownext . > >I have had issues using it also but once I coded it correctly, >guess what... it worked fine. > >Donovan > > > > > >Brian Burton wrote: > >> John, >> Thank you! >> >> In using your technique, I - the master hacker - now have access to the >> name of you databases file(s) and the names of the fields. It is dirt >> simple for any script kiddy to write a robot at this point to read all >> of the data from your database and reconstruct it externally. I'd put >> an even money bet (gee, I seem to be in a betting mood today, can't >> wait for CES In January!) that with not to much work I can modify the >> same data without your permission and probably without your knowledge. >> >> (i.e. if you leave the search command open, you probably leave append >> and replace open as well. ) >> >> Brian B. Burton >> Burton Logistics >> 973-263-3036 973-296-6862 (cell) > >-- > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > ><><> 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/------------------------------------------------------------- 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: The [shownext] limitations (John Peacock 2002)
  2. Re: The [shownext] limitations (Frank Nordberg 2002)
  3. Re: The [shownext] limitations (Dan Strong 2002)
  4. Re: The [shownext] limitations (Donovan 2002)
  5. Re: The [shownext] limitations (Dan Strong 2002)
  6. Re: The [shownext] limitations (Donovan 2002)
  7. Re: The [shownext] limitations (Brian Burton 2002)
  8. Re: The [shownext] limitations (Brian Fries 2002)
  9. Re: The [shownext] limitations (Claude Gelinas 2002)
  10. Re: The [shownext] limitations (Brian Fries 2002)
  11. Re: The [shownext] limitations (John Peacock 2002)
  12. Re: The [shownext] limitations (Claude Gelinas 2002)
  13. Re: The [shownext] limitations (Brian Burton 2002)
  14. Re: The [shownext] limitations (Glenn Busbin 2002)
  15. Re: The [shownext] limitations (Frank Nordberg 2002)
  16. The [shownext] limitations (Claude Gelinas 2002)
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] ------------------------------------------------ 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 :)-Dan ------------------------------------------------------------ http://www.StrongGraphicDesign.com (208) 319-0137 | Toll-free p/f 877-561-1656 ------------------------------------------------------------ On Wed, 27 Nov 2002 16:17:38 -0600 Donovan wrote: >Brian, >the shownext context does not have to contain the search command. > >I think what John was saying is that you can basically save >a lot of time using shownext . > >I have had issues using it also but once I coded it correctly, >guess what... it worked fine. > >Donovan > > > > > >Brian Burton wrote: > >> John, >> Thank you! >> >> In using your technique, I - the master hacker - now have access to the >> name of you databases file(s) and the names of the fields. It is dirt >> simple for any script kiddy to write a robot at this point to read all >> of the data from your database and reconstruct it externally. I'd put >> an even money bet (gee, I seem to be in a betting mood today, can't >> wait for CES In January!) that with not to much work I can modify the >> same data without your permission and probably without your knowledge. >> >> (i.e. if you leave the search command open, you probably leave append >> and replace open as well. ) >> >> Brian B. Burton >> Burton Logistics >> 973-263-3036 973-296-6862 (cell) > >-- > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > ><><> 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/------------------------------------------------------------- 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:

WebCat2 several catalogs? (1997) Queertrons? (1997) RE: Cart Template (1997) converted seed value? (1998) RAM variables (1997) creating a 60 fields database (1997) Semi OT: vbulletin and # viewing - how do that do that? (2003) New WebDNA Solutions ... (1997) japanese characters (1997) WAP (2000) Hide Ifs (2000) formula??? (2000) Possible Macv2.1b2 Merge Bug (1997) [WebDNA] Crashing Database (2011) GuestBook example (1997) post (2000) Re:Remote stockroom ? (1998) Math, Multiple Equasions and Show/Hide (1998) WC1.6 to WC2 date formatting (1997) [raw] & typhoon pro 3.0 or 4.0 (2001)