updroid / jquery-jstore

Automatically exported from code.google.com/p/jquery-jstore
1 stars 0 forks source link

Object required error with flash remove_callback in IE7 #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I get an object required error which Visual Studio identifies as coming 
from this method, when I access Jstore.

I've already waited for jstore to get ready previously, and now I want to 
store something and check to see if something is stored, but I get this 
error every time.

                if (jQuery.jStore.store(code)) {
                    return;
                }
                else {
                    jQuery.jStore.store(code, code);
                    window.open("Sheet.aspx", "_blank");
                }   

What am I doing wrong. When I debug the removeCallback method, it is 
getting called with instance null.

The remove-callback looks like this:

function __flash__removeCallback(instance, name) {
  instance[name] = null;
}

Original issue reported on code.google.com by anthonyp...@gmail.com on 11 May 2009 at 2:11

GoogleCodeExporter commented 9 years ago
What version of jStore are you using? Previous to the last release, there was an
issue with the flash engine and its storage method that was causing errors. If 
you're
on the latest version of the library, do you have a demo page or some 
additional code
examples to help with ferreting out the cause?

Original comment by gars...@gmail.com on 12 May 2009 at 6:28

GoogleCodeExporter commented 9 years ago
I have 1.0.3

I was using jStore on two different pages, the second page was deleting jStore
assignments when the page was closed out, using a javascript onclose event.

The first page used the code above.

I was using the flash engine, but even when I removed that declaration, it must 
have
still been using flash as that error remained.

I have jQuery and the jQuery addon HotKeys if that matters.

I will have to go back and look at the full code that used jStore, I have 
stopped
using the addon for now.

Original comment by anthonyp...@gmail.com on 12 May 2009 at 6:37

GoogleCodeExporter commented 9 years ago
I've done a bit of research on this and found that out that it's a bug with the 
Flash Player itself, and not with 
jStore specifically. It has something to do with the embed process, I believe, 
which is causing the issue. I'm doing 
a bit of research as to how to fix it for the next release.

Original comment by gars...@gmail.com on 21 May 2009 at 4:20

GoogleCodeExporter commented 9 years ago
So, with jStore 1.1, flash is handled in a completely different way. Please 
refer to the documentation sometime 
after the release (scheduled for Friday, May 22, 2009). This should fix this IE 
bug.

Original comment by gars...@gmail.com on 21 May 2009 at 8:18