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:

WebCat2: Items xx to xx shown, etc. (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Rhapsody? (1997) converting characters in form (1997) Dealing with return characters (2004) Help me choose an upgrade path to 5.0 (2003) searchable list archive (1997) Formulas.db + Users.db (1997) how to do [search] params on the fly? (2004) WebCatalog for Postcards ? (1997) creates folders with AS (1997) This list needs a digest: rant, rave... (1997) Running 2 two WebCatalog.acgi's (1996) [cart] not being interpreted inside [founditems] (1997) spaces in db (2001) SmithMicro at Macworld NY (2000) Now you see it now you don´t (1997) Bug alert! (1997) Re:Emailer and encryption (1997) quantity limit (1998)