This content has been marked as final. Show 3 replies
I think you can do it using a sharedObject.
Let's say that your three listboxes are list1, list2, list3
first thing to do is check to see if they have been to the site before by checking to see if a sharedObject exists already
// so_history is the sharedobject that contains our data
// historyData is an array of the users history
historyData = SO_history.data.historyData;
if(historyData == undefined)
historyData = new Array()
// populate list 1 and select index # based on historyData
// based on selected data, populate list 2 and select index historyData
// based on selected data in 2, get list 3
that deals with the refresh, but when you change the lists have an onchange handler that does something like this
// update the array with the selected index
historyData = list1.selectedIndex
// and then write/update the shared object
SO_history = SharedObject.getLocal("mysharedobject");
hope that helps!
I had no idea that sharedObjects could do that.
Thank you so much Phil. Case closed, project done.
You're a life saver.
I've built a dynamic online course application that records the progress the user has made using this technique. When they return to the course it asks them if they want continue from where they left off or start from scratch. very useful!