On Feb 4, 1:46 pm, "Steve Finkelstein" <[EMAIL PROTECTED]> wrote: > Hi all, > > I was curious if anyone has ever gone the route of bench marking the > potential of using cookies for temporary client-side persistence, > versus using XHR + databases.
If your application requires that the user login/authenticate themselves I would suggest the possibility of a hybrid approach. Store the information in a cookie but at the same time add it to a Javascript array. On a timer, send this information over via AJAX. If the AJAX call is successful, clear the Javascript array. Each time the timer executes it's function check to see if the array contains any data. If not, no AJAX call is needed. This way, a user could toggle a list item a few times quickly but only send out one AJAX request. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" 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/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
