Customizing WebDelivery.html

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18676
interpreted = N
texte = >>On a related matter, I took Bob Minor's suggestion, and others', of putting >>up a [cart].html file (created a page earlier with [copyfile]) with a meta >>refresh so they have a Wait while your card is being processed type of >>page. But I don't get how to pass along the variables that I need on the >>refreshed page that adds them to the paid members database. By the time the >>above bolluxed-up new [cart].html appears, the variables are gone. > >Mine retains the info, you have to watch the redirection that you use, >you will have to pass all the variables manually. In my case I just >passed the cart # and pulled the rest out of a temp.db database based on >the cart info. Which webserver are you using?Thanks, Bob. I figured out that the special fields WebMerchant understands get interpreted and then written directly to the html file. Using Header fields, I passed values manually, as you say.However, there's a problem with the [append] context I have on the webdelivery page. I use the [append] to add the info to the final members.db, then a [delete] tag afterwards to delete it from a pendingMembers.db. The [delete]tag works fine. WebMerchant is misbehaving toward [append][/append].Here's the code from the webdelivery.html file that WebMerchant takes, fools with, and spits out as the [cart].html file, whose code follows:=====webdelivery.html: [append db=/fdusers/fdusers.db]fdID=[Header1][/append] [delete db=/fdusers/fdusersPending.db&eqfdIDdatarq=[Header1]]=====[cart].html: [db]fdID=29824116034361[/append] [delete db=/fdusers/fdusersPending.db&eqfdIDdatarq=29824116034361]=====And the browser displays: [db]fdID=29824116034361Error: Error: expected [/HTMLFORM], but found [/append] [delete db=/fdusers/fdusersPending.db&eqfdIDdatarq=29824116034361]There are no [] brackets whatsoever before this, only normal html, and no opening form tags.=====My fix: I finally got it to work by using Header5 and Header6 fields for [raw][append db=/fdusers/fdusers.db][/raw] and [raw][/append][/raw] respectively in the preceding template, so it looks like this [Header5]fdID=[Header1][Header6]...and that works. But it seems like a bad workaround. Is there something wrong with the way I had it in the first place, or is append illegal going into WebMer? I'm using a Mac and WebStar3.I think this may have been the hardest part of my project...Thanks, Terry WilsonTerry Wilson terryw@rainbowcreek.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Customizing WebDelivery.html (Grant Hulbert 1998)
  2. Re: Customizing WebDelivery.html (Terry Wilson 1998)
  3. Re: Customizing WebDelivery.html (Bob Minor 1998)
  4. Re: Customizing WebDelivery.html (PCS Technical Support 1998)
  5. Re: Customizing WebDelivery.html (Bob Minor 1998)
  6. Customizing WebDelivery.html (Terry Wilson 1998)
>>On a related matter, I took Bob Minor's suggestion, and others', of putting >>up a [cart].html file (created a page earlier with [copyfile]) with a meta >>refresh so they have a Wait while your card is being processed type of >>page. But I don't get how to pass along the variables that I need on the >>refreshed page that adds them to the paid members database. By the time the >>above bolluxed-up new [cart].html appears, the variables are gone. > >Mine retains the info, you have to watch the redirection that you use, >you will have to pass all the variables manually. In my case I just >passed the cart # and pulled the rest out of a temp.db database based on >the cart info. Which webserver are you using?Thanks, Bob. I figured out that the special fields WebMerchant understands get interpreted and then written directly to the html file. Using Header fields, I passed values manually, as you say.However, there's a problem with the [append] context I have on the webdelivery page. I use the [append] to add the info to the final members.db, then a [delete] tag afterwards to delete it from a pendingMembers.db. The [delete]tag works fine. WebMerchant is misbehaving toward [append][/append].Here's the code from the webdelivery.html file that WebMerchant takes, fools with, and spits out as the [cart].html file, whose code follows:=====webdelivery.html: [append db=/fdusers/fdusers.db]fdID=[Header1][/append] [delete db=/fdusers/fdusersPending.db&eqfdIDdatarq=[Header1]]=====[cart].html: [db]fdID=29824116034361[/append] [delete db=/fdusers/fdusersPending.db&eqfdIDdatarq=29824116034361]=====And the browser displays: [db]fdID=29824116034361Error: Error: expected [/HTMLFORM], but found [/append] [delete db=/fdusers/fdusersPending.db&eqfdIDdatarq=29824116034361]There are no [] brackets whatsoever before this, only normal html, and no opening form tags.=====My fix: I finally got it to work by using Header5 and Header6 fields for [raw][append db=/fdusers/fdusers.db][/raw] and [raw][/append][/raw] respectively in the preceding template, so it looks like this [Header5]fdID=[Header1][Header6]...and that works. But it seems like a bad workaround. Is there something wrong with the way I had it in the first place, or is append illegal going into WebMer? I'm using a Mac and WebStar3.I think this may have been the hardest part of my project...Thanks, Terry WilsonTerry Wilson terryw@rainbowcreek.com Terry Wilson

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:

Re:Hideif / Showif (1998) HomePage Caution (1997) Nested tags count question (1997) A multi-processor savvy WebCatalog? (1997) Busy WebCatalog (2000) Site Builder & IE Mac (2004) Plugin vs. CGI (1998) Search design (1997) Max Record length restated as maybe bug (1997) Re:listfiles-looking for slick solution (1997) Re:Subcription Sales w/WebCatalog (1999) Quiz question: Return all green and blank records? (2001) Another IfThenElse question.. (2003) Running on Empty (1999) Email check problems (1999) best way to check against old cart #s (1999) Using [Include] Context (1999) Need help... (1997) WCf2 and nested tags (1997) all records returned. (1997)