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:
[Price] (1997)
I think WebDNA-Talk died ... :( (1997)
Re:WebMerchant 3.0 for Mac shipping now (1998)
Alternative To WebDNA? (2006)
WebSTAR 2.1 freezes my Mac (1997)
[Announce]: Web server security and password protection (1997)
Upgrading old WebCat Database Files (1997)
Credit card types (1997)
random in arizona (2003)
Using Plug-In while running 1.6.1 (1997)
Mozilla/4. and Browser Info.txt (1997)
thankyou.tmpl (1997)
Type 2 errors with WebCatalog.acgi (1997)
What am I missing (1997)
How can I Add several Items into the cart at once? (1997)
Problems with webcat 2.01 for NT (1997)
Running 2 two WebCatalog.acgi's (1996)
Plugin or CGI or both (1997)
Possible Bug in 2.0b15.acgi (1997)
[WebDNA] Why doesn't middle work as expected? (2009)