View Single Post
Old 09-26-2016, 06:30 AM   #1
fbrzvnrnd
Fanatic
fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.
 
Posts: 559
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
How to start javascript when a page is seen by user in iBooks

Hi,

I have an EPUB3 with several files with javascript scripts. One file has a javascript routine that show a little animation in page when the file (page) is opened.
It works fine in ADE, but not in iBooks. The problem is that iBooks seems to "prepaginate" ebook in background, so it starts the javascript routine *before* the page is showed to user. So, when the user turns the page there is no animation because it started and ended during the iBooks prepagination process.
Is there a way to start a javascript script *only* when the user turns the page and see the content in iBooks?

Thank you for suggestions.

Fabrizio
fbrzvnrnd is offline   Reply With Quote