Opened 14 years ago

Closed 13 years ago

#382 closed defect (worksforme)

Problems with dojo.storage

Reported by: martinc Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.2
Keywords: storage Cc:
Blocked By: Blocking:

Description

I've been having problems getting dojo.storage to work, and eventually discovered that the test page (test_storage.html) also has problems. While the test page appears to do something useful, it does not actually try to retrieve what it (thinks it) stores. I added that code, and it failed, with the error message "this.flash.get is not a function".

Digging deeper, it seems that this happens when the storage code is not initialised. The 'set' method (which is all that is called from test_storage.html) has a backup plan for when storage has not been initialised, which is why there is no error from the test page as is. However, attempting to retrieve the stored value using 'dojo.storage.get' fails because the package has not been initialised.

Looking at some more code, it seems that the intent was that the storage package be initialised automatically, by virtue of 'require'ing dojo.storage. That doesn't appear to be happening, and I haven't been able to figure out why.

By the way, there's also an error in the manual page for dojo.storage, where the documentation states:

// store a value in the "/foo" namespace
dojo.storage.set("foo", "bar baz", "/tmp");

I assume the comment should refer to the "/tmp" namespace.

Change History (6)

comment:1 Changed 14 years ago by anonymous

请勿发布广告


更多链接<a href='http://www.hkrr.org/' target=_blank><img border=0 src='http://www.ovecr.org/images/banner_ads.gif' width=460 heigh=60 alt='注册香港公司'></a> 更多链接LINK:http://bank.ovecr.net/ 香港银行,http://www.mgzc.com 注册美国公司,http://www.hksac.net 注册香港公司,http://www.hksac.net/usa/ 注册美国公司,http://www.hksac.net/company/bvi.asp 注册BVI公司,http://www.hksaa.cn 注册香港公司,http://www.hksaa.net 注册香港公司,http://www.hksaa.com.cn 注册香港公司,http://www.hkce.org 注册香港公司,http://www.hkce.net 注册香港公司,http://www.hkccr.org 注册香港公司,http://www.bviltd.org 注册BVI公司,http://www.bvicr.com 注册BVI公司,http://www.bvicr.org 注册BVI公司,http://www.bvicr.net 注册BVI公司,http://www.158hk.net 注册香港公司,http://www.ltdcr.com 注册香港公司,http://www.ltdcr.net 注册香港公司,http://www.ltdcr.org 注册香港公司,http://www.ltdcr.cn 注册香港公司,http://www.ltdcr.cn/usa/ 注册美国公司,http://www.cegcr.com 注册香港公司,http://www.cegcr.net 注册香港公司,http://www.cegcr.org 注册香港公司,http://www.hkrr.org 注册香港公司,http://www.hktmr.net 注册商标,http://www.hktmr.com 商标注册,http://www.hkrr.org/usa/ 注册美国公司,http://www.hkrr.org/company/bvi.asp 注册BVI公司,http://www.ltdcr.com/usa/ 注册美国公司,http://www.ltdcr.com/company/ 注册BVI公司,http://www.ltdcr.org/usa/ 美国公司注册,http://www.ltdcr.org/company/bvi.asp 注册BVI公司,http://www.hkltdcr.com 注册香港公司,http://www.hkltdcr.com/company/ 注册香港公司,http://www.hkltdcr.com/company/bvi.asp 注册BVI公司,http://www.hkltdcr.com/usa/ 注册美国公司,http://www.hkltdcr.net 注册香港公司,http://www.hkltdcr.org 注册香港公司,http://www.hkltdcr.org/usa/ 注册美国公司,http://www.hkltdcr.org/company/BVI.asp 注册BVI公司,http://www.hkltdcr.org/company/hk-a.asp 注册香港公司,http://www.hkltdcr.cn 注册香港公司,http://www.oveltd.net 注册香港公司,http://www.oveltd.com 注册香港公司,http://www.oveltd.org 注册香港公司,http://www.oveltd.cn 注册香港公司,http://www.oveltd.cn/company/hk-a.asp 注册香港公司,http://www.tradeinvests.net 贸易投资,http://www.tradeinvests.com 国际贸易,http://www1.158hk.net 注册香港公司,http://www2.158hk.net 香港公司注册,http://www3.158hk.net 香港注册公司,http://www5.158hk.net 办理香港公司,http://www.ovecr.net 注册香港公司,http://www.ovecr.com 注册香港公司,http://www.ovecr.org 注册香港公司,http://www.ovecr.cn 注册香港公司,http://www.hksaa.com.cn 注册香港公司,http://vip.ltdcr.org 注册香港公司,http://usa.ovecr.net 注册美国公司,http://www.ovecr.net 注册香港公司,搜索排名|网站排名,http://cpa.ovecr.net 香港会计师.http://cpaltd.ovecr.net 注册会计师.http://hk.ovecr.net 注册香港公司.http://hkltd.ovecr.net 注册香港公司.http://usa.ovecr.net 注册美国公司.http://usaltd.ovecr.net 注册美国公司.http://bvi.ovecr.net 注册BVI公司.http://bviltd.ovecr.net 注册BVI公司.http://offshore.ovecr.net 海外离岸公司.http://offshoreltd.ovecr.net 注册海外公司.http://www.hkrr.org 注册香港公司,http://vip.ltdcr.org 注册香港公司,http://cpa.ltdcr.org 注册香港公司,http://www.ltdcr.org/brand/ 注册商标,http://www.ltdcr.com/brand/ 注册商标,http://www.hkltdcr.com/brand/ 注册商标,http://www.hkrr.org/brand/ 注册商标,http://www.ovecr.org/brand/ 注册商标,http://www.ltdcr.org/brand/ 注册商标,http://www.hkltdcr.org/company/shanghai.asp 注册上海公司http://www.ltdcr.org/company/shanghai.asp 注册上海公司,http://www.hkltdcr.com/company/shanghai.asp 注册上海公司http://www.ltdcr.com/company/shanghai.asp 注册上海公司http://www.hkrr.org/company/shanghai.asp 注册上海公司,http://www.ovecr.com/company/shanghai.asp 注册上海公司,http://fjt.infoscape.com.cn/gate/big5/www.richful.net/ 国际贸易,进出口贸易公司,http://fjt.infoscape.com.cn/gate/big5/b2b.richful.net/ 进出口贸易,国际贸易,http://fjt.infoscape.com.cn/gate/big5/bbs.richful.net/ 进出口贸易,贸易公司,http://211.147.225.32/gate/big5/www.richful.net/English/default.asp TRADE,http://211.147.225.32/gate/big5/www.hksac.org/ 注册香港公司,http://211.144.146.25/gate/big5/www.richful-hk.com/ 进出口贸易,注册香港公司,http://211.144.146.25/gate/big5/www.richful.hk 投资,贸易公司, <a href='http://www.tradeinvests.net/' target=_blank><img border=0 src='http://www.tradeinvests.net//images/logo.gif' width=88 heigh=31 alt='注册香港公司'></a> , <a href='http://www.tradeinvests.com/' target=_blank><img border=0 src='http://www.richful.net/new_images/logo.gif' width=189 heigh=55 alt='国际贸易'></a> , <a href='http://www.oveltd.net/' target=_blank><img border=0 src='http://www.richful-hk.com/link1.gif' width=88 heigh=31 alt='香港公司注册'></a> , <a href='http://www.ltdcr.com/' target=_blank><img border=0 src='http://www.hksac.org/images/cg.gif' width=100 heigh=100 alt='注册香港公司'></a> ,

comment:2 Changed 14 years ago by bkn3@…

Hi Martin; the dojo.storage that is in SVN is an implementation that Alex put together which uses Flash 8's ExternalInterface? to do storage. I've been working on a full refactoring that is local on my file system, which uses more robust (but more complex) ways for JavaScript? and Flash to interact, so that dojo.storage will be much more reliable (dojo.flash is part of this work). I hope to have this work done in the next few weeks and into subversion.

What platform and browsers do you have? Are you interested in helping me test out dojo.flash and dojo.storage?

comment:3 Changed 14 years ago by martinc

Hi Brad. Yes, I'd be happy to do what I can to help test both dojo.storage and dojo.flash (the latter both with and without the former). I'm eagerly awaiting your new drop. ;-)

I primarily use Win2K, and have IE6, FF 1.5 and FF 1.0.7 installed. I also have a SuSE 8.2 box lying around that has some version of Konqueror and Firefox on it.

Does what's in SVN right now work at all, or should I just hold my horses and wait for your new drop?

comment:4 Changed 14 years ago by brian.duchek@…

I can confirm these problems, as I'm getting the same error "this.flash.get is not a function". I also would be willing to help test this. I've got an XP box w/ FF1.5 and IE6 (LCD - lowest common denominator :)

comment:5 Changed 13 years ago by dylan

Has this been tested with the new dojo.storage?

comment:6 Changed 13 years ago by dylan

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.