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:

Removing and Reinstalling Typhoon (2000) mac hack (1997) change the number format (1997) How To get Some Help (2003) FWD: WebCatalog and .TMPL (1997) expired beta (1997) WebDNA Codes in Secure Mode (1997) Hiding HTML and page breaks (1997) calculating tax rates, mail order solutions and version 2 (1997) X Server (1999) Security Issue (1999) UNIX/Pearl Gurus... attention! (2000) Trouble with formula.db (1997) Europe, (1998) Summing fields (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Break out of a loop? (2000) tpl and Explorer (1998) [SearchString] problem with [search] context (1997) affiliate marketing program (1998)