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:

    
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:

Smart caching problems with 2.1b3? (1997) date pref (1999) Running _every_ page through WebCat ? (1997) Setting up shop (1997) [WebDNA] Does anyone host webdna sites? (2016) [addlineitems] (1997) WC2b15 File Corruption (1997) Selected Item in Pop-down (2003) Location of Browser Info.txt file (1997) show if date < expiry date (small corrections) (2002) Public Beta for WebCatalog 4.0 is Available (2000) New WebDNA Example from Olin -- (1998) Orderfile context problem (1998) Behind the Scenes. . . (1998) AIM & SIM Issue (2003) variables in template (2000) Nested tags count question (1997) Custom Shipping Charges (1997) Windows 2.1b2 Append Bug? (1997) A quickie question (1997)