kalel
07-05-2005, 01:15 AM
mySharedobject.onSync = function(myList) {
for ( var i in mySharedobject.data ) {
if ( mySharedobject.data[i] != null ) {
///clear current list
///create item in list
}
}
So pretty much I have a function being performed when the shared object changes x amount of times as I have items in mySharedobject.
But I don't want to clear the whole list and recreate it.......how can I take the the list object and compare it with what is on the client side and only remove or add the item.
So the list doesnt go blank while its updated but only the item that is added or removed be changed.
I hope I have explained my self right.
Thanks
for ( var i in mySharedobject.data ) {
if ( mySharedobject.data[i] != null ) {
///clear current list
///create item in list
}
}
So pretty much I have a function being performed when the shared object changes x amount of times as I have items in mySharedobject.
But I don't want to clear the whole list and recreate it.......how can I take the the list object and compare it with what is on the client side and only remove or add the item.
So the list doesnt go blank while its updated but only the item that is added or removed be changed.
I hope I have explained my self right.
Thanks