Re: hiding links

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23900
interpreted = N
texte = >I tried your elegant solution (!) for hiding a link once an item had been >ordered. However, if I click on an item to add it to the cart, the proper >URL will not be displayed until I click on another item to add it. It seems >that Webcat displays the info to refresh the page faster than it provides >the info on what's been added to the cart, thus breaking the showif/hideif >logic. Is this the case?Yes, that's probably right. But you could do something to get around this problem ... such as:1- write another file to disk *after* the cart change. 2- use a [waitforfile] context to wait for that extra file to be written.This should make webcat wait until the extra file is created *before* it tries to render the page. Then when the page is finally rendered, it's a pretty good bet that the cart changes have been made, which means those changes should be reflected in the resulting page sent to the browser.Personally I do not use shopping cart files on the webdna sites I create, so I never have this problem -- that's why I didn't think about it when suggesting it to you, sorry. Unless a client absolutely requires it, I generally use my own external eCommerce code, which perform the same tasks faster and more flexibly than webcat's internal code -- and it avoids these and other related issues having to do with cart and order 'files' not being databases, not being searchable, etc.That means I can avoid use cart files, and order files, and all the tags associated with them, such as Add, Clear, Remove, Purchase, ShowCart, OrderFile, SetHeader, LineItems, AddLineItem, ClearLineItems, RemoveLineItem, SetLineItem, NewCart and NewCartSearch. Instead I use standard webdna database calls and all the other NON-eCommerce tags the webdna language offers ... :)Sincerely, Kenneth Grome WebDNA Consultant Associated Messages, from the most recent to the oldest:

    
  1. Re: hiding links (Kenneth Grome 1999)
  2. Re: hiding links (Will Starck 1999)
  3. Re: hiding links (Kenneth Grome 1999)
  4. Re: hiding links (josh@pop-art.com 1999)
  5. hiding links (Mícheál O Sé 1999)
  6. hiding links (Mícheál O Sé 1999)
>I tried your elegant solution (!) for hiding a link once an item had been >ordered. However, if I click on an item to add it to the cart, the proper >URL will not be displayed until I click on another item to add it. It seems >that Webcat displays the info to refresh the page faster than it provides >the info on what's been added to the cart, thus breaking the showif/hideif >logic. Is this the case?Yes, that's probably right. But you could do something to get around this problem ... such as:1- write another file to disk *after* the cart change. 2- use a [waitforfile] context to wait for that extra file to be written.This should make webcat wait until the extra file is created *before* it tries to render the page. Then when the page is finally rendered, it's a pretty good bet that the cart changes have been made, which means those changes should be reflected in the resulting page sent to the browser.Personally I do not use shopping cart files on the webdna sites I create, so I never have this problem -- that's why I didn't think about it when suggesting it to you, sorry. Unless a client absolutely requires it, I generally use my own external eCommerce code, which perform the same tasks faster and more flexibly than webcat's internal code -- and it avoids these and other related issues having to do with cart and order 'files' not being databases, not being searchable, etc.That means I can avoid use cart files, and order files, and all the tags associated with them, such as Add, Clear, Remove, Purchase, ShowCart, OrderFile, SetHeader, LineItems, AddLineItem, ClearLineItems, RemoveLineItem, SetLineItem, NewCart and NewCartSearch. Instead I use standard webdna database calls and all the other NON-eCommerce tags the webdna language offers ... :)Sincerely, Kenneth Grome WebDNA Consultant Kenneth Grome

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:

installing webcatalog problem. HELP! (1998) Buying sans cart (1997) Server Freeze (1998) raw=T is broken in [include] (1997) newbies to web, spaces in email address (1998) ListDatabases & ShowIf (2003) Paths, relative paths, webstar server setup and security (Mac) (1997) RAM variables (1997) 2.0 Info (1997) referrer and no caches (1997) creative use of webcatalog (1998) [WebDNA] Image Magick and Webdna (2009) WebCat cannot handle compatible search parameters? (1997) Appendfile memory usage (redux) (2003) [ot] Any One Want A WebDNA Billing Program? (2003) (OT) SERVER FREEZES ALL AT SAME TIME (2004) requiring form fields? (2000) Bug Report, maybe (1997) emailer (1997) frames & carts (1997)