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:
Bug alert! (1997)
Plugin or CGI or both (1997)
combine search (1998)
Shipping by order total (2003)
Extended [ConvertChars] (1997)
Any way to retrieve information from clipboard? (1998)
OT: Forcing a header when printing web pages (2002)
getting images' width/height (1998)
Keep away (1997)
comparison looking for unitialized var shows webcat bug? (2000)
Problems with date math (1997)
WebCat/CyberStudio Compatibility (1998)
Generating Report Totals (1997)
Gettting IPAddress (2001)
Shopping Carts (2000)
RE: type 2 errors with ssl server (1997)
color and size options / ARCHIVES (1997)
en/decrypt problem (1999)
The BUG is BACK -- leading < character (1998)
All questions are welcome on this list (1997)