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:

[WebDNA] v 7 append (2012) Shop till you drop dead on the avenue ... (1997) RE: Can a database get stomped by simultaneous access? (1997) RE: WebCat name recognition (was MacFinder -- a new WebDNAw (1998) Getting total number of items ordered (1997) Preserving file creation dates on [copyfile] (2007) Passing Variable (was How to add product size) (1997) OT: advice on Wintel server options (1998) Problems appending to database (1997) [WebDNA] html email.. should be a no-brainer.. but it is not parsing. (?) (2010) Multiple Newcarts (1996) question about checkboxes (1999) searching by date (1998) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) popups, netscape vs explorer (1997) WebCatalog 3.0 (Mac) For Sale (2000) Price Change (2000) Comments in db? (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) WebCat2 - [format thousands] (1997)