Re: Founditems Add/remove graphic display problem
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 23647
interpreted = N
texte = Thanks Rob, that's almost it....I've fiddled a bit and this code
[hideif [interpret][added[index]][/interpret]=T] [/hideif][showif [interpret][added[index]][/interpret]=T] [/showif] | Replaces addtocart.gif with remove.gif properly, but only for the imagejust clicked. On any one line, I can cycle through add to remove and theexpected effect occurs in the cart. But if I then click on add again, itjust brings up the remove gif and vice versa.Just to be clear, the basic structure of this page is[search db=customresults.tpl& blah blah blah&added[index]=[added[index]]][founditems][problem code][/founditems][/search]and added[index] is set to F on the referring page by hidden input.Any further ideas????Gracias,-will>> You're going to have to index the name of the variable itself, not its> contents. Something along the line of>> added[index]=F>> Then, your [founditems] loop conditionals would change to>> [hideif [interpret][added[index]][/interpret]=F]>> As long as the total number of items found is constant for while you're> on this page, it should work.
Associated Messages, from the most recent to the oldest:
Thanks Rob, that's almost it....I've fiddled a bit and this code
[hideif [interpret][added[index]][/interpret]=T] [/hideif][showif [interpret][added[index]][/interpret]=T] [/showif] | Replaces addtocart.gif with remove.gif properly, but only for the imagejust clicked. On any one line, I can cycle through add to remove and theexpected effect occurs in the cart. But if I then click on add again, itjust brings up the remove gif and vice versa.Just to be clear, the basic structure of this page is[search db=customresults.tpl& blah blah blah&added[index]=[added[index]]]
[founditems][problem code][/founditems][/search]and added[index] is set to F on the referring page by hidden input.Any further ideas????Gracias,-will>> You're going to have to index the name of the variable itself, not its> contents. Something along the line of>> added[index]=F>> Then, your
[founditems] loop conditionals would change to>> [hideif
[interpret][added[index]][/interpret]=F]>> As long as the total number of items found is constant for while you're> on this page, it should work.
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:
math problems (2000)
this works sometimes and sometimes not (1997)
Summing fields (1997)
multi-paragraph fields (1997)
Hard Questions ? (1997)
Falsifying [BROWSERNAME] (1998)
[WebDNA] Strange MATH result - BUG (2010)
WebDNA security (2004)
External RAID (2005)
Need relative path explanation (1997)
Pull down menu Search (1999)
Reversed words (1997)
Summing fields (1997)
Separate SSL Server (1997)
WebDNA Codes in Secure Mode (1997)
using showpage and showcart commands (1996)
fieldType=num (1997)
Issue with plug-in Webcat, webstar 4.x, SSL and IE when using the backbuttom (2000)
Detecting SSL or port (2005)
Photo Album (2000)