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:
Passing radio check box value to itself... (2000)
Append..... doesn't (2000)
cart info (1998)
too many nested ... problem (1997)
Bulk Email >>>>Any ideas? (2001)
WebCat2: Items xx to xx shown, etc. (1997)
how to do multiple prices/item? (1998)
Search design (1997)
The Guru and the Cyclops (1998)
problems with 2 tags (1997)
return missing item (was:WebCat Sales) (1997)
Web*SSL and WebCatalog (1997)
Is there a way to just get to the last record in the database? (1997)
Case statement (2003)
Grant, please help me ... (1997)
How do I get Google to crawl a WebCat site? (2003)
Talk List Suggestions (1997)
4.5.1 on Panther? (2004)
quotes and truncating? (1997)
I give up!! (1997)