Re: Unable to view next 101-200

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14333
interpreted = N
texte = Grant Hulbert wrote:> Judging by the length of the URL you posted, I'm guessing you've gone beyond the limits of a hyperlink (max 255 for most browsers, ~80 for NC 4.0), so you should convert to POST for the ShowNext links. > > Something like: > > [ShowNext method=POST] >
> > [SearchString] > >
> Thanks Ken and Grant for your quick replies. I was following the thread last night on all the shownext stuff that was being discussed; although that was only relating to formatting and not to the URL length problems I was having, it was helpful. The length of the hyperlink was indeed the problem and I don't know why I didn't pick up on it earlier. So for the benefit of anyone who might make use of this or is still as frustrated as they were last night, I'll post what I came up with. My search results pages now display XXX number of records found matching your search criteria (items X to X shown) at the top, and two buttons side by side at the bottom that say Show Previous Group (X-X) and Show Next Group (X-X). Sure beats a list of 26 hyperlinks. This displays the stuff at the top of the page:[showif [math]([startAt]+([max]-1))[/math]>[numFound]][numFound] item(s) matching your search criteria were found[showif [numFound]>[max]] (items [startAt] to [numFound] shown)[/showif]:[/showif][hideif [math]([startAt]+([max]-1))[/math]>[numFound]][numFound] item(s) matching your search criteria were found[showif [numFound]>[max]] (items [startAt] to [math][startAt]+[max]-1[/math] shown)[/showif]:[/hideif] And this gives me the buttons at the bottom:
[ShowNext method=POST&position=begin&max=1][SearchString][/ShowNext] [ShowNext method=POST&position=end&max=1][SearchString][/ShowNext]
-- Gil Poulsen, Webmaster************************************************************** * AltiM@c * Phone: (732) 469-2567 * * 429 St. Giles Court * FAX: (732) 469-5823 * * Somerset, NJ * e-mail: help@altimac.com * * 08873 * WWW: http://www.altimac.com * ************************************************************** Associated Messages, from the most recent to the oldest:

    
  1. Re: Unable to view next 101-200 (Gil Poulsen 1997)
  2. Re: Unable to view next 101-200 (Grant Hulbert 1997)
  3. Re: Unable to view next 101-200 (Kenneth Grome 1997)
  4. Unable to view next 101-200 (Gil Poulsen 1997)
Grant Hulbert wrote:> Judging by the length of the URL you posted, I'm guessing you've gone beyond the limits of a hyperlink (max 255 for most browsers, ~80 for NC 4.0), so you should convert to POST for the ShowNext links. > > Something like: > > [ShowNext method=POST] >
> > [SearchString] > >
> Thanks Ken and Grant for your quick replies. I was following the thread last night on all the shownext stuff that was being discussed; although that was only relating to formatting and not to the URL length problems I was having, it was helpful. The length of the hyperlink was indeed the problem and I don't know why I didn't pick up on it earlier. So for the benefit of anyone who might make use of this or is still as frustrated as they were last night, I'll post what I came up with. My search results pages now display XXX number of records found matching your search criteria (items X to X shown) at the top, and two buttons side by side at the bottom that say Show Previous Group (X-X) and Show Next Group (X-X). Sure beats a list of 26 hyperlinks. This displays the stuff at the top of the page:[showif [math]([startAt]+([max]-1))[/math]>[numFound]][numFound] item(s) matching your search criteria were found[showif [numFound]>[max]] (items [startAt] to [numFound] shown)[/showif]:[/showif][hideif [math]([startAt]+([max]-1))[/math]>[numFound]][numFound] item(s) matching your search criteria were found[showif [numFound]>[max]] (items [startAt] to [math][startAt]+[max]-1[/math] shown)[/showif]:[/hideif] And this gives me the buttons at the bottom:
[ShowNext method=POST&position=begin&max=1][SearchString][/ShowNext] [ShowNext method=POST&position=end&max=1][SearchString][/ShowNext]
-- Gil Poulsen, Webmaster************************************************************** * AltiM@c * Phone: (732) 469-2567 * * 429 St. Giles Court * FAX: (732) 469-5823 * * Somerset, NJ * e-mail: help@altimac.com * * 08873 * WWW: http://www.altimac.com * ************************************************************** Gil Poulsen

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:

Summing fields (1997) restart needed???? (1997) [WebDNA] Database Error -oRiGiNaL- (2012) price field blank causes server crash? (2004) Mass deletion of records (2006) Not really WebCat (1997) [replace][founditems]? (2004) RE: Cart Template (1997) WCS Newbie question (1997) Error: Too many nested [xxx] contexts (1997) RE: Displaying Location (1997) Bug? (1997) [addlineitems] (1997) Include error (2000) Expiration of Carts (1997) Still trying to email... (1998) problems with 2 tags shakur (1997) [ShowCart] and GET vs. POST (1997) Calculating Total QTY (1998) [url] - question (2000)