W3C home > Mailing lists > Public > public-html-comments@w3.org > May 2010

Re: Onstorage Event

From: Jeremy Orlow <jorlow@chromium.org>
Date: Thu, 6 May 2010 12:39:35 +0100
Message-ID: <AANLkTikDHpDt2E5QIXCXX6-A5x-a8acbQHVlj8KiwcFJ@mail.gmail.com>
To: Jaikishan Jalan <jai.ism@gmail.com>
Cc: public-html-comments@w3.org
On Thu, May 6, 2010 at 2:31 AM, Jaikishan Jalan <jai.ism@gmail.com> wrote:

> Hello,
> I understand that onstorage event will be invoked if setItem, removeItem or
> clear is invoked on either sessionStorage object or localStorage object. I
> am curious how can I determine which object has changed from within the
> onstorage event handler. To be precise, is the function called because
> localStorage object changed or sessionStorage object changed. storageArea
> attribute to event object does not help

Why not?  See if it equals localStoarge or sessionStorage.

> If this is not possible, I am curious what is the reason behind not to
> support this ? I can imagine user wants to do different thing based on if
> localStorage changed or sessionStorage changed.
> --
> Thanks,
> Jaikishan
Received on Thursday, 6 May 2010 11:40:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:26 UTC