Add/remove problem

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23746
interpreted = N
texte = Hola todos-I've been trying to get add/remove gifs to work on my results page (click on the add gif, and the remove gif appears, and vice versa). The basic page layout is:[search db=catalog.txt&neskudata=[blank] [founditems] [/founditems][/search]
[showif [interpret][added[index]][/interpret]=F][hideif [interpret][added[index]][/interpret]=F]
*Added[index] is passed as F from a form on the entry page.*WHAT HAPPENS:The found items show OK on the first run through. If I click add on any one of the found items, it's gif changes correctly and it's value is properly set to T. However, the other added items don't display properly. In other words, added1=T is passed back through, but added2 is passed back through as [added2] and so on...I understand why this occurs: obviously I have to create a set of variables that correctly holds values for each added item. However, I've tried to create a set of variables added[index] on this page with no luck.MY QUESTIONS:1) How to create said variables? [math]added[index]=[interpret][added[index][/interpret][/math] does not seem to work either with or without an interpret context 2) Where to place variables once created? Before the search context? Between the search context and the founditems? Inside the founditems loop? On my forehead?I've reread the manual, scoured the online docs, tried a million (no, make that a billion) combinations and still no luck...Any help would be greatly appreciated... -will Associated Messages, from the most recent to the oldest:

    
  1. Add/remove problem (Will Starck 1999)
Hola todos-I've been trying to get add/remove gifs to work on my results page (click on the add gif, and the remove gif appears, and vice versa). The basic page layout is:[search db=catalog.txt&neskudata=[blank] [founditems] [/founditems][/search]
[showif [interpret][added[index]][/interpret]=F][hideif [interpret][added[index]][/interpret]=F]
*Added[index] is passed as F from a form on the entry page.*WHAT HAPPENS:The found items show OK on the first run through. If I click add on any one of the found items, it's gif changes correctly and it's value is properly set to T. However, the other added items don't display properly. In other words, added1=T is passed back through, but added2 is passed back through as [added2] and so on...I understand why this occurs: obviously I have to create a set of variables that correctly holds values for each added item. However, I've tried to create a set of variables added[index] on this page with no luck.MY QUESTIONS:1) How to create said variables? [math]added[index]=[interpret][added[index][/interpret][/math] does not seem to work either with or without an interpret context 2) Where to place variables once created? Before the search context? Between the search context and the founditems? Inside the founditems loop? On my forehead?I've reread the manual, scoured the online docs, tried a million (no, make that a billion) combinations and still no luck...Any help would be greatly appreciated... -will Will Starck

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:

Multiple Hideif peramiters (2001) frames & carts (1997) Silly Question (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) WebCat b13 CGI -shownext- (1997) Hard Questions ? (1997) Apache and Applescript (2004) WebCatalog (1998) Help formatting search results w/ table (1997) installing webcatalog problem. HELP! (1998) [Webcat 2]Next (1997) WebCat2 - Getting to the browser's username/password data (1997) Cache problem (2002) [WebDNA] Cannot get WebDNA and MySQL working. (2015) $purchase WITHOUT creditcar (1997) Merchant account (1998) WebCat2b12 CGI Mac -- Problems propagating the cart through (1997) WebDNA Book? (2003) Deleting Orders (1997) Add to Cart & List of Products (1997)