Re: [ShowNext]
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11918
interpreted = N
texte = >Hi>>I'm using this piece of WebDNA and which ever of the show next items>links I click on I still get the first 25 items again! Any ideas?>>If you want to see it in action, got www.ShopsOnTheNet.com, click the>search button in the left hand frame and then click on Browse full list>(alphabetical) below the main search form.>>>[Search db=shops.db&createdtype=date&grcreateddata=Mar 01>1995&namesort=1&max=25]>> Found [NumFound] entries:
>> [ShowNext position=begin]>
Show items>[start]-[end]> [/ShowNext]>>
> [FoundItems]> - [name] -- [description]>-- [country] [ShowIf [secure]=YES]-- COLOR=#FF0000>S[/ShowIf] [ShowIf [baskets]=YES]-- COLOR=#FF0000>SB[/ShowIf]> [/FoundItems]>
>>> [ShowNext position=end]>
Show items>[start]-[end]> [/ShowNext]>>[/Search]You keep getting the same results because you're doing two searches. Firstyou're searching according to the search string in the [shownext] context,then you're searching again by performing the search inside the [searchcontext at the top of the page.Only the last search results are shown, and since the last search is thepredefined context search, you will always get the same results unless youchange the search context every time it searches.Try adding &startat=[start] to your search context, then get rid of the$search command and the [searchstring] tag inside the shownext context, andreplace those items with &startat=[start]. Here's what I mean:[Search db=shops.db&createdtype=date&grcreateddata=Mar 01,1995&namesort=1&max=25&startat=[start]][ShowNext]
Show items [start]-[end][/ShowNext]This lets the search context always perform the search, and it resets the[startat] value to match the value of [start] that appears in the shownextcontext ... :)Sincerely, Ken GromeWebDNA Solutions
Associated Messages, from the most recent to the oldest:
>Hi>>I'm using this piece of WebDNA and which ever of the show next items>links I click on I still get the first 25 items again! Any ideas?>>If you want to see it in action, got www.ShopsOnTheNet.com, click the>search button in the left hand frame and then click on Browse full list>(alphabetical) below the main search form.>>>[Search db=shops.db&createdtype=date&grcreateddata=Mar 01>1995&namesort=1&max=25]>> Found [NumFound] entries:
>> [ShowNext position=begin]>
Show items>[start]-[end]> [/ShowNext]>>
> [founditems]> - [name] -- [description]>-- [country] [ShowIf [secure]=YES]-- COLOR=#FF0000>S[/ShowIf] [ShowIf [baskets]=YES]-- COLOR=#FF0000>SB[/ShowIf]> [/FoundItems]>
>>> [ShowNext position=end]>
Show items>[start]-[end]> [/ShowNext]>>[/Search]You keep getting the same results because you're doing two searches. Firstyou're searching according to the search string in the
[shownext] context,then you're searching again by performing the search inside the [searchcontext at the top of the page.Only the last search results are shown, and since the last search is thepredefined context search, you will always get the same results unless youchange the search context every time it searches.Try adding &startat=[start] to your search context, then get rid of the$search command and the [searchstring] tag inside the shownext context, andreplace those items with &startat=[start]. Here's what I mean:[Search db=shops.db&createdtype=date&grcreateddata=Mar 01,1995&namesort=1&max=25&startat=[start]]
[shownext]Show items [start]-[end][/ShowNext]This lets the search context always perform the search, and it resets the[startat] value to match the value of [start] that appears in the shownextcontext ... :)Sincerely, Ken GromeWebDNA Solutions
Kenneth Grome
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:
Smart caching problems with 2.1b3? (1997)
Another pair of eyes?? (2006)
[WebDNA] multi [sendmail] inside [search] (2012)
WebCatalog on Windows 98 (2000)
Exclamation point (1997)
Re:URGENT: WebCatalog 2.0 (1998)
Cookies not setting on IE (2002)
(2000)
Checkboxes (1998)
Old $ commands and migration (2004)
I can help! (1996)
Separate SSL Server (1997)
rn doesn't work on date fields (1998)
Not really WebCat- (1997)
RE: Answer: WebDelivery downloads alias, not original ? (1997)
Newbie Tax Question (1997)
The Guru Speaks-Is That Really the Only Manuel? (1998)
WebCatalog for WebStar V (2001)
SM: MySQL and Numbers (BUG) (2005)
form data submission gets truncated (1997)