Take the 2-minute tour ×

When we are using any gear enable site, and we go offline the gear automatically creating folder with /dbName#database ...

assume 2 diff. website is there www.abc.com and www.xyz.com.

when I go online in www.abc.com it should create folder like /abcxyz/dbName#database, And same for www.xyz.com it should also create folder like /abcxyz/dbName#database. So what I mean is both the website should use same SQLite Database.

If this is possible please send me some example code how to achieve this with gear code.

Any help will be appreciated ...

share|improve this question
add comment

1 Answer

The last time I checked, you couldn't do that: I am pretty sure it is related to security concerns & same origin policy.

Since a site isn't supposed to have access to resources of other sites, I really doesn't make sense to expose additional degrees of liberty at this API level. Furthermore, what value would that confer to the WEB application? I could only really serve the needs on the client host side which is not really a priority for Gears.

share|improve this answer
so is there any way i can create database file in specific folder and use same database for 2 diff. website. –  Garudadwajan Nov 10 '09 at 4:32
not to my knowledge. –  jldupont Nov 10 '09 at 11:06
Thanks a lot, it really helped .. –  Garudadwajan Nov 10 '09 at 12:33
add comment

Your Answer


