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 understandsget interpreted and then written directly to the html file. Using Headerfields, I passed values manually, as you say.However, there's a problem with the [append] context I have on thewebdelivery page. I use the [append] to add the info to the finalmembers.db, then a [delete] tag afterwards to delete it from apendingMembers.db. The [delete]tag works fine. WebMerchant is misbehavingtoward [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 noopening 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 somethingwrong with the way I had it in the first place, or is append illegal goinginto WebMer? I'm using a Mac and WebStar3.I think this may have been the hardest part of my project...Thanks,Terry WilsonTerry Wilsonterryw@rainbowcreek.com
Associated Messages, from the most recent to the oldest:
>>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 understandsget interpreted and then written directly to the html file. Using Headerfields, I passed values manually, as you say.However, there's a problem with the
[append] context I have on thewebdelivery page. I use the
[append] to add the info to the finalmembers.db, then a
[delete] tag afterwards to delete it from apendingMembers.db. The
[delete]tag works fine. WebMerchant is misbehavingtoward
[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 noopening 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 somethingwrong with the way I had it in the first place, or is append illegal goinginto WebMer? I'm using a Mac and WebStar3.I think this may have been the hardest part of my project...Thanks,Terry WilsonTerry Wilsonterryw@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)