tags:

views:

68

answers:

1

I am building a GWT app that uses Web SQL Local Storage ( http://dev.w3.org/html5/webdatabase/ ). The problem is that the Web SQL API uses callback functions as arguments.

Is it possible to pass "Java" callbacks to JSNI?

+3  A: 

Yes, it does. See this very similar example I wrote to pass callbacks through JSNI to be used with the WebSockets API.

Jason Hall
That was really useful, thanks a LOT>
Julio Faerman