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 to the cart when clicked. I'm trying to have that graphic replaced with a remove 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 or remove 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 display properly.I'm stuck. Any suggestions??-will Associated Messages, from the most recent to the oldest:

    
  1. Re: Founditems Add/remove graphic display problem (Will Starck 1999)
  2. Re: Founditems Add/remove graphic display problem (Rob Marquardt 1999)
  3. Founditems Add/remove graphic display problem (Will Starck 1999)
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 to the cart when clicked. I'm trying to have that graphic replaced with a remove one when the user clicks on add to cart. Thus the following code: [hideif [added]=F] [url][sku][/url]&waca tegorydata=[url][wacategorydata][/url]&searchTitle=[searchTitle]&numfound=[n umfound]&cart=[cart]&inputcode=[inputcode]&discount=[discount]&textA=[title] &asskusort=1&added=F>[/hideif][hideif [added]=T][url][sku][/url]&w acategorydata=[url][wacategorydata][/url]&searchTitle=[searchTitle]&numfound =[numfound]&cart=[cart]&inputcode=[inputcode]&discount=[discount]&textA=[tit le]&asskusort=1&added=T>[/hideif] Now, this clearly changes all the founditems graphic's to either add or remove 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 display properly.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:

I've been thinking (2002) Summing fields (1997) pop up menu's (1998) Separate server for jpg/gif files (1998) Was: Num Sort Descending (OT) Now: List Ediquette (2004) WebCatalog can't find database (1997) WebDNA 4.5.1 Now Available (2003) expired beta (1997) Multiple 'Users.db' files not possible (1997) New Command prefs ... (1997) Getting Averages for online form. (1999) Semi-OT SSL IE problem (2005) [LOOKUP] (1997) webCatalog and Stocks (1998) [SHOWNEXT] Examples (1997) NT [delete] (1998) Speed Optimization - Mac (1997) Re1000001: Setting up shop (1997) Tracking inbound links for discounts (1997) Help! WebCat2 bug (1997)