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:
Help! WebCat2 bug (1997)
How is it done? (1998)
WebDNA Docs (2003)
Monthly Reports (2000)
Other then credit cards-how? (1997)
[WebDNA] why this error when using [shownext] with a [table]? (2009)
$flushdatabases question ... (1998)
redirect within the ErrorMessages.db (2003)
WebCat Problem? (1999)
Form Variables (2000)
Preserving file creation dates on [copyfile] (2007)
Bug at start of Apache 2 with iTools 7 (2003)
Using the sendmail command on CGate Pro (Unix) (2000)
Success Stories (1997)
multiple search commands (1997)
Newbie from and old bee (1997)
[Announce]: Web server security and password protection (1997)
Need Sample Template - just purchased (1997)
SKU (1997)
WebMerchant (2000)