Re: chicken / egg::purchase / setheader

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 46549
interpreted = N
texte = It can also depend on the load on the server. I had a problem with issuing a purchase command and then using the values in the order file. Sometimes the order file didn't get created by the file system until after the code that tried to read from it executed. So I got nothing obviously. I had to use a [waitforfile] context to get around it. It made sure that the file existed in the right spot before I tried to access it. Not difficult to do, just a pain to figure out what was happening at first!Larry Goodhew> > I have a thanks page which will be the recipient of the cart's formal > PURCHASE command. In other words, I'm hitting it like this: > > foo.com/thanks.html?command=purchase&cart=cart&db=database.db > > I also need to run a [setheader] on the cart in question. This action > also has to be built into the thanks page. My question is, where will > the cart be when I get there? > > Either (1) it will be in the Shopping Carts folder, because code WITHIN > the page is hit before the command=purchase is used; or (2) it will be > in either Orders or Problems, because the command=purchase will be > followed before any code inside the page is followed. > > Anybody know which it is? > > AW > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: chicken / egg::purchase / setheader (Andrew Willett 2002)
  2. Re: chicken / egg::purchase / setheader (Donovan Brooke 2002)
  3. Re: chicken / egg::purchase / setheader (Larry Goodhew 2002)
  4. Re: chicken / egg::purchase / setheader (Andrew Willett 2002)
  5. Re: chicken / egg::purchase / setheader (Gary Krockover 2002)
  6. chicken / egg::purchase / setheader (Andrew Willett 2002)
It can also depend on the load on the server. I had a problem with issuing a purchase command and then using the values in the order file. Sometimes the order file didn't get created by the file system until after the code that tried to read from it executed. So I got nothing obviously. I had to use a [waitforfile] context to get around it. It made sure that the file existed in the right spot before I tried to access it. Not difficult to do, just a pain to figure out what was happening at first!Larry Goodhew> > I have a thanks page which will be the recipient of the cart's formal > PURCHASE command. In other words, I'm hitting it like this: > > foo.com/thanks.html?command=purchase&cart=cart&db=database.db > > I also need to run a [setheader] on the cart in question. This action > also has to be built into the thanks page. My question is, where will > the cart be when I get there? > > Either (1) it will be in the Shopping Carts folder, because code WITHIN > the page is hit before the command=purchase is used; or (2) it will be > in either Orders or Problems, because the command=purchase will be > followed before any code inside the page is followed. > > Anybody know which it is? > > AW > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Larry Goodhew

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:

[format 40s]text[/format] doesn't work (1997) Apology to list (2002) format search comparison Q (2000) Searching for the end (1998) RE: Migrating to NT (1997) Explorer 3.0 (1997) NT version (1997) docs for WebCatalog2 (1997) IIS alert from source W3SVC (2000) Country & Ship-to address & other fields ? (1997) [format xs] freeze (1997) plugin-acgi, different results (1997) User/Pass dialogue issue [AOL?] (2002) searching problem (1998) Append (1999) 2.0Beta Command Ref (can't find this instruction) (1997) WebTen and WebCat (1997) Problems appending to database (1997) Re:2nd WebCatalog2 Feature Request (1996) update on wn searching (1997)