Re: populating a table from multiple cookies
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62018
interpreted = N
texte = Unless I'm missing something, if you are already storing the info in cookies, why make a table to retrieve them? Use listwords to separate them in your sidebar, inside a five-cycle loop.Last viewed
[loop start=1&end=5][ListWords Words=[getcookie LastViewed[index]]&Delimiters=|][text]field[index]=[word][/text][/ListWords]Last viewed
[field2][field3], [hideif [field4]=][field4], [/hideif][field5]
[/loop]When you write your cookies:lastviewed5's newvalue = lastviewed4lastviewed4's newvalue = lastviewed3lastviewed3's newvalue = lastviewed2lastviewed2's newvalue = lastviewed1lastviewed1's newvalue = current view infoTerry>Trying to do a 'last xx items viewed' on a sidebar on my>site. I want to sort them in proper order based on which>was viewed most recently. To this end, I am setting 5>cookies named LastView1 through LastView5. I then want to>store the contents of the cookies in a table. The cookies>have multiple values seperated by a pipe | hence the>listwords below.-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemhttp://WhosBringingWhat.com - online potluck signup sheet---------------------------------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Unless I'm missing something, if you are already storing the info in cookies, why make a table to retrieve them? Use listwords to separate them in your sidebar, inside a five-cycle loop.Last viewed
[loop start=1&end=5][ListWords Words=[getcookie LastViewed[index]]&Delimiters=|][text]field[index]=[word][/text][/ListWords]Last viewed
[field2]
[field3], [hideif [field4]=][field4], [/hideif][field5]
[/loop]When you write your cookies:lastviewed5's newvalue = lastviewed4lastviewed4's newvalue = lastviewed3lastviewed3's newvalue = lastviewed2lastviewed2's newvalue = lastviewed1lastviewed1's newvalue = current view infoTerry>Trying to do a 'last xx items viewed' on a sidebar on my>site. I want to sort them in proper order based on which>was viewed most recently. To this end, I am setting 5>cookies named LastView1 through LastView5. I then want to>store the contents of the cookies in a table. The cookies>have multiple values seperated by a pipe | hence the>listwords below.-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemhttp://WhosBringingWhat.com - online potluck signup sheet---------------------------------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Terry Wilson
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:
Dr.Watson Error (1999)
Server Load (2000)
Re:listfiles-looking for slick solution (1997)
(1997)
WebCatalog can't find database (1997)
Test, please ignore (2003)
Editing the search string (1997)
Include Files (1998)
Bug Report, maybe (1997)
Loss in Form (1998)
TemplateCacheSize preference! (1998)
Where do you put files? (2000)
[SearchString] usage (1997)
question: writing files textb in webmerch (1997)
duplicate cart number (2002)
WebCat2final1 crashes (1997)
Some shell fun (2004)
Re:Help name our technology! (1997)
select multiple (1997)
WebSTAR plugin update (2004)