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:

Looking for a Manual (1997) Return records from another (1997) Calendar (1997) WC2b12: Yes, Formulas.db is for real (1997) Need help with emailer- 2 issues (1997) Search inside Include (1998) [WebDNA] Emailer Issue *SOLVED* (2009) Problem with shownext (2003) Security Question (1997) [spawn] and [formvariables] (1999) wierd [cart] action! (1997) Html mails and Outlook Win 2000 (2001) Question (2000) expansion domain freak out (2003) Problems searching from a FORM (1997) WC2b15 - [HTMLx]...[/HTMLx] problems SOLVED! (1997) sending graphics in HTML email via [sendmail]? (2000) Questions To Answer (1997) Bug Report, maybe (1997) several people editing a database. (2001)