View Single Post
Old 11-22-2013, 07:43 AM   #3
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
icantbebothered is right. You can't run javascript code in mobi books out-of-the-box.

Custom Dialog instead (made of javascript+html) works for your purpose.
You can find some examples looking through the code of the following apps: Kindle Menu, KindleGallery or KindleNotes.

Another way to use javascript, inside a book (instead of a custom dialog app), is using mesquite. I never did it, so you need to search for it on your own, using the forum search tools.

Here you can find some nice javascript system commands, working on both custom dialogs and mesquite apps:

https://www.mobileread.com/forums/sho...d.php?t=210280

P.S. all what I'm saying here regards only Kindle Touch and Kindle PW devices

Last edited by Aeris; 11-22-2013 at 07:47 AM.
Aeris is offline   Reply With Quote