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:

Temp DBs (2007) ShowNext for method=POST (1997) Attn: Scott - webdna 6.0a patch and mysql (2005) wc 2 pro users - sites, quotes wanted (1997) WebCat2 - many [carts] on one template page? (1997) [WriteFile] problems (1997) Add htmlarea 3 to SiteBuilder (2004) Emailer question (1998) all records returned. (1997) Reserved words - Enhancement request (2000) Re:2nd WebCatalog2 Feature Request (1996) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) RE: Formulas.db + Users.db (1997) b12 cannot limit records returned and more. (1997) Bit off subject -- Faxing orders (1997) pull downs (1997) Pulldown Menu Problem (2000) off topic - dna snipets (1997) [SEARCH] Context for SKU prices not working... (1998) looping table rows (1999)