macdonst
1d79b6617b
JavaScript cleanup to pass jsHint
...
I did my best to clean up the JavaScript so it would pass through jsHint more cleanly. There still are issues but there are a lot fewer now. This helped to make the JS code more consistent.
2011-05-21 02:31:24 +08:00
macdonst
6c3eefe6f9
Issue #85 : window.openDatabase throws DOM Exception 18 on Android 3.1
...
Instead of checking the userAgent catch the exception. If we do get an exception it will setup our version of Droid Db.
2011-05-21 02:13:03 +08:00
macdonst
e99f75d59b
Issue #85 : window.openDatabase throws DOM Exception 18 on Android 3.1
...
The way were were detecting we were on an Android 3.0 device was not applicable for Android 3.1. I've made and update so that any Android 3.X device will use our implementation of web sql databases instead of the built in one which thows a security error.
2011-05-16 23:14:24 +08:00
defrex
bde59adc04
Add docs and fixed to pass through the Google Closure Compiler without warnings
2011-05-04 16:00:03 -07:00
Bryce Curtis
673a8871df
Ticket 136: window.openDatabase() in Android 3.0 throws SECURITY_ERR (most code written by Simon MacDonald - I just tested and checked in)
...
When you call window.openDatabase() on an Android 3.0 device you get and error something like this:
E/Web Console( 1791): SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
Simon worked with Pat for a bit and they think this is a WebKit or Android/WebKit interaction bug. In the meantime this fix determines if you are on Android 3.0 and uses Droid_DB if so.
2011-04-19 16:54:16 -05:00
Fil Maj
ed4c57e791
Woops, finger slipped.
2011-04-06 11:01:36 -07:00
Fil Maj
bf164f4161
Fix for ticket 121: Checking for null return on native openDatabase call not enough as only allowed one DB per PhoneGap app. Have to proxy openDatabase and check at runtime.
2011-04-06 10:50:24 -07:00
Bryce Curtis
908485751b
Add check to only init and run JS code once - even if included multiple times.
2011-03-30 13:29:24 -05:00
Fil Maj
b3e9794189
Fix for lighthouse ticket 115: certain versions of Android 2.2 return "null" for window.openDatabase. Hook in PhoneGap fallback for storage in this case.
2011-03-23 11:07:45 -07:00
Mark Darbyshire
47ca081f36
Implement localStorage.key() and localStorage.length
...
This brings PhoneGap's implementation in line with the spec at http://dev.w3.org/html5/webstorage/
It makes the following demo work when you include PhoneGap: http://people.w3.org/mike/localstorage.html
I was hopeful it would make my app, which makes use of LawnChair, work, but I've had no such luck as of yet.
2011-03-07 15:55:14 -08:00
paulb777
6f4673f590
JSLint clean JavaScript sources. No fatal errors remain. Options can turn off rest of warnings
2011-02-15 16:10:09 -08:00
Vadim Voituk
5e858f8bc3
Added CupcakeLocalStorage.clear() method (in according to http://dev.w3.org/html5/webstorage/#the-storage-interface )
2011-02-04 12:08:22 -08:00
Bryce Curtis
023df10f31
Allow features/modules to initialize code before deviceready fires. CupcakeLocalStorage uses this capability to delay deviceready until local storage has been read and inited.
2011-01-06 22:50:13 -06:00
Bryce Curtis
ddeba91faf
Merge branch 'master' of https://github.com/jos3000/phonegap-android into jos3000-master
2010-11-29 12:27:00 -06:00
Bryce Curtis
87fd9665fe
Merge branch 'localStorage' of https://github.com/ascorbic/phonegap-android into ascorbic-localStorage
2010-11-21 17:58:49 -06:00
Matt Kane
46664c6494
Remove dependency on JSON support
2010-11-10 08:44:33 +00:00
Matt Kane
8ce7e61ed7
Adds localStorage support to older versions
2010-11-10 08:34:59 +00:00
Matt Kane
912458c679
Fix order of args to match w3c spec.
2010-11-09 22:58:13 +08:00
Jos Shepherd
3a0101261d
Move data transfer for storage to completeQuery for speed up
2010-11-06 20:01:22 +00:00
Jos Shepherd
fdc78e1b08
Fix for troublesome values being returned from DroidDB stores. Stick to one level of JSON serialization.
2010-11-05 17:03:05 +00:00
Bryce Curtis
6b7fc8119f
Rename PhoneGap.execAsync() to PhoneGap.exec() and change all JS files that use it.
2010-10-20 23:53:33 -05:00
Bryce Curtis
de23753204
Update license and copyright notices in each source file. PhoneGap is licensed under modified BSD and MIT (2008).
2010-10-18 15:31:16 -05:00
Bryce Curtis
be16eebf55
Remove logging from storage.js.
2010-10-13 13:47:43 -05:00
Bryce Curtis
1f3bd9f51c
Add support for multiple executeSql statements in transaction that returns results.
...
If a transaction had more than one "SELECT * FROM TABLE" statement, then only one of the executeSql callbacks would be called. The others would not be called, even though they were successful. This is because a transaction object had only one result set. Changed code so that each executeSql has a result set and unique "query id" so that the query results can be sent back to the correct statement's callback.
2010-10-13 13:43:52 -05:00
Bryce Curtis
032db387f8
Fix database for Android 1.x devices. It now behaves like HTML5 database API.
2010-10-12 15:53:57 -05:00
Bryce Curtis
040a3d7d43
Modify JS code to use service name rather than class name.
2010-09-10 15:13:53 -05:00
Bryce Curtis
9e931cc3f6
Change to use Commands and CommandManager.
2010-09-07 10:39:55 -05:00
Joe Bowser
a179fbd095
Attempt to fix the HTML 5 storage
2010-05-14 15:49:14 -07:00
Brian LeRoux
e3dc010b97
reorg of project assets
2010-01-26 13:54:02 -08:00