Re: shownext not showing next...still r2

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14849
interpreted = N
texte = Kenneth Grome wrote:> There are two *drastically* different ways to create your shownext > links -- one is based on the use of $search commands, the kind used > in hyperlinks and forms, the other is based on the use of [search] > contexts, the kind embedded in the HTML of your template pages. > You're mixing them together, and that doesn't work.Well now I'm really confused. Here is what the latest WebCat Reference has to say...To display a list of hyperlinks that will display more items found in a search, put one or more [ShowNext] contexts inside a [Search] context. This context is only valid inside a [Search] contextThen, the example is one using the $search command.I have not seen examples of the two different ways to create shownexts, or if I have seen them, I have not noticed the difference. Could you explain in a little more detail? > I've read your posts and offered suggestions, but you never replied > to my last suggestion with any kind of report to let me know if it > worked or not. Those two messages were posted in close succession at approx 3 am.>And now it looks like you've decided to rewrite your > WebDNA to use $search commands in your shownext code. Believe me, > that does NOT work!That was just to see if I could make the code which I cut and pasted out of the html docs work. It didn't. > What were your results from the suggestions I made the last time? > Did you try those suggestions? I'm going to re-post the important points > from my last message below. Please try my suggestions this time ... > > 1 - Don't use the $search command when performing context-based searches.Not a nary one to be found. And it is context based searches which I am performing.> 2 - Don't use [searchstring] when performing context-based searches.It is gone.> 3 - Remove the following parameter from the form that collects your > search parameter values: > also gone> 4 - The last parameter in your search context should be > startat=[startat], not startat=[start].Webcatalog does not recognize [startat] as a tag and merely passes it on URL-encoded. When I had startat=[start], the successive links numbered properly (as you pass over with the mouse, you can see what it interprets to), but it still didn't work. > Now, after you've performed the tasks above, please post the complete > HTML for your form page *AND* the following results page ... so I can > see what you've done. Until I have *ALL* this information, I cannot > be very effective in helping you ... :)All done, no difference, the html code (for the first set of templates, not the example I tried from the manual) is posted below.Search template
Results template Search Results [search db=aliveBooksv1.db&max=[max]&cart=[cart]&[SearchAction][SearchField]data=[SearchCriteria]]

[numfound] record(s) matched your search.

[shownext position=begin&max=1&method=POST]
[/shownext] [founditems] [/founditems]
[showif [picture_file]^.gif][/showif] 

[boldwords [SearchCriteria]][convertchars][Title][/convertchars][/boldwords]

[Author]   ISBN [ISBN]   [Pages] Page [showif [Format]=sc]Softcover[/showif][showif [Format]=hc]Hardcover[/showif]   [Cdn_List] CDN

[boldwords [SearchCriteria]][convertchars][Writeup][/convertchars][/boldwords]


[shownext position=end&max=1&method=POST]
[/shownext] [/search]

Back to Search

Associated Messages, from the most recent to the oldest:

    
  1. Re: shownext not showing next...still r2 (Kenneth Grome 1997)
  2. Re: shownext not showing next...still r2 (Chris Gursche 1997)
  3. Re: shownext not showing next...still r2 (Kenneth Grome 1997)
  4. shownext not showing next...still r2 (Chris Gursche 1997)
Kenneth Grome wrote:> There are two *drastically* different ways to create your shownext > links -- one is based on the use of $search commands, the kind used > in hyperlinks and forms, the other is based on the use of [search] > contexts, the kind embedded in the HTML of your template pages. > You're mixing them together, and that doesn't work.Well now I'm really confused. Here is what the latest WebCat Reference has to say...To display a list of hyperlinks that will display more items found in a search, put one or more [shownext] contexts inside a [search] context. This context is only valid inside a [search] contextThen, the example is one using the $search command.I have not seen examples of the two different ways to create shownexts, or if I have seen them, I have not noticed the difference. Could you explain in a little more detail? > I've read your posts and offered suggestions, but you never replied > to my last suggestion with any kind of report to let me know if it > worked or not. Those two messages were posted in close succession at approx 3 am.>And now it looks like you've decided to rewrite your > WebDNA to use $search commands in your shownext code. Believe me, > that does NOT work!That was just to see if I could make the code which I cut and pasted out of the html docs work. It didn't. > What were your results from the suggestions I made the last time? > Did you try those suggestions? I'm going to re-post the important points > from my last message below. Please try my suggestions this time ... > > 1 - Don't use the $search command when performing context-based searches.Not a nary one to be found. And it is context based searches which I am performing.> 2 - Don't use [searchstring] when performing context-based searches.It is gone.> 3 - Remove the following parameter from the form that collects your > search parameter values: > also gone> 4 - The last parameter in your search context should be > startat=[startat], not startat=[start].Webcatalog does not recognize [startat] as a tag and merely passes it on URL-encoded. When I had startat=[start], the successive links numbered properly (as you pass over with the mouse, you can see what it interprets to), but it still didn't work. > Now, after you've performed the tasks above, please post the complete > HTML for your form page *AND* the following results page ... so I can > see what you've done. Until I have *ALL* this information, I cannot > be very effective in helping you ... :)All done, no difference, the html code (for the first set of templates, not the example I tried from the manual) is posted below.Search template
[cart]>
Results template Search Results [search db=aliveBooksv1.db&max=[max]&cart=[cart]&[SearchAction][SearchField]data=[SearchCriteria]]

[numfound] record(s) matched your search.

[shownext position=begin&max=1&method=POST]
[cart]>
[/shownext] [founditems] [/founditems]
[showif [picture_file]^.gif][/showif] 

[boldwords [SearchCriteria]][convertchars][Title][/convertchars][/boldwords]

[Author]   ISBN [ISBN]   [Pages] Page [showif [format]=sc]Softcover[/showif][showif [format]=hc]Hardcover[/showif]   [Cdn_List] CDN

[boldwords [SearchCriteria]][convertchars][Writeup][/convertchars][/boldwords]


[url][SKU][/url]&cart=[cart]&db=aliveBooksv1.db&Title=[url][Title][/url]&Author=[url][Author][/url]&[ Target=UpperFrame>
[shownext position=end&max=1&method=POST]
[cart]>
[/shownext] [/search][cart] Target=Upperframe>

Back to Search

Chris Gursche

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:

Preloading code? (2002) Digger URLs ... (2004) Format question WC Mac f3 (1997) Country & Ship-to address & other fields ? (1997) 2.1b3 --> way slow (1997) PROBLEM (1997) Possible Bug in 2.0b15.acgi (1997) [WebDNA] Poll: Discussion Forum (2009) [random] only for 1-100??? (1997) searchable list archive (1997) Nested tags count question (1997) b12 cannot limit records returned and more. (1997) Help name our technology! (1997) Sorting Numbers (1997) [OT] FTP client (2003) Ready,Set; Print! (1999) Search Engine bots (2002) Formating found categories (1997) [HIDEIF] inside [FOUNDITEM] (1997) Sorting problem (1997)