This is really cool! Thanks for sharing. (I would hope we could
incorporate gears access directly into the platform.)
On 2007-06-04, at 15:30 EDT, Monsieur Patate wrote:
Hi all,
I have build a little proof of concept of interaction between
Google Gears
and OpenLaszlo.
I have simply store the contain of a grid into the local database
(SQLite
file) with the new Google Gears system.
The system is really easy to use with the DHTML runtime but i
wanted to use
Flash for the demo, and it run after few hack.
- have used "flash.external.ExternalInterface.call()" function to call
Javascript functions
- as i wasn't able to import google gerars javascript object in
OpenLaszlo,
I've add a little javascript function to run the SQL query and
convert the
result as a multidimensional array (like that array[row][fields]).
that i
can import and reuse to build a dataset.
I think google have made a really easy and powerful technology and
OpenLaszlo can be drastically extended by this mean.
You can download sources of my work here :
http://www.misterpatate.fr/blog/?p=251
direct link to sources : http://cyril.rouillon.free.fr/GG.rar
The website is in french but sources are in English ;)
--
Cyril Rouillon
- www.misterpatate.fr - Blog perso
- cyril.rouillon.free.fr - CV