> But, did you then in the end used the Sqlite database (web sql db)
> for your local savings (sql crud) or did this dummy db solved your
> problem for using local/sessionStorage
In the end, we used web sql db. The dummy db increased the quota for web
sql, but I didn't notice it having any affect on the local/sessionStorage
quota (though I don't remember if I looked specifically for that).

Some of our data was just too big for local/sessionStorage and some of it
fit, but was too close for comfort. Good to hear you were able to make
local/sessionStorage work.

-- peter

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of .:: Pe16::.
Sent: Monday, September 06, 2010 1:02 AM
To: iPhoneWebDev
Subject: Re: QUOTA_EXCEEDED_ERR

Thanks Peter for your info and experience with the storage issue.
Indeed it's still a little "in the mist" and not so well documented.
However, it seems you found a way arround. If I Understood you good,
you have used some dummy data or created a dummy DB (emtpy) with the
size of 50mb.

db = openDatabase(shortName, version, displayName, maxSize); // where
maxSize = 50mb

But, did you then in the end used the Sqlite database (web sql db) for
your local savings (sql crud) or did this dummy db solved your problem
for using local/sessionStorage (setItem/getItem) because as you said
"..localStorage is implemented with a sqlite database" and this solved
your problems.

I have solved my problem of the QUOTA_EXCEEDED error on the Ipad.
I forgot to apply the storage patch for a few.
I just had to Ctrl+F trough my project and search for any "Storage"
that didn't had my patch applied.

These two:

1) sessionStorage.temp = folderPath;
2) sessionStorage.mode='grid';

Had to be changed:

setSessionkey("temp",folderPath);
setSessionkey("mode",'grid');


--------------
function setSessionkey(key, val) {
        sessionStorage.removeItem(key);
        sessionStorage.setItem(key, val);
}
function setLocalkey(key, val) {
        localStorage.removeItem(key);
        localStorage.setItem(key, val);
}

-- 
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.

-- 
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.

Reply via email to