views:

23

answers:

0

Hi all,

I hope someone can help me here. I am developing two apps at the minute, one iPhone, one Mac. Both have maps, the iPhone one has standard map and the Mac one has an embedded webviw that displays the map using a webpage with JavaScript.

What I would like to do is to take the core data sqlite3 database from the iphone app and read the lat/long values from a POI table using javascript and display the markers on the Mac app, which is as stated esentially a webpage. It is possible to access a sqlite databse in Safari for example but it seems that its only possible locally, i.e you cannot specify a path to any database, it has to have been created by the browser itself using javascript. In the following code, the shortname can only be a name and not a path as I had assumed.

var db = openDatabase(shortName, version, displayName, maxSize);

This is my understanding as of now, but I really think that there must be a way of doing this without going down the JSON/SOAP type avenue. Any suggestions guys?

Thanks in advance, Keith.