search context w shownext works!

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14964
interpreted = N
texte = KenThank you for your invaluable input. It works, it works!After I made the changes you recommended and got it working, I went back through and deleted them again to see what made the critical difference.NB- this has only been tested with the post method. I will try get and report on what I findHere is the rule as far as I can tell. When using a search context on a page within which you want to use a shownext, the search context *must contain* startat=[startat]. The shownext context must contain within the form If either of these two elements are not exactly as shown, the shownext context will not work.Perhaps Grant could consider including this in the docs. If the search context contains startat=[start], it won't work, even though the shownext context uses [start] as the value. I'm still not sure how Webcat sees these things differently, and an explanation might go a long way to helping understand the under workings (logic) of the software.Using [thisurl] is more elegant and less susceptable to breaking than hardcoding the tmpl name, so I thank you for that. Also, using searchMax lets me make one change in the search tmpl if I ever want to change it. One note on this one: the line in the form needs to have the name searchMax instead of max to make it work.I left the full text of your post inside this one for the benefit of the archives, so apologies to those of you downloading this long message who don't care ;-)Kenneth Grome wrote: >I made a few changes to your HTML that might make a difference, such as: > > 1- setting actual values in your search options > 2- putting startat=[startat] in your search parameters > 3- putting startat=[start] in the shownext parameters > 4- putting [searchCriteria] inside a [url] context (which should be > the first thing to remove if the following code doesn't work for you) > 5- getting rid of ENCTYPE=x-www-form-encoded > 6- replacing v2aliveBooksResults.tmpl with [thisurl] > 7- replacing max=3 with max=[searchMax] for your search parameters > 8- putting quotes around the form values that didn't have them > > With these changes, I believe the following code should work: > > Search template: > >
> > > > > > >
> > > > v2aliveBooksResults.tmpl: > > [search > db=aliveBooksv1.db&max=[searchMax]&cart=[cart]&[SearchAction][SearchField]data=[ > url][SearchCriteria][/url]&startat=[startat]] > > [shownext position=begin&max=1&method=POST] >
> > > > > > > >
> [/shownext] > > (other stuff here ...) > > [shownext position=end&max=1&method=POST] >
> > > > > > > >
> [/shownext] > > [/search] > > Sincerely, Ken Grome > WebDNA SolutionsChris Gursche EC&T Electronic Colour & Type Corp Associated Messages, from the most recent to the oldest:

    
  1. Re: search context w shownext works! (Kenneth Grome 1997)
  2. search context w shownext works! (Chris Gursche 1997)
KenThank you for your invaluable input. It works, it works!After I made the changes you recommended and got it working, I went back through and deleted them again to see what made the critical difference.NB- this has only been tested with the post method. I will try get and report on what I findHere is the rule as far as I can tell. When using a search context on a page within which you want to use a shownext, the search context *must contain* startat=[startat]. The shownext context must contain within the form If either of these two elements are not exactly as shown, the shownext context will not work.Perhaps Grant could consider including this in the docs. If the search context contains startat=[start], it won't work, even though the shownext context uses [start] as the value. I'm still not sure how Webcat sees these things differently, and an explanation might go a long way to helping understand the under workings (logic) of the software.Using [thisurl] is more elegant and less susceptable to breaking than hardcoding the tmpl name, so I thank you for that. Also, using searchMax lets me make one change in the search tmpl if I ever want to change it. One note on this one: the line in the form needs to have the name searchMax instead of max to make it work.I left the full text of your post inside this one for the benefit of the archives, so apologies to those of you downloading this long message who don't care ;-)Kenneth Grome wrote: >I made a few changes to your HTML that might make a difference, such as: > > 1- setting actual values in your search options > 2- putting startat=[startat] in your search parameters > 3- putting startat=[start] in the shownext parameters > 4- putting [searchCriteria] inside a [url] context (which should be > the first thing to remove if the following code doesn't work for you) > 5- getting rid of ENCTYPE=x-www-form-encoded > 6- replacing v2aliveBooksResults.tmpl with [thisurl] > 7- replacing max=3 with max=[searchMax] for your search parameters > 8- putting quotes around the form values that didn't have them > > With these changes, I believe the following code should work: > > Search template: > >
> > > > [cart]> > > >
> > > > v2aliveBooksResults.tmpl: > > [search > db=aliveBooksv1.db&max=[searchMax]&cart=[cart]&[SearchAction][SearchField]data=[ > url][SearchCriteria][/url]&startat=[startat]] > > [shownext position=begin&max=1&method=POST] >
[thisurl]> > > > > [cart]> > > > >
> [/shownext] > > (other stuff here ...) > > [shownext position=end&max=1&method=POST] >
[thisurl]> > > > > [cart]> > > > >
> [/shownext] > > [/search] > > Sincerely, Ken Grome > WebDNA SolutionsChris Gursche EC&T Electronic Colour & Type Corp 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:

[SearchString] usage (1997) Trouble creating a temp database (2000) PCS Emailer's role ? (1997) Latest WebCat release version (1998) Cookies and webcat (1997) Lambada for Macintosh is Here! (1996) Extended [ConvertChars] (1997) [PHP3] php vs WebCatalog (2000) Re:quit command on NT (1997) Great product and great job ! (1997) Typhoon Rev. and PCS store problems (1999) [WebDNA] [WSC] WebDNA Development Summit (2014) Smith Micro - no competition (2000) Show shoppingcart after remove last item (1997) Netscape 3.01 can't see db in form (1997) This is probably a stupid question... (2004) splitting numbers in webDNA? (1997) [OT] Mac OSX and SSH Telnet (2000) Pithy questions on webcommerce & siteedit (1997) Re:redirect from the errorsMessages.db entry (1997)