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:
emailer w/F2 (1997)
SQL, ODBC and MySql (2002)
Permissions (2000)
Don't know if this is a sily question... (2003)
[shownext] and descending order (1997)
Logical and or in [hideif] (1997)
Need relative path explanation (1997)
RE: Discounting prices across a site (1997)
Permissions / Restart WebDNA? (2005)
&fieldsdir=ra truely random?? (2000)
WebDNA 5 - Function test weirdness or ? (2003)
Problem (1997)
RE: A zip code search (1998)
[WebDNA] WebDNA Roll Call (2013)
shopcost, unitshipcost (2002)
Time for a hard questions. (1997)
WebCatalog 2.0 b 15 mac (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
duplicate cart number (2002)
Can you do this??? and other stuff (1997)