Founditems Add/remove graphic display problem
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 23635
interpreted = N
texte = Hola-I have a page where the following is contained within a founditems loop.Founditems displays a add to cart graphic which adds the selected item tothe cart when clicked. I'm trying to have that graphic replaced with aremove one when the user clicks on add to cart. Thus the following code:
[hideif [added]=F] [/hideif][hideif [added]=T][/hideif] | Now, this clearly changes all the founditems graphic's to either add orremove simultaneously. Of course, this is not what I want. I've tried to use[index] to create a unique variable for each founditem: added=[added][index] (creates added1, added2, added3 etc...) or [math]added=[added][index][/math]but can find no satisfactory combination of code to get things to displayproperly.I'm stuck. Any suggestions??-will
Associated Messages, from the most recent to the oldest:
Hola-I have a page where the following is contained within a founditems loop.Founditems displays a add to cart graphic which adds the selected item tothe cart when clicked. I'm trying to have that graphic replaced with aremove one when the user clicks on add to cart. Thus the following code:
[hideif [added]=F] [url][sku][/url]&wacategorydata=[url][wacategorydata][/url]&searchTitle=[searchTitle]&numfound=[numfound]&cart=[cart]&inputcode=[inputcode]&discount=[discount]&textA=[title]&asskusort=1&added=F>[/hideif][hideif [added]=T][url][sku][/url]&wacategorydata=[url][wacategorydata][/url]&searchTitle=[searchTitle]&numfound=[numfound]&cart=[cart]&inputcode=[inputcode]&discount=[discount]&textA=[title]&asskusort=1&added=T>[/hideif] | Now, this clearly changes all the founditems graphic's to either add orremove simultaneously. Of course, this is not what I want. I've tried to use[index] to create a unique variable for each founditem: added=[added][index] (creates added1, added2, added3 etc...) or
[math]added=[added][index][/math]but can find no satisfactory combination of code to get things to displayproperly.I'm stuck. Any suggestions??-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:
Search crashing server (1998)
Permission denied? (2004)
LOOP and IF statements (1997)
Webcat 4.0.x and apache 2.x (2002)
ooops...WebCatalog [FoundItems] Problem - LONG - (1997)
Attention all list readers (1997)
FoundItems and punctuation (2000)
strange IE 4.0 (1998)
Zipcodes (1998)
Presenting a .txt file (2000)
Email Set-Up? (1997)
loops (2000)
Preventing code execution (2003)
OS X Problem... (2000)
WebMerchant MacAuthorize Hub (1999)
database size? (1997)
Help!!!! (1997)
Listserver problem (1997)
Math (1997)
Automatic POST arg sending? (1998)