Solution: [searh] or [shownext]problem

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20101
interpreted = N
texte = Finally! The fix required that I implement the 'startat' parameters suggested by Ken (thanks!!) AND something a little weird. My primary search string needed to be reminded of the value of the variable I was searching for (i.e. the value of key_words):[search db=msports.db&eqNAMEdata=[key_words]&SKUsort=1&SKUsdir=de&cart=[cart]&max=1&startat=[startat]]The value is originally passed to this page from a form on another page. However, when the search is reinitiated later in this same page, the value of [key_words] is unkown. To fix this, I respecified the value in the link (see below):Show Items [start]-[end]I hope that my interpretation of this isn't too far off base; but I'm glad its working in any case! Thanks again, John Kenneth Grome wrote:> >Kenneth Grome wrote: > > > >> >The following template does the initial search and display of the > >> >database correctly, but when I click on the show items x - x link to > >> >display the next set of item, it doesn't find the additional items > >> >(numfound=0). Any ideas about what I'm doing wrong? > >> > >> >You're missing the startat=[startat] parameter in your search string, and you're missing the startat=[start] parameter in your shownext links ... :) > > >Thanks for responding! Unfortunately, the fixes didn't have any effect. > > > >[search db=msports.db&eqNAMEdata=[key_words]&SKUsort=1&SKUsdir=de&cart=[cart]&max=1&startat=[startat]] > > > >[shownext startat=[startat]] > > Hi John, > > Your search string is correct now, but your shownext stuff is still wrong. It should have startat=[start] in the link itself, not in the [shownext] tag: > > [start]-[end] > > Also, you have to be careful because startat=[startat] looks a lot like startat=[start], but they are different -- check my original reply quoted above ... :) > > Sincerely, > Ken Grome > 808-737-6499 > WebDNA Solutions > mailto:ken@webdna.net > http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Solution: [searh] or [shownext]problem (John Bennett 1998)
Finally! The fix required that I implement the 'startat' parameters suggested by Ken (thanks!!) AND something a little weird. My primary search string needed to be reminded of the value of the variable I was searching for (i.e. the value of key_words):[search db=msports.db&eqNAMEdata=[key_words]&SKUsort=1&SKUsdir=de&cart=[cart]&max=1&startat=[startat]]The value is originally passed to this page from a form on another page. However, when the search is reinitiated later in this same page, the value of [key_words] is unkown. To fix this, I respecified the value in the link (see below):Show Items [start]-[end]I hope that my interpretation of this isn't too far off base; but I'm glad its working in any case! Thanks again, John Kenneth Grome wrote:> >Kenneth Grome wrote: > > > >> >The following template does the initial search and display of the > >> >database correctly, but when I click on the show items x - x link to > >> >display the next set of item, it doesn't find the additional items > >> >(numfound=0). Any ideas about what I'm doing wrong? > >> > >> >You're missing the startat=[startat] parameter in your search string, and you're missing the startat=[start] parameter in your shownext links ... :) > > >Thanks for responding! Unfortunately, the fixes didn't have any effect. > > > >[search db=msports.db&eqNAMEdata=[key_words]&SKUsort=1&SKUsdir=de&cart=[cart]&max=1&startat=[startat]] > > > >[shownext startat=[startat]] > > Hi John, > > Your search string is correct now, but your shownext stuff is still wrong. It should have startat=[start] in the link itself, not in the [shownext] tag: > > [thisurl]?startat=[start]&YourOtherParametersGoHere>[start]-[end] > > Also, you have to be careful because startat=[startat] looks a lot like startat=[start], but they are different -- check my original reply quoted above ... :) > > Sincerely, > Ken Grome > 808-737-6499 > WebDNA Solutions > mailto:ken@webdna.net > http://www.webdna.net John Bennett

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:

upgrading (1997) Database Structuring (again) (2003) Windows-user? (2000) Credit Card Checking?? (1998) [ot] table gap help?!? (2001) Upgrade Problem.... (1998) old 3.0 mac license for sale? (2003) [WebDNA] User sessions - cookies only or cookies and a sessions.db? (2016) One other big addition... (1997) Site Downloaders (2002) Webstar 1.3.1 PPC (1997) Limiting user access to .tmpl files (1997) Re[2]: Next X hits (1996) [ModDate] & [ModTime] ? (1997) Re:listfiles-looking for slick solution (1997) Showif -what am I missing??? (1999) Fulfillment e-mail? (1998) [BULK] [WebDNA] [BULK] WebDNA 7 - Ready or Not ?? I'm not sure... (2011) Sunday [search] puzzler (1999) billing system (2003)