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.

Enhanced eBooks

One of the next types of content that we will tackle will be eBooks. So far we made timid experiments on Kindle and iPhone, such as the Dracula’s Guest illustrated app we recently published. With the announcement of iBooks and the launch of the Kindle Development Kit, followed by an imminent Kindle App Store, it looks like eBook readers will finally allow for some truly creative use of technology. eBooks shouldn’t simply be books on a screen, and so far they haven’t lived to their potential yet.

Art from Dracula’s Guest by Stephen L. Antczak, James C. Bassett and Steven Sanders.