Re: WebCat 4 crashes WebStar / Shownext Links

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 36882
interpreted = N
texte = >>More info on my ShowNext links. What are the ramifications of >>redundant variables in a url? I had to add startat=[startat] in one >>of my search strings > >Why? >Are you sure you don't need [startat]=[start]? >Let's see some webdna code so we can debug it for you ...You are right; thanks. I think I have it figured out now.Here's what I had, and it worked flawlessly under WebCat 2.6, despite its bad code:[search db=msgbd.db&eqforumdatarq=[forum]&delatestsubsort=1&latestsubtype=date &Subjectsumm=t&max=10&startat=[startat]][founditems] ...the meat of the page... [/founditems]| [shownext position=begin] [start]-[end] | [/shownext][shownext position=middle][start]-[end] [/shownext][shownext position=end] | [start]-[end] [/shownext] |[/search]After a lot of trial and error, here's what I come up with:| [shownext position=begin] [start]-[end] | [/shownext]Since my search context only needs the [forum] variable, I got rid of the [searchstring] altogether, and left in only the forum and startat variables. This certainly shortened the URL. Also wrapped [forum] with [url][/url]. What I surmise is that the Shownext context's talent lies in calculating the starting and ending indices for the chunks of the found set, given a max parameter. Is that correct? In other words, if you're using a search context at the top of your page, you can just feed the next page whatever variables you need, along with the starting number so you display what you want. This is really confusing for me, and I know a lot of other people too. Can someone from SM chime in here and clarify this? I know for myself, when I understand what goes on under the hood, I can code better.On other sections of my site, my search originates on the previous page with a form, and in that case, I didn't need the [startat] anywhere at all... the searchstring takes care of everything as advertised.So back to the original point: would any of the things I changed (shortening the URL, losing the [searchstring] following a search _context_, and using [url]...[/url]) cause the latest WebCat 4 to crash WebStar 4.4??? I'm crashing several times a day.Thanks Terry terry@terryfic.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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: WebCat 4 crashes WebStar / Shownext Links (Terry Wilson 2001)
  2. Re: WebCat 4 crashes WebStar / Shownext Links (John Peacock 2001)
  3. Re: WebCat 4 crashes WebStar / Shownext Links (Terry Wilson 2001)
  4. Re: WebCat 4 crashes WebStar / Shownext Links (Kenneth Grome 2001)
  5. WebCat 4 crashes WebStar / Shownext Links (Terry Wilson 2001)
>>More info on my ShowNext links. What are the ramifications of >>redundant variables in a url? I had to add startat=[startat] in one >>of my search strings > >Why? >Are you sure you don't need [startat]=[start]? >Let's see some webdna code so we can debug it for you ...You are right; thanks. I think I have it figured out now.Here's what I had, and it worked flawlessly under WebCat 2.6, despite its bad code:[search db=msgbd.db&eqforumdatarq=[forum]&delatestsubsort=1&latestsubtype=date &Subjectsumm=t&max=10&startat=[startat]][founditems] ...the meat of the page... [/founditems]| [shownext position=begin] [thisurl]?[searchstring]&db=[db]&forum=[forum]&startat=[start]> [start]-[end] | [/shownext][shownext position=middle][start]-[end] [/shownext][shownext position=end] | [thisurl]?[searchstring]&db=[db]&forum=[forum]&startat=[start]> [start]-[end] [/shownext] |[/search]After a lot of trial and error, here's what I come up with:| [shownext position=begin] [thisurl]?forum=[url][forum][/url]&startat=[start]> [start]-[end] | [/shownext]Since my search context only needs the [forum] variable, I got rid of the [searchstring] altogether, and left in only the forum and startat variables. This certainly shortened the URL. Also wrapped [forum] with [url][/url]. What I surmise is that the Shownext context's talent lies in calculating the starting and ending indices for the chunks of the found set, given a max parameter. Is that correct? In other words, if you're using a search context at the top of your page, you can just feed the next page whatever variables you need, along with the starting number so you display what you want. This is really confusing for me, and I know a lot of other people too. Can someone from SM chime in here and clarify this? I know for myself, when I understand what goes on under the hood, I can code better.On other sections of my site, my search originates on the previous page with a form, and in that case, I didn't need the [startat] anywhere at all... the searchstring takes care of everything as advertised.So back to the original point: would any of the things I changed (shortening the URL, losing the [searchstring] following a search _context_, and using [url]...[/url]) cause the latest WebCat 4 to crash WebStar 4.4??? I'm crashing several times a day.Thanks Terry terry@terryfic.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://search.smithmicro.com/ Terry Wilson

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:

Robust WebDNA Job Manager / Accountant (2006) 2.0 Info (1997) OLD ORDERS (1998) CVS Files for databases (2000) Strange intermittent WebDNA problems (2008) Carrying Forward (1998) Methods of protecting "invoice page" (2003) Multiple Users.db Possible? (1997) NT License trade for Mac (2000) WebDNA 6 (2004) Formulas.db not working (2006) Is this possible, WebCat2.0 and checkboxes (1997) Not really WebCat (1997) [OT] Mac OSX hardware test software (2004) Add a field to the error log? (1997) credit card (1997) [INCLUDE] Limitations (1998) Grouping fields help (2004) using showpage and showcart commands (1996) webcat2b12 CGI -- Date comparisons (1997)