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:

Unexpected error (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Calculating multiple shipping... (1997) [WebDNA] New Webdna framework - WebDNACodeSparker (2012) 2nd WebCatalog2 Feature Request (1996) Cobalt RaQ (2000) OT: Browser based spell check (2002) unable to launch acgi in WebCat (1997) if then else. BUG? (2003) Credit Card Number checking (1997) Followup question re: checksum for credit cards? (1997) [WebDNA] Apache 2 Error Log Entry (2009) RE: Can a database get stomped by simultaneous access? (1997) Append..... doesn't (2000) [WebDNA] Which WebDNA version? (2009) Scientific notation to number, a solution? (2001) Setting up shop (1997) foreign languages, email, webcat (1998) Email Newsletters (2003) Showing unopened cart (1997)