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:

PCS Frames (1997) WCS Newbie question (1997) [moveFile] Question (1999) Running _every_ page through WebCat ? (1997) WC Database Format (1997) Re[2]: Putting a page between checkout and invoice (1999) Printing a final order (1997) Nested tags count question (1997) Calendar (1997) A question for the experts (2000) How do I make this faster???? (2000) Page Showing 3 times (2000) Cookie Question (1999) Sendmail on OSX/Communigate Pro (2002) Auto-closing of databases (was DON'T use old cart file!) (1997) Cross OS Compatible HTML emailing (2003) $adminput doesn't allow [include] files (1997) still having shipCost.db Problem (1997) Opinion: [input] should be called [output] ... (1997) [WebDNA] Middle Question (2015)