I have an editable combobox where I am saving the entries entered by users. I am saving them to a SharedObject.
 
When I later retrieve the data from this SharedObject, I noticed that the data are no longer in the original order. For example, if the data currently in the combobox dropdown were the strings A, B, C, and D from top to bottom, after I do a:
 
    var comboBoxSharedObject = SharedObject.getLocal("myCookie");
 
    delete comboBoxSharedObject.data.dataProvider;
    
    comboBoxSharedObject.data.dataProvider = dataProvider; // where dataProvider is the combobox's dataProvider
    comboBoxSharedObject.flush();
 
When I later retrieve this same set of data later, the order of A, B, C, and D are no longer preserved. Instead, it comes back in some other sort order.
 
Any suggestions on how I can prevent this problem?


Yahoo! Groups Links

Reply via email to