Automatic Forwarding using WebCat

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13122
interpreted = N
texte = This is a repost of my second question from earlier. I'm sorry, I have a bad and annoying habit of asking more than one question in one post, but I'm in recovery, I'm trying to change! So, here goes... I am writing a routine to make sure that files I am creating with a CGI-ish program I wrote have indeed been deposited in the StockRoom before I send the customer to the Purchase page (this is to prevent file not found errors). I am using [showif] and [hideif] to have a page meta to itself until the files exist, at which point it metas to the purchase page. Here's my idea for the code:Set the variables...[math]testindex=0[/math] [math]count=0[/math]Count the items in the order...[math][orderfile cart=[cart]][lineitems]count=count+1[lineitems][/orderfile][/math]count the # of files in the StockRoom whose filenames match the items in the order:[listfiles /StockRoom][lineitems][showif filename=[SKU].[lineindex]][math]testindex=testindex+1[/showif][/lineitems][/listfiles]Where [SKU].[lineindex] is the filename I'm looking for. Then I conditionally show the META Command I want:[Showif count=testindex][/Showif] [Hideif count=testindex][/Hideif]The body of the page contains a Please wait for your files to be created... message and hopefully some amusing animated GIF.Is this crazy, or will it work? I'm sure I've got some errors in syntax, if not concept. (probably an error in the META command, too--I've got to check that)Another question is, do I really need to do this or is there some way I can have WebMerchant keep trying to find the files to move to WebDelivery until they appear?Please post your suggestions and answers, I greatly appreciate them.Thanks, Michael Bohan Music on Demand, LLC Associated Messages, from the most recent to the oldest:

    
  1. RE: Automatic Forwarding using WebCat (Marc Eagle 1997)
  2. RE: Automatic Forwarding using WebCat (Michael Bohan 1997)
  3. RE: Automatic Forwarding using WebCat (Marc Eagle 1997)
  4. Automatic Forwarding using WebCat (Michael Bohan 1997)
This is a repost of my second question from earlier. I'm sorry, I have a bad and annoying habit of asking more than one question in one post, but I'm in recovery, I'm trying to change! So, here goes... I am writing a routine to make sure that files I am creating with a CGI-ish program I wrote have indeed been deposited in the StockRoom before I send the customer to the Purchase page (this is to prevent file not found errors). I am using [showif] and [hideif] to have a page meta to itself until the files exist, at which point it metas to the purchase page. Here's my idea for the code:Set the variables...[math]testindex=0[/math] [math]count=0[/math]Count the items in the order...[math][orderfile cart=[cart]][lineitems]count=count+1[lineitems][/orderfile][/math]count the # of files in the StockRoom whose filenames match the items in the order:[listfiles /StockRoom][lineitems][showif filename=[SKU].[lineindex]][math]testindex=testindex+1[/showif][/lineitems][/listfiles]Where [SKU].[lineindex] is the filename I'm looking for. Then I conditionally show the META Command I want:[Showif count=testindex][/Showif] [Hideif count=testindex][thisurl]>[/Hideif]The body of the page contains a Please wait for your files to be created... message and hopefully some amusing animated GIF.Is this crazy, or will it work? I'm sure I've got some errors in syntax, if not concept. (probably an error in the META command, too--I've got to check that)Another question is, do I really need to do this or is there some way I can have WebMerchant keep trying to find the files to move to WebDelivery until they appear?Please post your suggestions and answers, I greatly appreciate them.Thanks, Michael Bohan Music on Demand, LLC Michael Bohan

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:

Setting up shop (1997) creating writefile data from a nested search (1997) Bug? (1997) Caching pages...again (2001) How bad an idea is it to put cart=[cart] on all links? (2000) Search on encrypted field (2000) Bug Report, maybe (1997) Pull down menu for categories (2000) another problem (1997) Extracting a filename (2004) Re:2nd WebCatalog2 Feature Request (1996) WebMerchant Mac 3.0 beta available (1998) Exists? (1997) Auto Delete EmailCompleted Files (2002) Re:PCS Customer submissions ? (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) [ModDate] & [ModTime] ? (1997) taxTotal, grandTotal (1997) Slow Code, how to speed up (2002) pop up menu's (1998)