How do i view the local database version in safari on the iphone?

Posted by ~potsed on Stack Overflow See other posts from Stack Overflow or by ~potsed
Published on 2010-05-21T05:16:58Z Indexed on 2010/05/21 5:20 UTC
Read the original article Hit count: 202

Filed under:
|
|

I am trying to see the localDatabase version from my iPhone in safari but it is not displaying, according to the docs i am supposed to be able to do this:

var db = openDatabase('dbShortName', '', 'dbLongName', 1000);
alert(db.version);

and it should alert the current version number. It does not. It works in Chrome and safari for the desktop but not the iPhone. Does anybody have some idea why?

My next option is to store the version in a separate table, but I would prefer to use the built in system. Thanks in advance.

© Stack Overflow or respective owner

Related posts about mobilesafari

Related posts about iphone