Offline Web Applications
Since HTML5 is a large specification Ian and I, being encouraged by Dan Connolly from the W3C, wrote an introductory document to the offline Web application features in HTML5 — Offline Web Applications — which the W3C published earlier today. In summarized form, it explains the SQL API, the offline application cache API, and some of the related APIs, such as online
and offline
events.
Very exciting stuff.
Nice, un-intimidating summary.
You say
, but in the example the SQL statement callback does not appear to accept a transaction object.That’s an optional argument so it’s not required.
Then I take it the transaction object is passed as the second argument, and not the first (as the order in the above quote would seem to imply).
Actually, the HTML5 spec shows the SQLStatementCallback as receiving a SQLTransaction as the first parameter and a SQLResultSet as the second, and doesn’t say the first is optional at all.
Just pointing out something that doesn’t seem right. I don’t care if you don’t care.
My apologies, I overlooked something. I think you’re right and the example is wrong. So much for including code examples without testing.
Milo, the
executeSql()
bits have been edited in place. (Hopefully I made no new mistakes or left mistakes in there.)Looks good to me now! (Which I also say without testing anything.)