Re: Help getting [shownext] to increment

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47363
interpreted = N
texte = Thought I'd let you know.Using the [searchstring] tag as part of the [shownext] exposes your 'code' under Webcat 3.07. (Dunno if it does the same for versions over 3.07)It is not Context Sensitive and you have to rework your links for [shownext]This is what I use:Show me Items: [shownext][start]-[end] | [/shownext]my result page has a [search]:[search db=database.db&eqFIELDdatarq=[url][item][/url]&FIELDsort=1&FIELDsdir=as&max=20[showif [var_from]=1]&startat=[from][/showif]]Cheers.-- Regards, Marko ------------------------------------------------------------------ Marko Bernyk - Senior System Engineer mailto:marko@conexus.com.au  http://www.conexus.com.au Technical Services, Conexus Pty Ltd, Sydney, Australia Ph 02 9975 2799 Fax 02 9975 2799          :) ------------------------------------------------------------------On Friday, 31 January 2003 10:26 PM, John Peacock wrote: >Kenneth Grome wrote: >> John's almost right, except for two things: >> >> 1- The search context requires a startat parameter, not a start >> parameter. >> > >Yes, sorry, startat, not start. > >> 2- The value of the startat parameter must be a variable ... and the >> value of that variable must be set inside the shownext >context. > >Wrong! I don't know where Ken gets this stuff. The [searchstring] tag includes >everything you need to continue your search. The startat parameter must be >present in the original search and then it is available as part of the >[searchstring] tag. There is no requirement that it be a variable, because >_all_ form parameters are variables. > >> >> By the way, if you stop messing around with the searchstring tag and >> instead put all the required variables into your shownext URLs manually, >> as I have demonstrated above, then you will probably begin to understand >> what's going on when you click a shownext link. > >You'll also spend a lot of time writing non-portable code. [searchstring] does >everything for you. With Ken's techniques, you cannot have a page be the target >for multiple search variations and have the [searchstring] automatically do the >right thing. > >> >> Using the searchstring tag tends to hide important information from you, >> which only confuses the issue. And as John said in his previous >> message, the searchstring tag has problems -- which is yet another good >> reason to avoid using it. >> > >No, the documentation has problems; the [searchstring] works just fine. Ken and >I differ, here. He got burned by the error in the docs and never recovered his >confidence in the [shownext]/[searchstring] pair. I figured out why the docs >were wrong and use [searchstring] every day without fear. > >If you care to see just how magical [shownext] is, check out this from our web >site. The raw WebDNA: > >[ShowNext position=begin&method=post&max=1] >
>[searchstring] >Alt=Previous [max] Border=0> >
>[/ShowNext] > >The processed page (for a representative search): > >
> > > > > > > > > > > > > > > > > Value=ATITLE+ASUBTTL+ASUBSUBTTL+AAU+AED+RELATED_SERIES> > Border=0 ALIGN=Top>STYLE=font-family:arial,helvetica;font-size:10pt; Type=Text BORDER=0> >
> >John > >-- >John Peacock >Director of Information Research and Technology >Rowman & Littlefield Publishing Group >4720 Boston Way >Lanham, MD 20706 >301-459-3366 x.5010 >fax 301-429-5747 > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/ >------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Help getting [shownext] to increment (Marko Bernyk 2003)
  2. Re: Help getting [shownext] to increment (Marko Bernyk 2003)
  3. Re: Help getting [shownext] to increment (Kenneth Grome 2003)
  4. Re: Help getting [shownext] to increment (Donovan 2003)
  5. Re: Help getting [shownext] to increment (John Peacock 2003)
  6. Re: Help getting [shownext] to increment (Donovan 2003)
  7. Re: Help getting [shownext] to increment (Joe R. Richardson 2003)
  8. Re: Help getting [shownext] to increment (Joe R. Richardson 2003)
  9. Re: Help getting [shownext] to increment (John Peacock 2003)
  10. Re: Help getting [shownext] to increment (Kenneth Grome 2003)
  11. Re: Help getting [shownext] to increment (John Peacock 2003)
  12. Help getting [shownext] to increment (Joe R. Richardson 2003)
Thought I'd let you know.Using the [searchstring] tag as part of the [shownext] exposes your 'code' under Webcat 3.07. (Dunno if it does the same for versions over 3.07)It is not Context Sensitive and you have to rework your links for [shownext]This is what I use:Show me Items: [shownext][url][item][/url]&from=[start]>[start]-[end] | [/shownext]my result page has a [search]:[search db=database.db&eqFIELDdatarq=[url][item][/url]&FIELDsort=1&FIELDsdir=as&max=20[showif [var_from]=1]&startat=[from][/showif]]Cheers.-- Regards, Marko ------------------------------------------------------------------ Marko Bernyk - Senior System Engineer mailto:marko@conexus.com.au  http://www.conexus.com.au Technical Services, Conexus Pty Ltd, Sydney, Australia Ph 02 9975 2799 Fax 02 9975 2799          :) ------------------------------------------------------------------On Friday, 31 January 2003 10:26 PM, John Peacock wrote: >Kenneth Grome wrote: >> John's almost right, except for two things: >> >> 1- The search context requires a startat parameter, not a start >> parameter. >> > >Yes, sorry, startat, not start. > >> 2- The value of the startat parameter must be a variable ... and the >> value of that variable must be set inside the shownext >context. > >Wrong! I don't know where Ken gets this stuff. The [searchstring] tag includes >everything you need to continue your search. The startat parameter must be >present in the original search and then it is available as part of the >[searchstring] tag. There is no requirement that it be a variable, because >_all_ form parameters are variables. > >> >> By the way, if you stop messing around with the searchstring tag and >> instead put all the required variables into your shownext URLs manually, >> as I have demonstrated above, then you will probably begin to understand >> what's going on when you click a shownext link. > >You'll also spend a lot of time writing non-portable code. [searchstring] does >everything for you. With Ken's techniques, you cannot have a page be the target >for multiple search variations and have the [searchstring] automatically do the >right thing. > >> >> Using the searchstring tag tends to hide important information from you, >> which only confuses the issue. And as John said in his previous >> message, the searchstring tag has problems -- which is yet another good >> reason to avoid using it. >> > >No, the documentation has problems; the [searchstring] works just fine. Ken and >I differ, here. He got burned by the error in the docs and never recovered his >confidence in the [shownext]/[searchstring] pair. I figured out why the docs >were wrong and use [searchstring] every day without fear. > >If you care to see just how magical [shownext] is, check out this from our web >site. The raw WebDNA: > >[ShowNext position=begin&method=post&max=1] >
>[searchstring] >Alt=Previous [max] Border=0> >
>[/ShowNext] > >The processed page (for a representative search): > >
> > > > > > > > > > > > > > > > > Value=ATITLE+ASUBTTL+ASUBSUBTTL+AAU+AED+RELATED_SERIES> > Border=0 ALIGN=Top>STYLE=font-family:arial,helvetica;font-size:10pt; Type=Text BORDER=0> >
> >John > >-- >John Peacock >Director of Information Research and Technology >Rowman & Littlefield Publishing Group >4720 Boston Way >Lanham, MD 20706 >301-459-3366 x.5010 >fax 301-429-5747 > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/ >------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Marko Bernyk

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:

Further tests with the infamous shipCost (1997) WebCat editing, SiteGuard & SiteEdit (1997) form data submission gets truncated (1997) So many lookers, hey smith micro (2003) Bug or syntax error on my part? (1997) 2 Nt's (1998) Emailer help....! (1997) pictures / referrer etc. (1998) WebDNA on Intel Mac? (2006) What am I missing? (1998) what characters are replaced for tab and CR? (1998) Is this possible, WebCat2.0 and checkboxes (1997) WC Database Format (1997) WebStar WebCat Crashing a lot (2004) Dummy Credit Card Number for debug? (1997) Can you do this??? and other stuff (1997) $Quit, $CloseDatabase corrections (1997) Clean Code: Rules for inserting keyboard returns? (1997) bye bye tax rate (1998) Re:Part 2 - [showif] if variable exists (1998)