Enhancement Request for WebCatalog-NT

This WebDNA talk-list message is from

1996


It keeps the original formatting.
numero = 10088
interpreted = N
texte = It would be nice if you provided a template variable which was the total number of lines in the scrapbook. I know that I can use [lineIndex] to refer to the current line, but there is no way to get the total number of lines. I needed to be able to use JavaScript to calculate a shipping charge and total for an order form. I had no way of knowing how many lines were in the scrapbook. I eventually just created a JavaScript variable and incremented it within each line as it was generated. I will eventually be rewriting this process with Perl, so non-Netscape browsers can get the purchase total. Something analagous to [numFound] or [numReturned], perhaps called [numLines] would make my life easier... Thanks Associated Messages, from the most recent to the oldest:

    
  1. Re[2]: Enhancement Request for WebCatalog-NT (Grant Hulbert 1996)
  2. Re: Enhancement Request for WebCatalog-NT (Greg Lindberg 1996)
  3. Re[2]: Enhancement Request for WebCatalog-NT (John_Peacock@nbnbooks.com 1996)
  4. Re: Enhancement Request for WebCatalog-NT (Grant Hulbert 1996)
  5. Enhancement Request for WebCatalog-NT (John_Peacock@nbnbooks.com 1996)
It would be nice if you provided a template variable which was the total number of lines in the scrapbook. I know that I can use [lineIndex] to refer to the current line, but there is no way to get the total number of lines. I needed to be able to use JavaScript to calculate a shipping charge and total for an order form. I had no way of knowing how many lines were in the scrapbook. I eventually just created a JavaScript variable and incremented it within each line as it was generated. I will eventually be rewriting this process with Perl, so non-Netscape browsers can get the purchase total. Something analagous to [numFound] or [numReturned], perhaps called [numLines] would make my life easier... Thanks John_Peacock@nbnbooks.com

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:

Cookies and webcat (1997) [WebDNA] [replacefounditems] fails (2009) Date search - yes or no (1997) NetSplat and WebCat2 (1997) Problems adding stuff to the shopping cart. (1997) [Switch] - works great, suggestion (2000) Shopping carts and reloading pages (1997) Date field search needs ... (1998) Num Sort Descending (2004) search problem (2002) Is this possible, WebCat2.0 and checkboxes (1997) ShipTotal Yet Again (1998) OT: Need some feedback, please. (2003) E-mailer error codes (1997) Who needs Yoda! (2002) Help! (1996) Newbie search question (between two dates) (2001) Linux WebDNA Server probs (2004) WebCat2 - many [carts] on one template page? (1997) Google MAP URLs (2006)