Re: [WebDNA] WebDNA as cgi app (was WebSite Examples)
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 100137
interpreted = N
texte = Dennis J. Bonsall, Jr. wrote:>> I am talking about the SiteBuilder product. [cart] is here for the long>> haul...> > > Not sure how I missed that. I guess I was just being a little jumpy. > New owners means a new vision and future for the products, and I guess > I was thinking this could lead to some radical changes. I guess I was > thinking that perhaps you didn't like passing the cart through the URL, > and were wanting to change a fundamental function of the software. > Perhaps I'm just nervous in that regard, since the future plans for > WebDNA, while they look bright, are somewhat mysterious at this point. > I've never used the SiteBuilder before, so I guess it didn't dawn on me > that that was what you were talking about.> > Sorry for jumping the gun.> > DennisNo worries!, it was just a clarification... and no, I don't personaly like passingthe cart. :-) Google will index the cart number if it is in the URL, andit's a PITA to deal with in making sure all your links have the cart=[cart] init... not to mention it adds to the URL length (I guess I just *did* mentionthat)I still use cart however, but more with cookies.Here is one way to replace the cart=[cart] in a sitebuilder likesystem (put this at the top of the page, or [include] it at the top of thepage):** disclaimer.. I'm not sure if I've tested this with a sitebuilder type ofsystem that still contains frames! **----------[!] ** Set these variables ** [/!] [!] ** cookie session name ** [/!] [text]ses_cname=cookiename[/text] [!] ** Domain of site (use without the host (www) to ensure access of all hosts)** [/!] [text]thedomain=domain.com[/text] [!] ** set page index name ** [/!] [text]pag_name=index.html[/text][!] ** check for cart value ** [/!][if "[GETCOOKIE name=[ses_cname]]"=""] [then] [!] ** No value or doesn't exist, Setting a session cookie ** [/!] [text]cart=[cart][/text] [showif [url][!] [/!][lookup db=WebMerchant/Orders.db[!] [/!]&Value=[CART][!] [/!]&Lookinfield=CART[!] [/!]&Returnfield=CART[!] [/!]&Notfound=NF][!] [/!][/url]=[url][CART][/url]] [redirect url=[url][pag_name]?ra=[random][random][random][/url]] [/showif] [!] ** Set cart for this page, and desired expire of session here ** [/!] [SETCOOKIE name=[ses_cname]&value=[cart][!] [/!]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+1[/math][/format][!] [/!] [math time]{[time]}+{05:00:00}[/math] GMT[!] [/!]&path=/[!] [/!]&domain=[thedomain]] [/then] [else] [!] ** The cookie has a value, setting "CART" for this page if it has not been purchased already ** [/!] [showif [url][!] [/!][lookup db=WebMerchant/Orders.db[!] [/!]&Value=[GETCOOKIE name=[ses_cname]][!] [/!]&Lookinfield=CART[!] [/!]&Returnfield=CART[!] [/!]&Notfound=NF][!] [/!][/url]=[url][GETCOOKIE name=[ses_cname]][/url]] [!] ** This cart was found to be purchased, proceeding to reset users session cookie, set desired expire here** [/!] [text]cart=[cart][/text] [SETCOOKIE name=[ses_cname][!] [/!]&value=[cart][!] [/!]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+1[/math][/format][!] [/!] [math time]{[time]}+{05:00:00}[/math] GMT[!] [/!]&path=/[!] [/!]&domain=[thedomain]] [redirect url=[url][pag_name]?ra=[random][random][random][/url]] [/showif] [!] ** setting the cart value! ** [/!] [text]cart=[GETCOOKIE name=[ses_cname]][/text] [/else][/if]---------- From this point further down on each "page".. a fresh "[cart]", thathasn't been purchased, should be available to access the orderfile.[orderfile cart=[cart]]Cheers!,Donovan-- Donovan D. Brooke - VP PH/FAX: 1 (608) 291-2024WebDNA Software Corporation 16192 Coastal Highway Lewes, DE 19958
Associated Messages, from the most recent to the oldest:
Dennis J. Bonsall, Jr. wrote:>> I am talking about the SiteBuilder product.
[cart] is here for the long>> haul...> > > Not sure how I missed that. I guess I was just being a little jumpy. > New owners means a new vision and future for the products, and I guess > I was thinking this could lead to some radical changes. I guess I was > thinking that perhaps you didn't like passing the cart through the URL, > and were wanting to change a fundamental function of the software. > Perhaps I'm just nervous in that regard, since the future plans for > WebDNA, while they look bright, are somewhat mysterious at this point. > I've never used the SiteBuilder before, so I guess it didn't dawn on me > that that was what you were talking about.> > Sorry for jumping the gun.> > DennisNo worries!, it was just a clarification... and no, I don't personaly like passingthe cart. :-) Google will index the cart number if it is in the URL, andit's a PITA to deal with in making sure all your links have the cart=
[cart] init... not to mention it adds to the URL length (I guess I just *did* mentionthat)I still use cart however, but more with cookies.Here is one way to replace the cart=
[cart] in a sitebuilder likesystem (put this at the top of the page, or
[include] it at the top of thepage):** disclaimer.. I'm not sure if I've tested this with a sitebuilder type ofsystem that still contains frames! **----------
[!] ** Set these variables ** [/!]
[!] ** cookie session name ** [/!]
[text]ses_cname=cookiename[/text]
[!] ** Domain of site (use without the host (www) to ensure access of all hosts)** [/!]
[text]thedomain=domain.com[/text]
[!] ** set page index name ** [/!]
[text]pag_name=index.html[/text]
[!] ** check for cart value ** [/!][if "[GETCOOKIE name=[ses_cname]]"=""] [then]
[!] ** No value or doesn't exist, Setting a session cookie ** [/!]
[text]cart=
[cart][/text] [showif
[url][!] [/!][lookup db=WebMerchant/Orders.db
[!] [/!]&Value=
[cart][!] [/!]&Lookinfield=CART
[!] [/!]&Returnfield=CART
[!] [/!]&Notfound=NF]
[!] [/!][/url]=
[url][cart][/url]] [redirect url=
[url][pag_name]?ra=
[random][random][random][/url]] [/showif]
[!] ** Set cart for this page, and desired expire of session here ** [/!] [SETCOOKIE name=[ses_cname]&value=
[cart][!] [/!]&expires=[format days_to_date %A, %d-%b-%Y]
[math]{
[date]}+1[/math][/format]
[!] [/!] [math time]{
[time]}+{05:00:00}[/math] GMT
[!] [/!]&path=/
[!] [/!]&domain=[thedomain]] [/then] [else]
[!] ** The cookie has a value, setting "CART" for this page if it has not been purchased already ** [/!] [showif
[url][!] [/!][lookup db=WebMerchant/Orders.db
[!] [/!]&Value=[GETCOOKIE name=[ses_cname]]
[!] [/!]&Lookinfield=CART
[!] [/!]&Returnfield=CART
[!] [/!]&Notfound=NF]
[!] [/!][/url]=
[url][GETCOOKIE name=[ses_cname]][/url]]
[!] ** This cart was found to be purchased, proceeding to reset users session cookie, set desired expire here** [/!]
[text]cart=
[cart][/text] [SETCOOKIE name=[ses_cname]
[!] [/!]&value=
[cart][!] [/!]&expires=[format days_to_date %A, %d-%b-%Y]
[math]{
[date]}+1[/math][/format]
[!] [/!] [math time]{
[time]}+{05:00:00}[/math] GMT
[!] [/!]&path=/
[!] [/!]&domain=[thedomain]] [redirect url=
[url][pag_name]?ra=
[random][random][random][/url]] [/showif]
[!] ** setting the cart value! ** [/!]
[text]cart=[GETCOOKIE name=[ses_cname]][/text] [/else][/if]---------- From this point further down on each "page".. a fresh "
[cart]", thathasn't been purchased, should be available to access the orderfile.[orderfile cart=
[cart]]Cheers!,Donovan-- Donovan D. Brooke - VP PH/FAX: 1 (608) 291-2024WebDNA Software Corporation 16192 Coastal Highway Lewes, DE 19958
Donovan Brooke
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:
filemaker - orderfile (1997)
Design Help Needed (1998)
Webcat/Webmerchant part II (1998)
RE: Database field limit? (1998)
[shownext max=?] armed (1997)
authenticate and password (1998)
find with exceptions (1997)
[WebDNA] PROBLEM WITH [SQL] (2009)
Not carrying Zero (2000)
[WebDNA] Handling passwords in WebDNA (2010)
Some Advise needed (1997)
[WebDNA] Problem with SendMail - seems succesfull but nothing to (2016)
Server slowing down. (1997)
Interpreting WebDNA in javascript (2006)
Possible Bug 4.51 (2004)
Today's suggestions (1998)
Too many webcat comments. [WAS- Large founditems loops] (2000)
WebCatalog NT beta 18 now available (1997)
WebCat2 Append problem (B14Macacgi) (1997)
Re:HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997)