Sounds like some strange caching going on, are you running this in the Google Gadget Editor? That has mechanisms to prevent caching ensuring you're working with fresh data.
http://code.google.com/apis/gadgets/docs/legacy/gs.html#GGE Also, i know this doesn't really effect your data disappearing act, but you could push a lot less by using concat. array_list = array_list.concat(item); Good Luck Matt On Sep 16, 10:45 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Its look like there something wrong with the command prefs.setArray. > When > I save my data with prefs.setArray and I immediately refresh the page > the data that I just entered in my google > gadget disappear. If I wait some second my data will be still there. > > Well my problem is when I try to import all my data in my google > gadget. After the import is successful all the data I imported re- > appear in the box in my google gadget, but if I wait like 30 min, then > I reload > the page all data are gone. Are there a limit or something on how many > caracters who can be saved by setArray ? Here is a part of code I use > > array_list.push(item[0]); > array_list.push(item[1]); > array_list.push(item[2]); > array_list.push(item[3]); > > prefs.setArray("listing", array_list); > > Display_List_Items(); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iGoogle Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Gadgets-API?hl=en -~----------~----~----~----~------~----~------~--~---
