Re: contextual shownext
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 16167
interpreted = N
texte = On 2/21/98 8:57 AM, Bob Minor so noted...>>I think I might be able to help you, but I don't really understand what>>you want. What do you consider a contextual shownext?>>something like this:>>[search db=my.db&geskudata=0]>[founditems]>[sku][name]
>[/founditems]>(then I want 2 tags that say show previous and next 10 items)>ie>previous 10 next 10>[/search]Here's what I put together to do just that (stripped down to its essentials). This example is called from a form on another page that initially passes a search string in [searchText], the number 1 in [startingPoint] and the number of found items to be displayed at once in [max] (I use a pop-up).---- file: searching.tmpl ------------------------[search db=items.db&startat=[startingPoint]&max=[max]&waTextDataRq=[searchText]][founditems][index]) [text]
[/founditems][hideif [math]tempCalc[/math]<0]
[/hideif][hideif [math]tempCalc[/math]>[numFound]]
[/hideif][/search]Rob MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Associated Messages, from the most recent to the oldest:
On 2/21/98 8:57 AM, Bob Minor so noted...>>I think I might be able to help you, but I don't really understand what>>you want. What do you consider a contextual shownext?>>something like this:>>[search db=my.db&geskudata=0]>
[founditems]>[sku][name]
>[/founditems]>(then I want 2 tags that say show previous and next 10 items)>ie>previous 10 next 10>[/search]Here's what I put together to do just that (stripped down to its essentials). This example is called from a form on another page that initially passes a search string in [searchText], the number 1 in [startingPoint] and the number of found items to be displayed at once in [max] (I use a pop-up).---- file: searching.tmpl ------------------------[search db=items.db&startat=[startingPoint]&max=[max]&waTextDataRq=[searchText]]
[founditems][index])
[text][/founditems][hideif
[math]tempCalc[/math]<0]
[/hideif][hideif
[math]tempCalc[/math]>[numFound]]
[/hideif][/search]Rob MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Rob Marquardt
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:
Proper file locations (1997)
japanese characters (1997)
lookup command (1997)
Calendar Solutions (1998)
UPPERCASE (1997)
The future of WebCatalog is coming with 4.0... (2000)
IIS4 & Password Authentication, request example (1998)
Upgrading old WebCat Database Files (1997)
Multi-processor Mac info ... (1997)
POST through TCPConnect (1999)
What if SSL server down? MAC (1997)
Slow applescript context ... (2000)
WebDNA 6 (2004)
Running 2 two WebCatalog.acgi's (1996)
list items (1998)
OT New use for WebCat (1998)
[WebDNA] WebDNA Alive! (2012)
Temp DB (Was freeze) (2003)
Multiple prices (1997)
Emailer Problem (1998)