populating a table from multiple cookies
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62017
interpreted = N
texte = Hello,Trying to do a 'last xx items viewed' on a sidebar on mysite. I want to sort them in proper order based on whichwas viewed most recently. To this end, I am setting 5cookies named LastView1 through LastView5. I then want tostore the contents of the cookies in a table. The cookieshave multiple values seperated by a pipe | hence thelistwords below.The code below works, but I am thinking the code is overlycomplex for what I am doing. This is my first time usingtables so I may be mising something obvious as to addingmultiple rows of data.Haven't tried it yet, but would moving the table open/closeto be outside of the loop do the trick (instead of havingthe multiple rows of the field data and dropping the extra[index] from the beginning of the field)?Is this something that would benefit from being put into afunction (haven't used those yet either)?---- begin ----[loop start=1&end=5][math]row=[index][/math][ListWords Words=[getcookiename=[interpret]LastViewed[index][/interpret]]&Delimiters=|][textshow=f][row]field[index]=[word][/text][/ListWords][tablename=Viewed&fields=profileID,nickname,city,state,country,stamp][hideif [1field1]=][1field1][1field2][1field3][1field4][1field5][1field6][/hideif][hideif [2field1]=][2field1][2field2][2field3][2field4][2field5][2field6][/hideif][hideif [3field1]=][3field1][3field2][3field3][3field4][3field5][3field6][/hideif][hideif [4field1]=][4field1][4field2][4field3][4field4][4field5][4field6][/hideif][hideif [5field1]=][5field1][5field2][5field3][5field4][5field5][5field6][/hideif][/table][/loop]Last viewed
[searchtable=Viewed&neProfileIDdata=[blank]&STAMPsort=1&STAMPsdir=as][founditems]
[nickname][city], [hideif [state]=][state], [/hideif][country]
[/founditems][/search]---- end ----ThanksDale-------------------------------------------------------------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:
Hello,Trying to do a 'last xx items viewed' on a sidebar on mysite. I want to sort them in proper order based on whichwas viewed most recently. To this end, I am setting 5cookies named LastView1 through LastView5. I then want tostore the contents of the cookies in a table. The cookieshave multiple values seperated by a pipe | hence thelistwords below.The code below works, but I am thinking the code is overlycomplex for what I am doing. This is my first time usingtables so I may be mising something obvious as to addingmultiple rows of data.Haven't tried it yet, but would moving the table open/closeto be outside of the loop do the trick (instead of havingthe multiple rows of the field data and dropping the extra[index] from the beginning of the field)?Is this something that would benefit from being put into afunction (haven't used those yet either)?---- begin ----[loop start=1&end=5][math]row=[index][/math][ListWords Words=[getcookiename=[interpret]LastViewed[index][/interpret]]&Delimiters=|][textshow=f][row]field[index]=[word][/text][/ListWords][tablename=Viewed&fields=profileID,nickname,city,state,country,stamp][hideif [1field1]=][1field1][1field2][1field3][1field4][1field5][1field6][/hideif][hideif [2field1]=][2field1][2field2][2field3][2field4][2field5][2field6][/hideif][hideif [3field1]=][3field1][3field2][3field3][3field4][3field5][3field6][/hideif][hideif [4field1]=][4field1][4field2][4field3][4field4][4field5][4field6][/hideif][hideif [5field1]=][5field1][5field2][5field3][5field4][5field5][5field6][/hideif][/table][/loop]Last viewed
[searchtable=Viewed&neProfileIDdata=[blank]&STAMPsort=1&STAMPsdir=as][founditems][nickname]
[city], [hideif [state]=][state], [/hideif][country]
[/founditems][/search]---- end ----ThanksDale-------------------------------------------------------------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/
"my eLists"
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:
Execute Applescript (1997)
can webcat create directories on NT? (1997)
What the *(**&^* webcat/mer (1998)
Hard Questions ? (1997)
Setting up shop (1997)
Boolean showifs? (2000)
[text] doesn't change [formvariables] (1999)
redirect from the errorsMessages.db entry (1997)
cart info (1998)
question: webdelivery folder and file (1997)
back button loses cart (2000)
show all problem (1997)
[WebDNA] Send Mail and Outlook Express (2008)
WebCat2 - Getting to the browser's username/password data (1997)
Free pack for the New UPS ratings and services tool (2000)
Caching pages...again (2001)
I'm new be kind (1997)
New Plug-in and Type 11 errors (1997)
Emailer Problem (1999)
Bug in 4.5 - Needs to be fixed ASAP. (2002)