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:Emailer tracking (1997)
Blasted shownext (request for 4.0) (1998)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
[WebDNA] OT: Indexing PDF on iTools / apache2 (2008)
Email (1998)
WebCatalog Mac 2.1b3 (1997)
Modulo function? (2000)
Multiple prices (1997)
Db design question (relational vs. flat?) (1998)
Quitting WebMerchant ? (1997)
Encyption mail was Suggestions for Topics ... (1998)
Cold Fusion Warm and Fuzzy? (1999)
Error .. (2003)
Help! WebCat2 bug (Ben's input) (1997)
loops (2000)
WebCat Error Log problem (2.0.1, acgi, Mac) (1997)
totals (1997)
ODBC on OS 9 (2003)
WebCat2final1 crashes (1997)
Emailer errors (2000)