Show next 2 examples that work

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14940
interpreted = N
texte = For those still having problems with the [shownext] [/shownext] stuff I know these work. They may not be right...but they work!Creating a page were you want to pour out the records on via standard hyperlink to on a page/template named viseimages.htmlThe link to get to that page isList all Vise Catalog Photosie: using...[search] [founditems] [/founditems] [/search]I use the following which mostly came from Christer, except for my [hideif][Search db=/data/image.db&adddatesort=1&adddatesdir=de&inamesort=2&inamesdir=as&eqar eadatarq=vises&max=[AT]&startAt=[SA]][founditems]display your search results here[/founditems]
[shownext position=begin&max=1] [hideif [math][SA]=1[/math]] <--this hides the previous tag on the first page only Previous Image Page [/hideif] [/showNext] [ShowNext position=end&max=1] Next Image Page [/showNext]
[/search]

Tip: Use your browser back button to back-up it is way faster then using clicking on Previous Image Page. It loads the images again from your local cache vs getting them again from our server.

Now in the example above we are displaying some 125 image thumnails 15 to a page. That is why the tip is listed there. Now using the $search method we start on a page like this to find sales reps by trade channel, zip code and home offices only

Search For Your PanaVise Sales Representative By Zip Code

Zip Code: (Enter the first 3 digits of your Zip Code)
Click on the Button of the Market you would like to Search.
Electronics / GLD Vise Representative
Communications / Cellular Representative
CCTV / Security Representative
Sound Representative
List all Representatives for the Zip Code entered above
Use these Buttons for Zip Code Search
which leads to the repziplist template [showif [wozcodesdatarq]=]
You forgot to enter a Zip Code to search on

Go back to Repsearch Page and enter it
[/showif][showif [math]errorCount[/math]=0]

Found [numFound] items that match your request.

PanaVise Sales Representative Search by Zip Code results
[FoundItems]

Type:[tradech]Ph:[phnum]
Name:[firm]Fx:[faxnum]
Address:[addr1]
[addr2]
Em:[em]
Hmpage:[hmpage]
Contact:[contact]States Covered:[stcodes]
Territory
Description:
[territory]

[/FoundItems][ShowNext] Show Items [start]-[end]
[/ShowNext]
Conduct Another Search
[/showif] Now this one we leave in all the links that spill below the search because if they do not hit a radio button it defaults to list all reps 4 per page. It shows the user the links show items 5-8 show items 9-12, etc.In our case it will never be more than 4 or 5 links, because we know how few records are in this data base.You can see the second one in action at http://www.panavise.com/sales/search/repsearch.tmplthe first one is buried inside our protected intranet for our sales and marketing department.Feel free to cut and copy the code, because that is what I did when I used what Christer posted on the first example :)Again they might not be perfect webdna coding...but the final results is what counts :)=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Associated Messages, from the most recent to the oldest:

    
  1. Show next 2 examples that work (grichter@panavise.com (Gary Richter) 1997)
For those still having problems with the [shownext] [/shownext] stuff I know these work. They may not be right...but they work!Creating a page were you want to pour out the records on via standard hyperlink to on a page/template named viseimages.htmlThe link to get to that page isList all Vise Catalog Photosie: using...[search] [founditems] [/founditems] [/search]I use the following which mostly came from Christer, except for my [hideif][Search db=/data/image.db&adddatesort=1&adddatesdir=de&inamesort=2&inamesdir=as&eqar eadatarq=vises&max=[AT]&startAt=[SA]][founditems]display your search results here[/founditems]
[shownext position=begin&max=1] [hideif [math][SA]=1[/math]] <--this hides the previous tag on the first page only[math][SA]-[AT][/math]&AT=[AT]> Previous Image Page [/hideif] [/showNext] [ShowNext position=end&max=1] [math][SA]+[AT][/math]&AT=[AT]> Next Image Page [/showNext]
[/search]

Tip: Use your browser back button to back-up it is way faster then using clicking on Previous Image Page. It loads the images again from your local cache vs getting them again from our server.

Now in the example above we are displaying some 125 image thumnails 15 to a page. That is why the tip is listed there. Now using the $search method we start on a page like this to find sales reps by trade channel, zip code and home offices only

Search For Your PanaVise Sales Representative By Zip Code

Zip Code: (Enter the first 3 digits of your Zip Code)
Click on the Button of the Market you would like to Search.
Electronics / GLD Vise Representative
Communications / Cellular Representative
CCTV / Security Representative
Sound Representative
List all Representatives for the Zip Code entered above
Use these Buttons for Zip Code Search
which leads to the repziplist template[math]errorCount=0[/math]> [showif [wozcodesdatarq]=]
You forgot to enter a Zip Code to search on

[referrer]>Go back to Repsearch Page and enter it
[math]errorCount=errorCount+1[/math]> [/showif][showif [math]errorCount[/math]=0]

Found [numFound] items that match your request.

PanaVise Sales Representative Search by Zip Code results
[founditems]

Type:[tradech]Ph:[phnum]
Name:[firm]Fx:[faxnum]
Address:[addr1]
[addr2]
Em:[em]
Hmpage:[hmpage]
Contact:[contact]States Covered:[stcodes]
Territory
Description:
[territory]

[/FoundItems][shownext] Show Items [start]-[end]
[/ShowNext]
Conduct Another Search
[/showif] Now this one we leave in all the links that spill below the search because if they do not hit a radio button it defaults to list all reps 4 per page. It shows the user the links show items 5-8 show items 9-12, etc.In our case it will never be more than 4 or 5 links, because we know how few records are in this data base.You can see the second one in action at http://www.panavise.com/sales/search/repsearch.tmplthe first one is buried inside our protected intranet for our sales and marketing department.Feel free to cut and copy the code, because that is what I did when I used what Christer posted on the first example :)Again they might not be perfect webdna coding...but the final results is what counts :)=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== grichter@panavise.com (Gary Richter)

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:

Alpha Sort - ignore certain characters (2003) Apple event reply error (-1) (1997) truncating email part II (1997) WebCatb15 Mac CGI -- [purchase] (1997) Base 64 encoding (2001) looking for developers with solutions (2000) Possible Bug in 2.0b15.acgi (1997) Separate SSL Server (1997) SOLVED: [WebDNA] [lookup..] returning nothing at all.. not even the notfound param. (2010) BUG REPORT: numeric ge, le, gr & ls comparisons don't work ... (1999) How do you hide [math]stuff[/math] (1997) [WebDNA] WebDNA Showcase? (2008) SiteEdit Pro Update Announcement (1997) Field Totals (2004) when is failing to [URL]ize values in a comparison risky? (1999) RE: E-mailer error codes (1997) Develop on Mac - Serve on Linux (2002) all records returned. (1997) I can help! (1996) SFTP [scp solution] (2004)