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. > > Dennis No worries!, it was just a clarification... and no, I don't personaly like passing the cart. :-) Google will index the cart number if it is in the URL, and it's a PITA to deal with in making sure all your links have the cart=[cart] in it... not to mention it adds to the URL length (I guess I just *did* mention that) I still use cart however, but more with cookies. Here is one way to replace the cart=[cart] in a sitebuilder like system (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 of system 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]", that hasn't been purchased, should be available to access the orderfile. [orderfile cart=[cart]] Cheers!, Donovan -- Donovan D. Brooke - VP PH/FAX: 1 (608) 291-2024 WebDNA Software Corporation 16192 Coastal Highway Lewes, DE 19958 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) (Peter Ostry 2008)
  2. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) (Donovan Brooke 2008)
  3. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) ("Dennis J. Bonsall, Jr." 2008)
  4. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) (Donovan Brooke 2008)
  5. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) ("Dennis J. Bonsall, Jr." 2008)
  6. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) (Peter Ostry 2008)
  7. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) ("William DeVaul" 2008)
  8. [test]RE: [WebDNA] WebDNA as cgi app (was WebSite Examples) ("Will Starck" 2008)
  9. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) (Bob Minor 2008)
  10. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) (Peter Ostry 2008)
  11. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) (Bob Minor 2008)
  12. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) ("William DeVaul" 2008)
  13. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) (Peter Ostry 2008)
  14. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) (Donovan Brooke 2008)
  15. Re: [WebDNA] WebDNA as cgi app (was WebSite Examples) (Patrick McCormick 2008)
  16. [WebDNA] WebDNA as cgi app (was WebSite Examples) (Terry Wilson 2008)
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. > > Dennis No worries!, it was just a clarification... and no, I don't personaly like passing the cart. :-) Google will index the cart number if it is in the URL, and it's a PITA to deal with in making sure all your links have the cart=[cart] in it... not to mention it adds to the URL length (I guess I just *did* mention that) I still use cart however, but more with cookies. Here is one way to replace the cart=[cart] in a sitebuilder like system (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 of system 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]", that hasn't been purchased, should be available to access the orderfile. [orderfile cart=[cart]] Cheers!, Donovan -- Donovan D. Brooke - VP PH/FAX: 1 (608) 291-2024 WebDNA 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:

Email Formatting and Encryption (1998) A Global Variable (1997) Running 2 two WebCatalog.acgi's (1996) Emailer setup (1997) typhoon... (1997) WebCatalog NT beta 18 now available (1997) FTP Problem (2005) Stumped (1999) [WebDNA] WebDNA on LiveCD ... (2008) Almost a there but..bye bye NetCloak (1997) Header info in content (1998) Clean Code: Rules for inserting keyboard returns? (1997) WebCat2 - many [carts] on one template page? (1997) sort problems....bug or brain fart? (1997) WebCatalog can't find database (1997) popmenus database and line items (2000) using showpage and showcart commands (1996) Server Load (2000) Encyption mail was Suggestions for Topics ... (1998) emailer settings and control questions (1997)