I have an application with a top frame and two sets of frames inside this top frame. When navigating other pages, the top frame remains unchanged and only frames change. I use localStorage to store some data (which is also stored on the server, but if it is on the client, we do not do it back and forth each time), this function is not available in IE7, so we decided to try to simulate localStorage in IE7.
The idea was to store the localStorage variable in the top frame (only if localStorage was not available). Whenever localStorage was not available in the top frame, we then created a dummy localStorage object with the parameters _data, getItem (), setItem (), removeItem (). The life of this object will continue as long as life is in the upper frame, which would save us a lot of round trips to the server and, therefore, offers a big performance boost in IE7.
The problem I am facing is that whenever I change the frame (and not the top frame), I get localStorage from the top frame and try to get the element using window.top.localStorage.getItem ('... ); I get an error that the code cannot be executed from the freed script.
Any ideas why I get this?
source share