Re: random in arizona
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53545
interpreted = N
texte = Clunky, but would work, no?=======================[search db=your.db&neWHATEVERdata=show_all&WHATEVERsdir=ra] [WriteFile temp[cart].db][include file=your.hdr][founditems][whatever][whatever2][etc.][/founditems][/WriteFile][/search][search db=temp.db&whateverWHATEVERdata=[whatever]&max=10&startat=[start]] [math show=f]pages=ceil([numfound]/[max])[/math] [founditems] [whatever] [/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][!] .... Do this at some interval to keep server clean .... [/!][ListFiles path=/][deletefile=[filename]][/listfiles]=======================-Dan------------------------------------------------------------http://www.StrongGraphicDesign.com(208) 319-0137 | Toll-free p/f 877-561-1656------------------------------------------------------------On Thu, 23 Oct 2003 13:19:17 -0700 "Dan Strong"
wrote:>Nevermind... I see the problem now.... grrr, that's a frusting one, no? ;)>-Dan>>>On Thu, 23 Oct 2003 13:17:20 -0700> "Dan Strong" wrote:>>Untested....>>>>==================================>>[search db=your.db&whateverWHATEVERdata=[whatever]&WHATEVERsdir=ra&max=10&startat=[start]]>> [math show=f]pages=ceil([numfound]/[max])[/math]>> [founditems]>> [whatever]>> [/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]>>==================================>>>>-Dan>>------------------------------------------------------------>>http://www.StrongGraphicDesign.com>>(208) 319-0137 | Toll-free p/f 877-561-1656>>------------------------------------------------------------>>>>>>On Thu, 23 Oct 2003 11:53:25 -0700>> Jeff Logan wrote:>>>On this site I am building>>>>>>http://www.arizona-bed-breakfast.com/beta/tucson.html>>>>>>I wish to show details in random format, but only 5 at a time. When someone clicks on the link >>>to view the next 5 items they should see the next 5 in order not a new random listing.>>>>>>Any ideas on how to get this to work.>>>>>>NOTES>>>1. Using OS X with WebDNA 4.5>>>2. I have heard that random seed does not work, any validity to that?>>>-- >>>>>>------------------------------------------------------------------------------------------------------>>>InsideOut Marketing and Web Solutions -229 South Sequim Ave. Sequim WA, 98382>>>1-800-500-8401 Toll Free | 360-683-5774 phone | 360-683-5857 fax>>>jeff@insideout.com | www.insideout.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/>>>>>>------------------------------------------------------------->>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/>>------------------------------------------------------------>http://www.StrongGraphicDesign.com>(208) 319-0137 | Toll-free p/f 877-561-1656>------------------------------------------------------------>>------------------------------------------------------------->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:
Clunky, but would work, no?=======================[search db=your.db&neWHATEVERdata=show_all&WHATEVERsdir=ra] [WriteFile temp[cart].db][include file=your.hdr][founditems][whatever][whatever2][etc.][/founditems][/WriteFile][/search][search db=temp.db&whateverWHATEVERdata=[whatever]&max=10&startat=[start]] [math show=f]pages=ceil([numfound]/[max])[/math] [founditems] [whatever] [/founditems][/search][HideIf [pages]=1] Page [thisurl]?start=1">1[/HideIf][loop start=0&end=[pages]] [ShowIf [pages]>[math][index]+1[/math]] [thisurl]?start=[math][index]+1[/math]1">[math][index]+2[/math] [/ShowIf][/loop][!] .... Do this at some interval to keep server clean .... [/!][ListFiles path=/][deletefile=[filename]][/listfiles]=======================-Dan------------------------------------------------------------http://www.StrongGraphicDesign.com(208) 319-0137 | Toll-free p/f 877-561-1656------------------------------------------------------------On Thu, 23 Oct 2003 13:19:17 -0700 "Dan Strong" wrote:>Nevermind... I see the problem now.... grrr, that's a frusting one, no? ;)>-Dan>>>On Thu, 23 Oct 2003 13:17:20 -0700> "Dan Strong" wrote:>>Untested....>>>>==================================>>[search db=your.db&whateverWHATEVERdata=[whatever]&WHATEVERsdir=ra&max=10&startat=[start]]>> [math show=f]pages=ceil([numfound]/[max])[/math]>> [founditems]>> [whatever]>> [/founditems]>>[/search]>>>>[HideIf [pages]=1]>> Page [thisurl]?start=1">1>>[/HideIf] >>[loop start=0&end=[pages]]>> [ShowIf [pages]>[math][index]+1[/math]]>> [thisurl]?start=[math][index]+1[/math]1">[math][index]+2[/math]>> [/ShowIf]>>[/loop]>>==================================>>>>-Dan>>------------------------------------------------------------>>http://www.StrongGraphicDesign.com>>(208) 319-0137 | Toll-free p/f 877-561-1656>>------------------------------------------------------------>>>>>>On Thu, 23 Oct 2003 11:53:25 -0700>> Jeff Logan wrote:>>>On this site I am building>>>>>>http://www.arizona-bed-breakfast.com/beta/tucson.html>>>>>>I wish to show details in random format, but only 5 at a time. When someone clicks on the link >>>to view the next 5 items they should see the next 5 in order not a new random listing.>>>>>>Any ideas on how to get this to work.>>>>>>NOTES>>>1. Using OS X with WebDNA 4.5>>>2. I have heard that random seed does not work, any validity to that?>>>-- >>>>>>------------------------------------------------------------------------------------------------------>>>InsideOut Marketing and Web Solutions -229 South Sequim Ave. Sequim WA, 98382>>>1-800-500-8401 Toll Free | 360-683-5774 phone | 360-683-5857 fax>>>jeff@insideout.com | www.insideout.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/>>>>>>------------------------------------------------------------->>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/>>------------------------------------------------------------>http://www.StrongGraphicDesign.com>(208) 319-0137 | Toll-free p/f 877-561-1656>------------------------------------------------------------>>------------------------------------------------------------->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:
Nested tags count question (1997)
[LookUp] (1999)
[BULK] [WebDNA] A new commerce system for v7+ (2011)
[WebDNA] Bullet proof dynamic tables (2009)
How do you hide [math]stuff[/math] (1997)
SV: Mass Mail (2000)
Banner Ad example (Typhoon) and WebCatalog (1997)
[Semi-OT] Kinda cool tool (how does it work?) (2004)
price formula (1999)
WebCat2b15MacPlugin - [protect] (1997)
Spaces in FormVariables (2001)
is sku a REQUIRED field on NT (1997)
Banner ads (2000)
Robert Minor duplicate mail (1997)
BUG?- .html extention and not working. (2000)
Nested tags count question (1997)
2.0Beta Command Ref (can't find this instruction) (1997)
WCS Newbie question (1997)
gateway application timeouts (1998)
Some Questions (1997)