View Single Post
Old 09-26-2016, 12:11 PM   #5
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
Quote:
Originally Posted by Turtle91 View Post
I'm certainly not a javascript expert either, but if ibooks is running said script before you flip to that page I would think it is because the "page" is run when the file (chapter) is opened. If you can't get Doitsu's method to work, perhaps putting that page of text and associated JS into its own file will do the trick?? It may look funny when the epub is reflowed - the previous page could cut off midway down the screen - but at least you know that JS won't run until that page is opened.

FWIW
The chapter is in its own file.
fbrzvnrnd is offline   Reply With Quote