Upgrade your browser Download Chrome Download Chrome Download Firefox Download Firefox Download Opera Download Opera Download Safari Download Safari Download Explorer Download Explorer

Check out our newest children's book for iPad & iPhone: Who's in the Loo? Download Close

Robot Media

Blog

Using JavaScript in iBooks Enhanced ePub

 

It’s been known for a while that iBooks supports JavaScript on its ePub files, albeit without any technical documentation whatsoever to date.

Yet when we started experimenting with JavaScript within iBooks, we couldn’t find any open-source working examples. So we created one. :)

JQuery Hello World is a bare-bones ePub that shows a Hello World alert using JQuery. Not only it shows that JavaScript is supported within iBooks, but also that complex libraries like JQuery might be used.

Both the ePub file and the source code are available in our github account. Make sure you update to the latest iBooks version before trying it.

Happy coding! We will be publishing more iBooks ePub experiments shortly.

Android Billing Library: in-app billing made simple

Android Billing Library is an open-source Android library to work with Android Market’s in-app billing service.

The library provides high-level functions (as simply as requestPurchase(“android.example.purchased”)) for the full in-app billing specification, in addition to an obfuscated transaction database that is automatically populated and can be easily queried. The code also works as an example in-app billing implementation.

This is our third open-source contribution, with more to come shortly. If you’re interested in in-app billing, we invite you to fork the code on github and contribute with issues or pull requests.